Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.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.WhyArrows,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_WhyArrows",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.0009032/0.0009032, allocations: 94.31 kB / 16.3 MB, free: 5.996 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.0009392/0.0009393, allocations: 180.2 kB / 17.2 MB, free: 5.914 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.39/1.39, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003941/0.0003943, allocations: 9.219 kB / 300.8 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1209, allocations: 50.42 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.002298/0.1232, allocations: 1.801 MB / 353 MB, free: 9.844 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003782/0.1236, allocations: 203.3 kB / 353.2 MB, free: 9.645 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.454e-05/0.1237, allocations: 8 kB / 353.2 MB, free: 9.637 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.424e-05/0.1238, allocations: 23.83 kB / 353.3 MB, free: 9.613 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001552/0.1239, allocations: 67.8 kB / 353.3 MB, free: 9.547 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000154/0.1241, allocations: 39.94 kB / 353.4 MB, free: 9.508 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002089/0.1243, allocations: 167.6 kB / 353.5 MB, free: 9.344 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001952/0.1245, allocations: 81.81 kB / 353.6 MB, free: 9.258 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001122/0.1246, allocations: 71.77 kB / 353.7 MB, free: 9.188 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001455/0.1248, allocations: 87.62 kB / 353.8 MB, free: 9.102 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.513e-05/0.1248, allocations: 12 kB / 353.8 MB, free: 9.09 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.421e-05/0.1249, allocations: 15.94 kB / 353.8 MB, free: 9.074 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.294e-05/0.1249, allocations: 27.91 kB / 353.8 MB, free: 9.047 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.793e-05/0.125, allocations: 65.58 kB / 353.9 MB, free: 8.977 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001972/0.1252, allocations: 187.5 kB / 354.1 MB, free: 8.793 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.1252, allocations: 0 / 354.1 MB, free: 8.793 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1252, allocations: 4 kB / 354.1 MB, free: 8.789 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.1252, allocations: 0 / 354.1 MB, free: 8.789 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0007134/0.1259, allocations: 479.2 kB / 354.5 MB, free: 8.273 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.126, allocations: 12.03 kB / 354.5 MB, free: 8.262 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.588e-05/0.1261, allocations: 62.53 kB / 354.6 MB, free: 8.191 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.409e-05/0.1261, allocations: 31.61 kB / 354.6 MB, free: 8.16 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002433/0.1264, allocations: 214.7 kB / 354.8 MB, free: 7.91 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.363e-05/0.1264, allocations: 20.56 kB / 354.9 MB, free: 7.891 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.214e-05/0.1265, allocations: 20 kB / 354.9 MB, free: 7.871 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003954/0.1269, allocations: 228.3 kB / 355.1 MB, free: 7.633 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.1269, allocations: 0 / 355.1 MB, free: 7.633 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.509e-05/0.1269, allocations: 16 kB / 355.1 MB, free: 7.617 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.1269, allocations: 7.953 kB / 355.1 MB, free: 7.609 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002376/0.1272, allocations: 135.8 kB / 355.3 MB, free: 7.477 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.1283, allocations: 0.8598 MB / 356.1 MB, free: 6.555 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002021/0.1285, allocations: 155.7 kB / 356.3 MB, free: 6.375 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.356e-05/0.1285, allocations: 4 kB / 356.3 MB, free: 6.371 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.457e-05/0.1285, allocations: 38.48 kB / 356.3 MB, free: 6.324 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 1.312e-06/0.1285, allocations: 0 / 356.3 MB, free: 6.324 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.0003618/0.1289, allocations: 166.2 kB / 356.5 MB, free: 6.156 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.229e-05/0.129, allocations: 110.8 kB / 356.6 MB, free: 6.023 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/0.1291, allocations: 190.3 kB / 356.8 MB, free: 5.828 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.597e-05/0.1291, allocations: 29.7 kB / 356.8 MB, free: 5.793 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.982e-05/0.1292, allocations: 159.7 kB / 357 MB, free: 5.633 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.406e-05/0.1293, allocations: 74.97 kB / 357 MB, free: 5.559 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.648e-06/0.1293, allocations: 8 kB / 357 MB, free: 5.551 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.713e-05/0.1294, allocations: 330.8 kB / 357.4 MB, free: 5.219 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.833e-05/0.1295, allocations: 44.53 kB / 357.4 MB, free: 5.172 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001385/0.1296, allocations: 154.8 kB / 357.6 MB, free: 4.973 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001253/0.1298, allocations: 76 kB / 357.6 MB, free: 4.898 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.1298, allocations: 0 / 357.6 MB, free: 4.898 MB / 286.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003306/0.1301, allocations: 241.1 kB / 357.9 MB, free: 4.656 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.1301, allocations: 9.875 kB / 357.9 MB, free: 4.648 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.1301, allocations: 4 kB / 357.9 MB, free: 4.645 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.1302, allocations: 4 kB / 357.9 MB, free: 4.641 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002092/0.1304, allocations: 64.28 kB / 357.9 MB, free: 4.578 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.1304, allocations: 8 kB / 358 MB, free: 4.57 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/0.1305, allocations: 27.69 kB / 358 MB, free: 4.543 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.764e-05/0.1306, allocations: 16 kB / 358 MB, free: 4.527 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (33): * Single equations (assignments): 33 * 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.0001174/0.1307, allocations: 137.7 kB / 358.1 MB, free: 4.383 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.701e-05/0.1308, allocations: 19.98 kB / 358.2 MB, free: 4.363 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.255e-05/0.1308, allocations: 25.39 kB / 358.2 MB, free: 4.344 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.1308, allocations: 4 kB / 358.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.1308, allocations: 0 / 358.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.1308, allocations: 4 kB / 358.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005166/0.1314, allocations: 428.8 kB / 358.6 MB, free: 3.852 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.1314, allocations: 4 kB / 358.6 MB, free: 3.848 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00018/0.1316, allocations: 35.92 kB / 358.6 MB, free: 3.812 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.1316, allocations: 4 kB / 358.6 MB, free: 3.809 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/0.1316, allocations: 8 kB / 358.7 MB, free: 3.801 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.1316, allocations: 0 / 358.7 MB, free: 3.801 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.1316, allocations: 8.094 kB / 358.7 MB, free: 3.793 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003643/0.132, allocations: 432.1 kB / 359.1 MB, free: 3.316 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.738e-05/0.1321, allocations: 96.86 kB / 359.2 MB, free: 3.203 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.036e-05/0.1321, allocations: 4 kB / 359.2 MB, free: 3.199 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000132/0.1322, allocations: 4 kB / 359.2 MB, free: 3.195 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.607e-05/0.1323, allocations: 12.03 kB / 359.2 MB, free: 3.184 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/0.1323, allocations: 4 kB / 359.2 MB, free: 3.18 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001007/0.1324, allocations: 148.2 kB / 359.3 MB, free: 3.035 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.362e-06/0.1324, allocations: 4 kB / 359.4 MB, free: 3.031 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003608/0.1327, allocations: 55.84 kB / 359.4 MB, free: 2.977 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (inertia2.s,inertia2.v,mass1.s,mass1.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 (17): * Single equations (assignments): 17 * 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.0006479/0.1334, allocations: 1.234 MB / 360.6 MB, free: 1.691 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000234/0.1336, allocations: 132.5 kB / 360.8 MB, free: 1.562 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.1337, allocations: 4.188 kB / 360.8 MB, free: 1.559 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.561e-05/0.1337, allocations: 55.91 kB / 360.8 MB, free: 1.504 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.1341, allocations: 28.11 kB / 360.9 MB, free: 1.477 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002707/0.1368, allocations: 3.677 MB / 364.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.1371, allocations: 0.7398 MB / 365.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.887e-05/0.1372, allocations: 25.94 kB / 365.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.547e-05/0.1373, allocations: 51.42 kB / 365.3 MB, free: 12.83 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.1373, allocations: 3.938 kB / 365.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0127/0.15, allocations: 3.309 MB / 368.7 MB, free: 9.648 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001753/0.1502, allocations: 189 kB / 368.8 MB, free: 9.402 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.676/1.826, allocations: 0 / 368.8 MB, free: 9.402 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_WhyArrows_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_WhyArrows.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat does not exist to compare? outputFormat=mat