Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",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.001571/0.001571, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.401/1.401, allocations: 205.2 MB / 219.8 MB, free: 14.21 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.0009089/0.0009089, allocations: 86.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.722e-05/2.724e-05, allocations: 4 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09297/0.09301, allocations: 47.56 MB / 370.1 MB, free: 1.629 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3482/0.4413, allocations: 80.09 MB / 450.2 MB, free: 13.22 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000221/0.4416, allocations: 72.45 kB / 450.3 MB, free: 13.18 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02759/0.4692, allocations: 9.397 MB / 459.7 MB, free: 5.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4693, allocations: 0 / 459.7 MB, free: 5.23 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.234e-05/0.4693, allocations: 8 kB / 459.7 MB, free: 5.223 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001124/0.4704, allocations: 0.5555 MB / 460.2 MB, free: 4.641 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.4705, allocations: 8.031 kB / 460.2 MB, free: 4.633 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001331/0.4706, allocations: 64.84 kB / 460.3 MB, free: 4.57 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000339/0.471, allocations: 51.61 kB / 460.4 MB, free: 4.52 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000415/0.4714, allocations: 278.5 kB / 460.6 MB, free: 4.207 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001189/0.4715, allocations: 91.91 kB / 460.7 MB, free: 4.105 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.623e-05/0.4716, allocations: 31.91 kB / 460.7 MB, free: 4.074 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005733/0.4722, allocations: 353.3 kB / 461.1 MB, free: 3.711 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.4722, allocations: 0 / 461.1 MB, free: 3.711 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.656e-05/0.4723, allocations: 12 kB / 461.1 MB, free: 3.699 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.4723, allocations: 4 kB / 461.1 MB, free: 3.695 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006308/0.4729, allocations: 382 kB / 461.5 MB, free: 3.324 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.4748, allocations: 1.163 MB / 462.6 MB, free: 2.086 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005049/0.4753, allocations: 315 kB / 462.9 MB, free: 1.766 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002579/0.4755, allocations: 164.8 kB / 463.1 MB, free: 1.602 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.762e-05/0.4756, allocations: 7.984 kB / 463.1 MB, free: 1.594 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/0.4756, allocations: 42.56 kB / 463.2 MB, free: 1.543 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 2.033e-06/0.4756, allocations: 0 / 463.2 MB, free: 1.543 MB / 330.7 MB Notification: Performance of matching and sorting (n=45): time 0.002332/0.478, allocations: 1.319 MB / 464.5 MB, free: 132 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.627e-05/0.478, allocations: 88.86 kB / 464.6 MB, free: 24 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002167/0.4783, allocations: 185.6 kB / 464.7 MB, free: 15.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.073e-05/0.4783, allocations: 37.7 kB / 464.8 MB, free: 15.79 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.194e-05/0.4784, allocations: 136.6 kB / 464.9 MB, free: 15.65 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.4785, allocations: 150 kB / 465.1 MB, free: 15.5 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.457e-05/0.4786, allocations: 8 kB / 465.1 MB, free: 15.5 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.4787, allocations: 334.8 kB / 465.4 MB, free: 15.16 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002521/0.479, allocations: 148.8 kB / 465.5 MB, free: 15.02 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002919/0.4793, allocations: 209.9 kB / 465.7 MB, free: 14.79 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002434/0.4795, allocations: 134.2 kB / 465.9 MB, free: 14.66 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.4795, allocations: 0 / 465.9 MB, free: 14.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000848/0.4804, allocations: 0.5161 MB / 466.4 MB, free: 14.14 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.4804, allocations: 7.953 kB / 466.4 MB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.4804, allocations: 7.938 kB / 466.4 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006428/0.4811, allocations: 226.2 kB / 466.6 MB, free: 13.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002504/0.4813, allocations: 67.89 kB / 466.7 MB, free: 13.83 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00345/0.4848, allocations: 2.625 MB / 469.3 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002795/0.4851, allocations: 31.97 kB / 469.4 MB, free: 11.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.654e-05/0.4852, allocations: 23.92 kB / 469.4 MB, free: 11.02 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.000153/0.4853, allocations: 133.9 kB / 469.5 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.471e-05/0.4854, allocations: 27.72 kB / 469.5 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001/0.4855, allocations: 38.78 kB / 469.6 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.4855, allocations: 4 kB / 469.6 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.4855, allocations: 0 / 469.6 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.4855, allocations: 3.984 kB / 469.6 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001575/0.4871, allocations: 1.031 MB / 470.6 MB, free: 9.719 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.4871, allocations: 0 / 470.6 MB, free: 9.719 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002305/0.4874, allocations: 55.84 kB / 470.7 MB, free: 9.664 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005942/0.488, allocations: 216.9 kB / 470.9 MB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.594e-05/0.488, allocations: 15.98 kB / 470.9 MB, free: 9.434 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003215/0.4912, allocations: 2.585 MB / 473.5 MB, free: 6.711 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.4913, allocations: 3.984 kB / 473.5 MB, free: 6.707 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.4923, allocations: 0.7397 MB / 474.2 MB, free: 5.949 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001623/0.4925, allocations: 152.7 kB / 474.4 MB, free: 5.781 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.544e-05/0.4926, allocations: 8 kB / 474.4 MB, free: 5.773 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002631/0.4929, allocations: 31.97 kB / 474.4 MB, free: 5.742 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.493, allocations: 71.94 kB / 474.5 MB, free: 5.672 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.876e-05/0.4931, allocations: 11.98 kB / 474.5 MB, free: 5.66 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000158/0.4932, allocations: 156.3 kB / 474.6 MB, free: 5.508 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4932, allocations: 0 / 474.6 MB, free: 5.508 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006131/0.4939, allocations: 148 kB / 474.8 MB, free: 5.363 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.001525/0.4954, allocations: 1.327 MB / 476.1 MB, free: 4 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009773/0.4964, allocations: 0.5678 MB / 476.7 MB, free: 3.422 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4964, allocations: 4.312 kB / 476.7 MB, free: 3.418 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005509/0.497, allocations: 404.6 kB / 477.1 MB, free: 3.008 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002849/0.4973, allocations: 28.11 kB / 477.1 MB, free: 2.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.4985, allocations: 0.608 MB / 477.7 MB, free: 2.336 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003855/0.4989, allocations: 0.7917 MB / 478.5 MB, free: 1.516 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002134/0.4991, allocations: 58.95 kB / 478.6 MB, free: 1.457 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001679/0.4993, allocations: 79.39 kB / 478.6 MB, free: 1.379 MB / 346.7 MB Notification: Performance of SimCode: time 6.51e-07/0.4993, allocations: 0 / 478.6 MB, free: 1.379 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02615/0.5255, allocations: 8.759 MB / 487.4 MB, free: 8.617 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002163/0.5257, allocations: 178.5 kB / 487.6 MB, free: 8.398 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.892/2.418, allocations: 0 / 487.6 MB, free: 8.398 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat