Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 88.53 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00123/0.001231, allocations: 183.1 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 223.3 MB / 241.2 MB, free: 5.277 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002599/0.00026, allocations: 5.25 kB / 300.9 MB, free: 5.555 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1104, allocations: 50.42 MB / 351.3 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Damper): time 0.002441/0.1129, allocations: 2.029 MB / 353.4 MB, free: 9.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004798/0.1134, allocations: 227.2 kB / 353.6 MB, free: 9.117 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.571e-05/0.1135, allocations: 7.938 kB / 353.6 MB, free: 9.109 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001152/0.1137, allocations: 35.77 kB / 353.6 MB, free: 9.074 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001181/0.1138, allocations: 71.39 kB / 353.7 MB, free: 9.004 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001599/0.114, allocations: 39.95 kB / 353.7 MB, free: 8.965 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002661/0.1142, allocations: 270.7 kB / 354 MB, free: 8.699 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001637/0.1144, allocations: 69.69 kB / 354.1 MB, free: 8.629 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.537e-05/0.1145, allocations: 99.58 kB / 354.2 MB, free: 8.531 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.1147, allocations: 99.55 kB / 354.3 MB, free: 8.434 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.101e-05/0.1147, allocations: 12 kB / 354.3 MB, free: 8.422 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.159e-05/0.1147, allocations: 12 kB / 354.3 MB, free: 8.41 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.835e-05/0.1148, allocations: 39.84 kB / 354.3 MB, free: 8.371 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.087e-05/0.1149, allocations: 69.58 kB / 354.4 MB, free: 8.297 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002316/0.1151, allocations: 211.4 kB / 354.6 MB, free: 8.09 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1151, allocations: 0 / 354.6 MB, free: 8.09 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1151, allocations: 4 kB / 354.6 MB, free: 8.086 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.1151, allocations: 0 / 354.6 MB, free: 8.086 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0007124/0.1158, allocations: 0.5028 MB / 355.1 MB, free: 7.535 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.1159, allocations: 12.03 kB / 355.1 MB, free: 7.523 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.018e-05/0.116, allocations: 66.47 kB / 355.2 MB, free: 7.449 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.917e-05/0.116, allocations: 31.58 kB / 355.2 MB, free: 7.418 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002661/0.1163, allocations: 239.3 kB / 355.4 MB, free: 7.141 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.071e-05/0.1163, allocations: 20.55 kB / 355.5 MB, free: 7.121 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.125e-05/0.1164, allocations: 24 kB / 355.5 MB, free: 7.098 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000389/0.1168, allocations: 239.5 kB / 355.7 MB, free: 6.852 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.1168, allocations: 3.906 kB / 355.7 MB, free: 6.848 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.1168, allocations: 15.95 kB / 355.7 MB, free: 6.832 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.1168, allocations: 11.94 kB / 355.8 MB, free: 6.82 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002639/0.1171, allocations: 158.3 kB / 355.9 MB, free: 6.668 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001021/0.1181, allocations: 0.8049 MB / 356.7 MB, free: 5.805 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004782/0.1186, allocations: 287.7 kB / 357 MB, free: 5.496 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000216/0.1189, allocations: 130.5 kB / 357.1 MB, free: 5.359 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.306e-05/0.1189, allocations: 8 kB / 357.1 MB, free: 5.352 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.796e-05/0.1189, allocations: 34.56 kB / 357.2 MB, free: 5.309 MB / 286.1 MB Notification: Performance of pre-optimization done (n=33): time 1.593e-06/0.1189, allocations: 0 / 357.2 MB, free: 5.309 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.002695/0.1216, allocations: 1.942 MB / 359.1 MB, free: 3.105 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.566e-05/0.1217, allocations: 110.8 kB / 359.2 MB, free: 2.973 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001878/0.1219, allocations: 189.3 kB / 359.4 MB, free: 2.773 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.251e-05/0.122, allocations: 33.7 kB / 359.4 MB, free: 2.734 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.1221, allocations: 140.7 kB / 359.6 MB, free: 2.59 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/0.1222, allocations: 161.6 kB / 359.7 MB, free: 2.43 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.703e-05/0.1223, allocations: 15.94 kB / 359.7 MB, free: 2.414 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.1224, allocations: 342.8 kB / 360.1 MB, free: 2.07 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.1226, allocations: 84.84 kB / 360.2 MB, free: 1.984 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001877/0.1228, allocations: 154.3 kB / 360.3 MB, free: 1.816 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000195/0.123, allocations: 117.2 kB / 360.4 MB, free: 1.703 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.123, allocations: 0 / 360.4 MB, free: 1.703 MB / 286.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0004758/0.1235, allocations: 341.9 kB / 360.8 MB, free: 1.367 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.1235, allocations: 4 kB / 360.8 MB, free: 1.363 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.978e-06/0.1235, allocations: 7.953 kB / 360.8 MB, free: 1.355 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.1235, allocations: 4 kB / 360.8 MB, free: 1.352 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003259/0.1239, allocations: 91.89 kB / 360.9 MB, free: 1.262 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.1239, allocations: 4 kB / 360.9 MB, free: 1.258 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.941e-05/0.124, allocations: 16.09 kB / 360.9 MB, free: 1.242 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.012e-05/0.124, allocations: 16 kB / 360.9 MB, free: 1.227 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001675/0.1242, allocations: 149.7 kB / 361 MB, free: 1.07 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.601e-05/0.1243, allocations: 31.62 kB / 361.1 MB, free: 1.039 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.209e-05/0.1244, allocations: 41.8 kB / 361.1 MB, free: 1.004 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.1244, allocations: 7.953 kB / 361.1 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.134e-05/0.1244, allocations: 4 kB / 361.1 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1244, allocations: 4 kB / 361.1 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001443/0.1259, allocations: 1.064 MB / 362.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.1259, allocations: 0 / 362.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003556/0.1263, allocations: 87.91 kB / 362.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.684e-06/0.1263, allocations: 8.281 kB / 362.3 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/0.1263, allocations: 12 kB / 362.3 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.004e-05/0.1263, allocations: 7.984 kB / 362.3 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/0.1263, allocations: 7.938 kB / 362.3 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009143/0.1273, allocations: 0.7245 MB / 363 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.932e-05/0.1273, allocations: 112.9 kB / 363.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.608e-05/0.1274, allocations: 8 kB / 363.2 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001991/0.1276, allocations: 12 kB / 363.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.838e-05/0.1276, allocations: 35.92 kB / 363.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.819e-05/0.1277, allocations: 8 kB / 363.2 MB, free: 14.76 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001052/0.1278, allocations: 139.3 kB / 363.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1278, allocations: 0 / 363.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004353/0.1282, allocations: 76 kB / 363.4 MB, free: 14.55 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (springDamper3.s_rel,springDamper3.v_rel,damper2.s_rel,damper2.v_rel,damper1.s_rel,damper1.v_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001195/0.1294, allocations: 1.255 MB / 364.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004251/0.1299, allocations: 264.4 kB / 364.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1299, allocations: 4.188 kB / 364.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001816/0.1301, allocations: 139.7 kB / 365.1 MB, free: 12.83 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006793/0.1307, allocations: 63.2 kB / 365.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00316/0.1339, allocations: 2.018 MB / 367.2 MB, free: 10.65 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000609/0.1345, allocations: 0.7723 MB / 367.9 MB, free: 9.852 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001399/0.1347, allocations: 30.97 kB / 368 MB, free: 9.824 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001426/0.1348, allocations: 91.41 kB / 368 MB, free: 9.734 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1349, allocations: 0 / 368 MB, free: 9.734 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01658/0.1514, allocations: 5.369 MB / 373.4 MB, free: 4.523 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000185/0.1517, allocations: 178.7 kB / 373.6 MB, free: 4.289 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.916/2.067, allocations: 4 kB / 373.6 MB, free: 4.285 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Damper_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Damper.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper_res.mat does not exist to compare? outputFormat=mat