Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Sensors,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Sensors",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.001099/0.001099, allocations: 96.5 kB / 16.95 MB, free: 6.113 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.001302/0.001302, allocations: 178.1 kB / 17.84 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.585/1.585, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005015/0.0005016, allocations: 12 kB / 280.9 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1157, allocations: 47.58 MB / 328.5 MB, free: 3.988 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.002699/0.1184, allocations: 1.624 MB / 330.1 MB, free: 2.348 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001096/0.1195, allocations: 0.5077 MB / 330.6 MB, free: 1.832 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001617/0.1197, allocations: 4 kB / 330.6 MB, free: 1.828 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001209/0.1199, allocations: 19.84 kB / 330.6 MB, free: 1.809 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.69e-05/0.12, allocations: 23.78 kB / 330.6 MB, free: 1.785 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002317/0.1202, allocations: 27.97 kB / 330.7 MB, free: 1.758 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002229/0.1205, allocations: 139.4 kB / 330.8 MB, free: 1.621 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001774/0.1206, allocations: 62.12 kB / 330.9 MB, free: 1.559 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001273/0.1208, allocations: 47.8 kB / 330.9 MB, free: 1.512 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001339/0.1209, allocations: 55.77 kB / 331 MB, free: 1.457 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.77e-05/0.121, allocations: 8 kB / 331 MB, free: 1.449 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.401e-05/0.121, allocations: 4 kB / 331 MB, free: 1.445 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.084e-05/0.121, allocations: 31.84 kB / 331 MB, free: 1.414 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.695e-05/0.1211, allocations: 49.64 kB / 331 MB, free: 1.359 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001622/0.1213, allocations: 123.9 kB / 331.2 MB, free: 1.238 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.1213, allocations: 4 kB / 331.2 MB, free: 1.234 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1213, allocations: 0 / 331.2 MB, free: 1.234 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.1213, allocations: 0 / 331.2 MB, free: 1.234 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0006346/0.1219, allocations: 410.9 kB / 331.6 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/0.122, allocations: 12.03 kB / 331.6 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.605e-05/0.1221, allocations: 46.55 kB / 331.6 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.843e-05/0.1221, allocations: 19.81 kB / 331.6 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002611/0.1224, allocations: 198.8 kB / 331.8 MB, free: 476 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.836e-05/0.1224, allocations: 19.94 kB / 331.9 MB, free: 456 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.515e-05/0.1225, allocations: 16 kB / 331.9 MB, free: 440 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005118/0.123, allocations: 149.1 kB / 332 MB, free: 284 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.247e-05/0.123, allocations: 0 / 332 MB, free: 284 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.284e-05/0.1231, allocations: 11.92 kB / 332 MB, free: 272 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.1231, allocations: 4 kB / 332 MB, free: 268 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002839/0.1234, allocations: 91.95 kB / 332.1 MB, free: 176 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001357/0.1247, allocations: 0.5327 MB / 332.7 MB, free: 15.58 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002247/0.125, allocations: 78.53 kB / 332.7 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.1251, allocations: 32.84 kB / 332.8 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.1252, allocations: 0 / 332.8 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001558/0.1253, allocations: 42.69 kB / 332.8 MB, free: 15.41 MB / 286.1 MB Notification: Performance of pre-optimization done (n=9): time 3.757e-06/0.1253, allocations: 3.984 kB / 332.8 MB, free: 15.41 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.001516/0.1269, allocations: 0.6061 MB / 333.4 MB, free: 14.71 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.463e-05/0.1269, allocations: 59.34 kB / 333.5 MB, free: 14.64 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.1271, allocations: 129.5 kB / 333.6 MB, free: 14.5 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001066/0.1272, allocations: 29.7 kB / 333.6 MB, free: 14.47 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.1273, allocations: 135.9 kB / 333.8 MB, free: 14.33 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.215e-05/0.1274, allocations: 39.39 kB / 333.8 MB, free: 14.29 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.003e-05/0.1274, allocations: 4 kB / 333.8 MB, free: 14.29 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0004082/0.1278, allocations: 323.9 kB / 334.1 MB, free: 13.96 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/0.128, allocations: 31.97 kB / 334.2 MB, free: 13.93 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001729/0.1281, allocations: 86.8 kB / 334.2 MB, free: 13.82 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001336/0.1283, allocations: 47.98 kB / 334.3 MB, free: 13.78 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1283, allocations: 0 / 334.3 MB, free: 13.78 MB / 286.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003895/0.1287, allocations: 169.3 kB / 334.5 MB, free: 13.61 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.1287, allocations: 4 kB / 334.5 MB, free: 13.6 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.1288, allocations: 4 kB / 334.5 MB, free: 13.6 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.1288, allocations: 7.938 kB / 334.5 MB, free: 13.59 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002057/0.129, allocations: 35.97 kB / 334.5 MB, free: 13.55 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.129, allocations: 4 kB / 334.5 MB, free: 13.55 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/0.1291, allocations: 8 kB / 334.5 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.1292, allocations: 8 kB / 334.5 MB, free: 13.54 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 19 * 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.0001523/0.1294, allocations: 130 kB / 334.7 MB, free: 13.4 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.359e-05/0.1295, allocations: 11.86 kB / 334.7 MB, free: 13.39 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.856e-05/0.1295, allocations: 20.36 kB / 334.7 MB, free: 13.37 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.1295, allocations: 0 / 334.7 MB, free: 13.37 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.1296, allocations: 0 / 334.7 MB, free: 13.37 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/0.1296, allocations: 0 / 334.7 MB, free: 13.37 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008887/0.1305, allocations: 452 kB / 335.1 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1305, allocations: 0 / 335.1 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001952/0.1307, allocations: 31.92 kB / 335.2 MB, free: 12.83 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.1307, allocations: 0 / 335.2 MB, free: 12.83 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.1307, allocations: 0 / 335.2 MB, free: 12.83 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.941e-06/0.1307, allocations: 4 kB / 335.2 MB, free: 12.83 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.1308, allocations: 0 / 335.2 MB, free: 12.83 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005367/0.1313, allocations: 261.1 kB / 335.4 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.385e-05/0.1314, allocations: 88.98 kB / 335.5 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.292e-05/0.1314, allocations: 0 / 335.5 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.1315, allocations: 8.062 kB / 335.5 MB, free: 12.44 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.212e-05/0.1316, allocations: 11.98 kB / 335.5 MB, free: 12.43 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.297e-06/0.1316, allocations: 4 kB / 335.5 MB, free: 12.42 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.856e-05/0.1317, allocations: 95.27 kB / 335.6 MB, free: 12.33 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1317, allocations: 192 / 335.6 MB, free: 12.33 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004596/0.1322, allocations: 24 kB / 335.6 MB, free: 12.3 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mass.s,mass.v) * 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 (11): * Single equations (assignments): 11 * 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.001008/0.1332, allocations: 0.7961 MB / 336.4 MB, free: 11.47 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004236/0.1337, allocations: 99.89 kB / 336.5 MB, free: 11.38 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1337, allocations: 0 / 336.5 MB, free: 11.38 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001084/0.1338, allocations: 43.92 kB / 336.6 MB, free: 11.33 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004376/0.1342, allocations: 12.34 kB / 336.6 MB, free: 11.32 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002243/0.1365, allocations: 0.9757 MB / 337.6 MB, free: 10.28 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000568/0.1371, allocations: 0.7082 MB / 338.3 MB, free: 9.543 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001905/0.1373, allocations: 16.88 kB / 338.3 MB, free: 9.523 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.67e-05/0.1374, allocations: 39.42 kB / 338.3 MB, free: 9.484 MB / 286.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1374, allocations: 0 / 338.3 MB, free: 9.484 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1115/0.2489, allocations: 2.071 MB / 340.4 MB, free: 7.426 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003818/0.2493, allocations: 187.1 kB / 340.6 MB, free: 7.184 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.866/2.116, allocations: 0 / 340.6 MB, free: 7.184 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Sensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Sensors.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors_res.mat does not exist to compare? outputFormat=mat