Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_3_2_3_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.001026/0.001026, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.736/1.736, allocations: 205.3 MB / 214.4 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009081/0.0009085, allocations: 82.7 kB / 262.5 MB, free: 1.676 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.019e-05/2.028e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1229, allocations: 47.59 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4197/0.5427, allocations: 75.05 MB / 438.2 MB, free: 4.559 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/0.543, allocations: 67.41 kB / 438.3 MB, free: 4.523 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008721/0.5517, allocations: 3.413 MB / 441.7 MB, free: 1.676 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.5517, allocations: 0 / 441.7 MB, free: 1.676 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.5518, allocations: 4 kB / 441.7 MB, free: 1.672 MB / 314.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.0005564/0.5523, allocations: 469 kB / 442.2 MB, free: 1.184 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.5524, allocations: 8.031 kB / 442.2 MB, free: 1.176 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.246e-05/0.5525, allocations: 23.72 kB / 442.2 MB, free: 1.152 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000187/0.5527, allocations: 186.8 kB / 442.4 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.5527, allocations: 8 kB / 442.4 MB, free: 0.9219 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.666e-05/0.5527, allocations: 19.89 kB / 442.4 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002462/0.553, allocations: 114.7 kB / 442.5 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003462/0.5534, allocations: 197.9 kB / 442.7 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.5534, allocations: 3.984 kB / 442.7 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.051e-05/0.5534, allocations: 0 / 442.7 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.5534, allocations: 8 kB / 442.7 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001082/0.5545, allocations: 0.8146 MB / 443.5 MB, free: 15.88 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001939/0.5547, allocations: 146.3 kB / 443.7 MB, free: 15.73 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.59e-05/0.5548, allocations: 56.77 kB / 443.7 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.513e-05/0.5548, allocations: 0 / 443.7 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.659e-05/0.5549, allocations: 38.06 kB / 443.8 MB, free: 15.64 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 1.042e-06/0.5549, allocations: 0 / 443.8 MB, free: 15.64 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002751/0.5552, allocations: 128.2 kB / 443.9 MB, free: 15.53 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.191e-05/0.5552, allocations: 104.9 kB / 444 MB, free: 15.4 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/0.5554, allocations: 155.2 kB / 444.1 MB, free: 15.26 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.747e-05/0.5554, allocations: 29.64 kB / 444.2 MB, free: 15.22 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.5555, allocations: 163.9 kB / 444.3 MB, free: 15.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.54e-05/0.5556, allocations: 61.55 kB / 444.4 MB, free: 15.02 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.444e-06/0.5556, allocations: 0 / 444.4 MB, free: 15.02 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.5557, allocations: 322.4 kB / 444.7 MB, free: 14.7 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.252e-05/0.5558, allocations: 44.88 kB / 444.8 MB, free: 14.68 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001459/0.556, allocations: 142.6 kB / 444.9 MB, free: 14.51 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001045/0.5561, allocations: 65.09 kB / 445 MB, free: 14.46 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.5561, allocations: 0 / 445 MB, free: 14.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002977/0.5564, allocations: 202.7 kB / 445.2 MB, free: 14.29 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.5564, allocations: 11.98 kB / 445.2 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.5564, allocations: 4 kB / 445.2 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.5565, allocations: 4 kB / 445.2 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002042/0.5567, allocations: 59.98 kB / 445.2 MB, free: 14.22 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.38e-05/0.5567, allocations: 11.94 kB / 445.2 MB, free: 14.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.5568, allocations: 31.67 kB / 445.3 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.001e-05/0.5568, allocations: 15.98 kB / 445.3 MB, free: 14.16 MB / 330.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 () * 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 9.427e-05/0.5569, allocations: 120.4 kB / 445.4 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001985/0.5571, allocations: 115.5 kB / 445.5 MB, free: 13.94 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.07e-05/0.5572, allocations: 15.81 kB / 445.5 MB, free: 13.92 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.383e-05/0.5573, allocations: 17.53 kB / 445.6 MB, free: 13.91 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.5573, allocations: 7.953 kB / 445.6 MB, free: 13.9 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.5573, allocations: 0 / 445.6 MB, free: 13.9 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.225e-05/0.5573, allocations: 7.984 kB / 445.6 MB, free: 13.89 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004382/0.5578, allocations: 369.6 kB / 445.9 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.5578, allocations: 0 / 445.9 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001992/0.558, allocations: 42.86 kB / 446 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.823e-06/0.558, allocations: 7.953 kB / 446 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.558, allocations: 0 / 446 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.558, allocations: 4 kB / 446 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.558, allocations: 4.094 kB / 446 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004002/0.5584, allocations: 406.6 kB / 446.4 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.688e-05/0.5585, allocations: 88.95 kB / 446.5 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.684e-05/0.5585, allocations: 4 kB / 446.5 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/0.5587, allocations: 0 / 446.5 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.203e-05/0.5587, allocations: 23.28 kB / 446.5 MB, free: 12.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.346e-06/0.5587, allocations: 4 kB / 446.5 MB, free: 12.92 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.445e-05/0.5588, allocations: 112.8 kB / 446.6 MB, free: 12.82 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5588, allocations: 4 kB / 446.6 MB, free: 12.82 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003428/0.5592, allocations: 47.84 kB / 446.7 MB, free: 12.77 MB / 330.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 () * 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.000737/0.5599, allocations: 1.21 MB / 447.9 MB, free: 11.56 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002223/0.5601, allocations: 127.3 kB / 448 MB, free: 11.46 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.5602, allocations: 4.812 kB / 448 MB, free: 11.46 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.227e-05/0.5602, allocations: 46.81 kB / 448.1 MB, free: 11.43 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000329/0.5606, allocations: 30.73 kB / 448.1 MB, free: 11.4 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.5616, allocations: 0.5193 MB / 448.6 MB, free: 10.86 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003703/0.562, allocations: 0.7399 MB / 449.3 MB, free: 10.09 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.463e-05/0.5621, allocations: 17.86 kB / 449.4 MB, free: 10.07 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.642e-05/0.5622, allocations: 61.3 kB / 449.4 MB, free: 10.05 MB / 330.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5622, allocations: 0 / 449.4 MB, free: 10.05 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02242/0.5846, allocations: 2.76 MB / 452.2 MB, free: 7.297 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002142/0.5849, allocations: 148.3 kB / 452.3 MB, free: 7.098 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.642/2.227, allocations: 0 / 452.3 MB, free: 7.098 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_WhyArrows_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_WhyArrows.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat does not exist to compare? outputFormat=mat