Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002125/0.002125, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.68/1.68, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009994/0.0009994, allocations: 88.03 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.036e-05/2.04e-05, allocations: 0 / 343.8 MB, free: 8.191 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1409/0.141, allocations: 51.48 MB / 395.3 MB, free: 4.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4252/0.5662, allocations: 76.8 MB / 472.1 MB, free: 14.6 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002931/0.5665, allocations: 64.17 kB / 472.1 MB, free: 14.58 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009407/0.576, allocations: 3.541 MB / 475.7 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.576, allocations: 0 / 475.7 MB, free: 12.55 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.576, allocations: 7.469 kB / 475.7 MB, free: 12.54 MB / 346.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.0004813/0.5765, allocations: 467 kB / 476.1 MB, free: 12.08 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.5766, allocations: 8.031 kB / 476.1 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.64e-05/0.5766, allocations: 25.03 kB / 476.2 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001187/0.5768, allocations: 186.8 kB / 476.3 MB, free: 11.83 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.935e-05/0.5768, allocations: 10.27 kB / 476.3 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.949e-05/0.5768, allocations: 19.91 kB / 476.4 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002214/0.5771, allocations: 110.4 kB / 476.5 MB, free: 11.74 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002839/0.5774, allocations: 194.9 kB / 476.7 MB, free: 11.59 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.5774, allocations: 7.938 kB / 476.7 MB, free: 11.59 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.808e-05/0.5774, allocations: 0 / 476.7 MB, free: 11.59 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.5774, allocations: 4 kB / 476.7 MB, free: 11.58 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001009/0.5784, allocations: 0.8187 MB / 477.5 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001837/0.5786, allocations: 141.3 kB / 477.6 MB, free: 10.78 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.998e-05/0.5787, allocations: 52.95 kB / 477.7 MB, free: 10.73 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.523e-05/0.5787, allocations: 8 kB / 477.7 MB, free: 10.72 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.889e-05/0.5788, allocations: 35.62 kB / 477.7 MB, free: 10.68 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.363e-06/0.5788, allocations: 0 / 477.7 MB, free: 10.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002738/0.5791, allocations: 127.2 kB / 477.9 MB, free: 10.58 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.4e-05/0.5791, allocations: 106.8 kB / 478 MB, free: 10.45 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/0.5792, allocations: 146.8 kB / 478.1 MB, free: 10.32 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.337e-05/0.5792, allocations: 31.16 kB / 478.1 MB, free: 10.29 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.546e-05/0.5793, allocations: 159.8 kB / 478.3 MB, free: 10.15 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.673e-05/0.5794, allocations: 62.38 kB / 478.3 MB, free: 10.1 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.956e-06/0.5794, allocations: 0 / 478.3 MB, free: 10.1 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.989e-05/0.5795, allocations: 331.3 kB / 478.7 MB, free: 9.785 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.441e-05/0.5795, allocations: 36.19 kB / 478.7 MB, free: 9.766 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001117/0.5796, allocations: 140.8 kB / 478.8 MB, free: 9.605 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001019/0.5798, allocations: 68.5 kB / 478.9 MB, free: 9.566 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.5798, allocations: 0 / 478.9 MB, free: 9.566 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002587/0.58, allocations: 207.3 kB / 479.1 MB, free: 9.402 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.5801, allocations: 7.938 kB / 479.1 MB, free: 9.395 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.5801, allocations: 4 kB / 479.1 MB, free: 9.391 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.5801, allocations: 8 kB / 479.1 MB, free: 9.383 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001999/0.5803, allocations: 62.39 kB / 479.2 MB, free: 9.332 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.5803, allocations: 4 kB / 479.2 MB, free: 9.328 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001201/0.5804, allocations: 32.08 kB / 479.2 MB, free: 9.297 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.565e-05/0.5805, allocations: 11.33 kB / 479.2 MB, free: 9.289 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 () * 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 7.282e-05/0.5805, allocations: 116.5 kB / 479.4 MB, free: 9.172 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001939/0.5807, allocations: 121 kB / 479.5 MB, free: 9.074 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.921e-05/0.5808, allocations: 15.81 kB / 479.5 MB, free: 9.059 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.165e-05/0.5809, allocations: 21.84 kB / 479.5 MB, free: 9.055 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.5809, allocations: 9.406 kB / 479.5 MB, free: 9.047 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.5809, allocations: 4.031 kB / 479.5 MB, free: 9.043 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.5809, allocations: 7.984 kB / 479.5 MB, free: 9.035 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000387/0.5813, allocations: 367.9 kB / 479.9 MB, free: 8.688 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.5813, allocations: 4 kB / 479.9 MB, free: 8.684 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000213/0.5815, allocations: 35.88 kB / 479.9 MB, free: 8.656 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.5815, allocations: 9.312 kB / 479.9 MB, free: 8.648 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.5816, allocations: 4 kB / 479.9 MB, free: 8.645 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.5816, allocations: 0 / 479.9 MB, free: 8.645 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.5816, allocations: 0 / 479.9 MB, free: 8.645 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003116/0.5819, allocations: 414.5 kB / 480.3 MB, free: 8.242 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.745e-05/0.5819, allocations: 93.64 kB / 480.4 MB, free: 8.137 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.646e-05/0.582, allocations: 0 / 480.4 MB, free: 8.137 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001221/0.5821, allocations: 4 kB / 480.4 MB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.522e-05/0.5821, allocations: 14.95 kB / 480.5 MB, free: 8.125 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.776e-06/0.5822, allocations: 6.344 kB / 480.5 MB, free: 8.121 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.315e-05/0.5822, allocations: 123.2 kB / 480.6 MB, free: 8.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.262e-06/0.5822, allocations: 3.938 kB / 480.6 MB, free: 8.016 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003383/0.5826, allocations: 51.78 kB / 480.6 MB, free: 7.965 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 () * 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.0005002/0.5831, allocations: 1.208 MB / 481.8 MB, free: 6.758 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000199/0.5833, allocations: 124.1 kB / 482 MB, free: 6.672 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.5833, allocations: 0 / 482 MB, free: 6.672 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.754e-05/0.5834, allocations: 51.64 kB / 482 MB, free: 6.633 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003236/0.5837, allocations: 23.7 kB / 482 MB, free: 6.621 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009606/0.5847, allocations: 0.5208 MB / 482.6 MB, free: 6.137 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001887/0.5849, allocations: 0.7443 MB / 483.3 MB, free: 5.395 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.745e-05/0.585, allocations: 17.2 kB / 483.3 MB, free: 5.383 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.522e-05/0.585, allocations: 56.48 kB / 483.4 MB, free: 5.367 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.585, allocations: 0 / 483.4 MB, free: 5.367 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02158/0.6066, allocations: 2.766 MB / 486.1 MB, free: 3.047 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001636/0.6069, allocations: 139.4 kB / 486.3 MB, free: 2.855 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.789/2.396, allocations: 0 / 486.3 MB, free: 2.855 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat does not exist to compare? outputFormat=mat