Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",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.001169/0.00117, allocations: 175.8 kB / 8.696 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.94/1.94, allocations: 205.3 MB / 214.4 MB, free: 1.738 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.0009652/0.0009649, allocations: 82.7 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.01e-05/2.014e-05, allocations: 0 / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1131, allocations: 47.59 MB / 363.2 MB, free: 6.992 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4006/0.5137, allocations: 80.38 MB / 443.5 MB, free: 15.31 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00025/0.514, allocations: 66.34 kB / 443.6 MB, free: 15.28 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02856/0.5426, allocations: 10.12 MB / 453.7 MB, free: 6.875 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.5426, allocations: 0 / 453.7 MB, free: 6.875 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.866e-05/0.5427, allocations: 4 kB / 453.7 MB, free: 6.871 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.00107/0.5437, allocations: 0.5985 MB / 454.3 MB, free: 6.25 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.5438, allocations: 12.03 kB / 454.3 MB, free: 6.238 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003057/0.5441, allocations: 47.61 kB / 454.4 MB, free: 6.191 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003981/0.5445, allocations: 298.9 kB / 454.7 MB, free: 5.887 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/0.5447, allocations: 76.17 kB / 454.8 MB, free: 5.801 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.098e-05/0.5447, allocations: 27.42 kB / 454.8 MB, free: 5.777 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006285/0.5454, allocations: 395 kB / 455.2 MB, free: 5.496 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000543/0.5459, allocations: 346.1 kB / 455.5 MB, free: 5.23 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.19e-05/0.5459, allocations: 7.984 kB / 455.5 MB, free: 5.223 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.443e-05/0.546, allocations: 0 / 455.5 MB, free: 5.223 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.546, allocations: 4 kB / 455.5 MB, free: 5.219 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001296/0.5473, allocations: 0.825 MB / 456.3 MB, free: 4.52 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005129/0.5478, allocations: 327.4 kB / 456.7 MB, free: 4.301 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002602/0.5481, allocations: 184.8 kB / 456.8 MB, free: 4.188 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.055e-05/0.5482, allocations: 8.312 kB / 456.8 MB, free: 4.184 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.671e-05/0.5482, allocations: 46.25 kB / 456.9 MB, free: 4.133 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 1.643e-06/0.5482, allocations: 0 / 456.9 MB, free: 4.133 MB / 330.7 MB Notification: Performance of matching and sorting (n=55): time 0.002649/0.5508, allocations: 1.426 MB / 458.3 MB, free: 2.895 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.565e-05/0.5509, allocations: 93.36 kB / 458.4 MB, free: 2.789 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001833/0.5511, allocations: 186.5 kB / 458.6 MB, free: 2.621 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.553e-05/0.5511, allocations: 25.7 kB / 458.6 MB, free: 2.59 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.566e-05/0.5512, allocations: 139.6 kB / 458.8 MB, free: 2.469 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001278/0.5514, allocations: 182.1 kB / 458.9 MB, free: 2.312 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.566e-05/0.5514, allocations: 0 / 458.9 MB, free: 2.312 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.5515, allocations: 341 kB / 459.3 MB, free: 1.98 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002308/0.5518, allocations: 153.1 kB / 459.4 MB, free: 1.887 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002709/0.552, allocations: 209.7 kB / 459.6 MB, free: 1.742 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002988/0.5523, allocations: 151.9 kB / 459.8 MB, free: 1.641 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.5524, allocations: 4 kB / 459.8 MB, free: 1.637 MB / 330.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.000823/0.5532, allocations: 0.5147 MB / 460.3 MB, free: 1.262 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.5532, allocations: 4 kB / 460.3 MB, free: 1.258 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.5532, allocations: 0 / 460.3 MB, free: 1.258 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006469/0.5539, allocations: 237.7 kB / 460.5 MB, free: 1.078 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003097/0.5542, allocations: 75.66 kB / 460.6 MB, free: 1.008 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003751/0.558, allocations: 2.601 MB / 463.2 MB, free: 14.83 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003825/0.5584, allocations: 28.03 kB / 463.2 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.369e-05/0.5585, allocations: 19.31 kB / 463.2 MB, free: 14.79 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002699/0.5588, allocations: 120.3 kB / 463.4 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001063/0.5598, allocations: 0.4978 MB / 463.9 MB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.212e-05/0.5599, allocations: 31.62 kB / 463.9 MB, free: 14.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001206/0.56, allocations: 46.77 kB / 463.9 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.5601, allocations: 4 kB / 463.9 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.5601, allocations: 4 kB / 463.9 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.5601, allocations: 7.922 kB / 464 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001935/0.562, allocations: 1.088 MB / 465 MB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.725e-06/0.5621, allocations: 0 / 465 MB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003676/0.5624, allocations: 66.58 kB / 465.1 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007306/0.5632, allocations: 222.9 kB / 465.3 MB, free: 13.13 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.563e-05/0.5632, allocations: 11.42 kB / 465.3 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003523/0.5668, allocations: 2.503 MB / 467.8 MB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.5668, allocations: 3.969 kB / 467.8 MB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001397/0.5682, allocations: 0.8268 MB / 468.7 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000234/0.5685, allocations: 144.1 kB / 468.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.096e-05/0.5685, allocations: 4.125 kB / 468.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003126/0.5689, allocations: 31.97 kB / 468.8 MB, free: 10.21 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001917/0.5691, allocations: 77.34 kB / 468.9 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.373e-05/0.5691, allocations: 15.31 kB / 468.9 MB, free: 10.14 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001865/0.5693, allocations: 147.6 kB / 469.1 MB, free: 10.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5693, allocations: 0 / 469.1 MB, free: 10.02 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007316/0.5701, allocations: 140 kB / 469.2 MB, free: 9.879 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (31): * Single equations (assignments): 30 * 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.001814/0.5719, allocations: 1.497 MB / 470.7 MB, free: 8.582 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.5729, allocations: 0.587 MB / 471.3 MB, free: 8.145 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.5729, allocations: 0 / 471.3 MB, free: 8.145 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006194/0.5736, allocations: 426.1 kB / 471.7 MB, free: 7.809 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003607/0.5739, allocations: 15.48 kB / 471.7 MB, free: 7.797 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001672/0.5756, allocations: 0.6597 MB / 472.4 MB, free: 7.18 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005558/0.5762, allocations: 0.8046 MB / 473.2 MB, free: 6.352 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002577/0.5765, allocations: 63.25 kB / 473.3 MB, free: 6.293 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002073/0.5767, allocations: 99 kB / 473.4 MB, free: 6.254 MB / 346.7 MB Notification: Performance of SimCode: time 9.72e-07/0.5767, allocations: 0 / 473.4 MB, free: 6.254 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03041/0.6071, allocations: 8.92 MB / 482.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001846/0.6074, allocations: 140.1 kB / 482.4 MB, free: 13.15 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.11/2.717, allocations: 0 / 482.4 MB, free: 13.15 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat