Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002275/0.002275, allocations: 185.5 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.067/2.067, allocations: 205.4 MB / 222.5 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001106/0.001105, allocations: 96.41 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003915/0.0003916, allocations: 8 kB / 327.1 MB, free: 128 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3297, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.122/0.4518, allocations: 75.58 MB / 450.2 MB, free: 5.078 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/0.4521, allocations: 71.95 kB / 450.3 MB, free: 5.008 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01412/0.4663, allocations: 3.448 MB / 453.7 MB, free: 1.547 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.4663, allocations: 0 / 453.7 MB, free: 1.547 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.4663, allocations: 4 kB / 453.7 MB, free: 1.543 MB / 330.7 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.0008157/0.4672, allocations: 471.2 kB / 454.2 MB, free: 1.035 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.4672, allocations: 16.03 kB / 454.2 MB, free: 1.02 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.695e-05/0.4673, allocations: 62.53 kB / 454.3 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.901e-05/0.4674, allocations: 23.72 kB / 454.3 MB, free: 0.9258 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001767/0.4676, allocations: 194.2 kB / 454.5 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.014e-05/0.4676, allocations: 20.56 kB / 454.5 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.932e-05/0.4677, allocations: 23.89 kB / 454.5 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000563/0.4683, allocations: 236.2 kB / 454.8 MB, free: 416 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/0.4683, allocations: 4 kB / 454.8 MB, free: 412 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.45e-05/0.4684, allocations: 12 kB / 454.8 MB, free: 400 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.4684, allocations: 4 kB / 454.8 MB, free: 396 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003822/0.4688, allocations: 123.9 kB / 454.9 MB, free: 272 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001682/0.4705, allocations: 0.8714 MB / 455.8 MB, free: 15.33 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003529/0.4709, allocations: 163.9 kB / 455.9 MB, free: 15.14 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.245e-05/0.4709, allocations: 4 kB / 455.9 MB, free: 15.14 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.584e-05/0.4709, allocations: 34.56 kB / 456 MB, free: 15.1 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 2.725e-06/0.471, allocations: 0 / 456 MB, free: 15.1 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005526/0.4715, allocations: 170 kB / 456.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.704e-05/0.4716, allocations: 114.7 kB / 456.2 MB, free: 14.79 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002474/0.4719, allocations: 177.4 kB / 456.4 MB, free: 14.61 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.345e-05/0.4719, allocations: 29.7 kB / 456.4 MB, free: 14.57 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/0.472, allocations: 214.4 kB / 456.7 MB, free: 14.36 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.928e-05/0.4721, allocations: 71 kB / 456.7 MB, free: 14.29 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.786e-05/0.4722, allocations: 8 kB / 456.7 MB, free: 14.29 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.4723, allocations: 322.8 kB / 457 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.4724, allocations: 44.55 kB / 457.1 MB, free: 13.91 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002262/0.4727, allocations: 150.8 kB / 457.2 MB, free: 13.72 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002114/0.4729, allocations: 71.94 kB / 457.3 MB, free: 13.65 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.4729, allocations: 0 / 457.3 MB, free: 13.65 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005633/0.4735, allocations: 233.6 kB / 457.5 MB, free: 13.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.4735, allocations: 11.94 kB / 457.5 MB, free: 13.4 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.4736, allocations: 4 kB / 457.6 MB, free: 13.4 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.4736, allocations: 7.938 kB / 457.6 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004087/0.474, allocations: 59.88 kB / 457.6 MB, free: 13.33 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.703e-05/0.474, allocations: 11.98 kB / 457.6 MB, free: 13.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002271/0.4743, allocations: 28.5 kB / 457.7 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.616e-05/0.4743, allocations: 12 kB / 457.7 MB, free: 13.28 MB / 346.7 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.0001757/0.4745, allocations: 141.8 kB / 457.8 MB, free: 13.13 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.324e-05/0.4746, allocations: 19.81 kB / 457.8 MB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.52e-05/0.4747, allocations: 25.39 kB / 457.9 MB, free: 13.09 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.4747, allocations: 0 / 457.9 MB, free: 13.09 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.4747, allocations: 3.953 kB / 457.9 MB, free: 13.08 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.4747, allocations: 4 kB / 457.9 MB, free: 13.08 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007428/0.4755, allocations: 416.9 kB / 458.3 MB, free: 12.61 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.4755, allocations: 4.094 kB / 458.3 MB, free: 12.6 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003725/0.4759, allocations: 39.97 kB / 458.3 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.775e-06/0.4759, allocations: 3.953 kB / 458.3 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.358e-05/0.476, allocations: 11.94 kB / 458.3 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.56e-06/0.476, allocations: 4 kB / 458.3 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.476, allocations: 3.938 kB / 458.3 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000588/0.4766, allocations: 413.2 kB / 458.7 MB, free: 12.08 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.481e-05/0.4767, allocations: 108.8 kB / 458.8 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.129e-05/0.4767, allocations: 0 / 458.8 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002301/0.477, allocations: 12 kB / 458.9 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.671e-05/0.477, allocations: 19.88 kB / 458.9 MB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.801e-05/0.477, allocations: 8 kB / 458.9 MB, free: 11.92 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001711/0.4772, allocations: 140.3 kB / 459 MB, free: 11.78 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4772, allocations: 0 / 459 MB, free: 11.78 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005038/0.4778, allocations: 55.94 kB / 459.1 MB, free: 11.73 MB / 346.7 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.0009581/0.4787, allocations: 1.229 MB / 460.3 MB, free: 10.45 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004/0.4791, allocations: 139.8 kB / 460.4 MB, free: 10.31 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.4792, allocations: 0 / 460.4 MB, free: 10.31 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001354/0.4793, allocations: 56.56 kB / 460.5 MB, free: 10.26 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004514/0.4798, allocations: 25.23 kB / 460.5 MB, free: 10.23 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003694/0.4835, allocations: 3.728 MB / 464.2 MB, free: 6.375 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003612/0.4839, allocations: 0.7359 MB / 465 MB, free: 5.613 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001557/0.4841, allocations: 63.41 kB / 465 MB, free: 5.551 MB / 346.7 MB Notification: Performance of SimCode: time 1.092e-06/0.4841, allocations: 0 / 465 MB, free: 5.551 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.488/2.972, allocations: 3.115 MB / 468.2 MB, free: 2.434 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_WhyArrows_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_WhyArrows.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat does not exist to compare? outputFormat=mat