Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009419/0.000942, allocations: 176.4 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 221.5 MB / 230.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008575/0.0008574, allocations: 94.83 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.524e-05/1.529e-05, allocations: 4 kB / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1101, allocations: 50.42 MB / 387.6 MB, free: 7.48 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3899/0.5001, allocations: 81.15 MB / 468.7 MB, free: 13.67 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002505/0.5004, allocations: 63.97 kB / 468.8 MB, free: 13.61 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03076/0.5312, allocations: 10.29 MB / 479 MB, free: 3.305 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.5313, allocations: 4 kB / 479.1 MB, free: 3.301 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.997e-05/0.5313, allocations: 8 kB / 479.1 MB, free: 3.293 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001131/0.5324, allocations: 0.5966 MB / 479.7 MB, free: 2.652 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.779e-05/0.5325, allocations: 8.031 kB / 479.7 MB, free: 2.645 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003483/0.5329, allocations: 55.5 kB / 479.7 MB, free: 2.59 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004461/0.5333, allocations: 286.4 kB / 480 MB, free: 2.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/0.5335, allocations: 80.17 kB / 480.1 MB, free: 2.18 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.375e-05/0.5335, allocations: 20 kB / 480.1 MB, free: 2.16 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000684/0.5342, allocations: 401.3 kB / 480.5 MB, free: 1.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006172/0.5349, allocations: 345.3 kB / 480.8 MB, free: 1.418 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.394e-05/0.5349, allocations: 0 / 480.8 MB, free: 1.418 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.892e-05/0.535, allocations: 0 / 480.8 MB, free: 1.418 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.535, allocations: 8 kB / 480.8 MB, free: 1.41 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00168/0.5367, allocations: 0.8289 MB / 481.7 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006562/0.5373, allocations: 335.5 kB / 482 MB, free: 196 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003128/0.5377, allocations: 190.2 kB / 482.2 MB, free: 4 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.368e-05/0.5377, allocations: 4.438 kB / 482.2 MB, free: 0 / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.485e-05/0.5378, allocations: 35.12 kB / 482.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 1.573e-06/0.5378, allocations: 7.938 kB / 482.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=55): time 0.003244/0.541, allocations: 1.425 MB / 483.6 MB, free: 14.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.148e-05/0.5411, allocations: 85.67 kB / 483.7 MB, free: 14.33 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002585/0.5414, allocations: 178.5 kB / 483.9 MB, free: 14.15 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.923e-05/0.5415, allocations: 33.7 kB / 483.9 MB, free: 14.11 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.5416, allocations: 136.9 kB / 484.1 MB, free: 13.97 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000182/0.5418, allocations: 181.4 kB / 484.2 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.611e-05/0.5418, allocations: 0 / 484.2 MB, free: 13.79 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002209/0.542, allocations: 342.8 kB / 484.6 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002734/0.5423, allocations: 153.1 kB / 484.7 MB, free: 13.29 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003174/0.5427, allocations: 199.6 kB / 484.9 MB, free: 13.09 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003746/0.543, allocations: 166 kB / 485.1 MB, free: 12.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.543, allocations: 0 / 485.1 MB, free: 12.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0009327/0.544, allocations: 0.5081 MB / 485.6 MB, free: 12.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.819e-05/0.544, allocations: 9.234 kB / 485.6 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.544, allocations: 0 / 485.6 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007183/0.5448, allocations: 238.9 kB / 485.8 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003318/0.5451, allocations: 71.89 kB / 485.9 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003792/0.5489, allocations: 2.586 MB / 488.5 MB, free: 9.398 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003283/0.5493, allocations: 32.06 kB / 488.5 MB, free: 9.367 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.349e-05/0.5494, allocations: 23.92 kB / 488.6 MB, free: 9.344 MB / 362.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.0002579/0.5496, allocations: 117 kB / 488.7 MB, free: 9.223 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001097/0.5507, allocations: 0.515 MB / 489.2 MB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.387e-05/0.5508, allocations: 31.58 kB / 489.2 MB, free: 8.668 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001578/0.551, allocations: 39.39 kB / 489.2 MB, free: 8.629 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.551, allocations: 8 kB / 489.3 MB, free: 8.621 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-06/0.551, allocations: 0 / 489.3 MB, free: 8.621 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.717e-06/0.551, allocations: 3.984 kB / 489.3 MB, free: 8.617 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00196/0.553, allocations: 1.101 MB / 490.4 MB, free: 7.465 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.553, allocations: 0 / 490.4 MB, free: 7.465 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003586/0.5534, allocations: 71.94 kB / 490.4 MB, free: 7.395 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006282/0.554, allocations: 220.7 kB / 490.6 MB, free: 7.176 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.317e-05/0.5541, allocations: 11.98 kB / 490.7 MB, free: 7.164 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003491/0.5576, allocations: 2.505 MB / 493.2 MB, free: 4.543 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.5576, allocations: 0 / 493.2 MB, free: 4.543 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00121/0.5588, allocations: 0.8185 MB / 494 MB, free: 3.695 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001924/0.559, allocations: 148.8 kB / 494.1 MB, free: 3.531 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.965e-05/0.5591, allocations: 7.953 kB / 494.1 MB, free: 3.523 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000298/0.5594, allocations: 27.97 kB / 494.2 MB, free: 3.496 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/0.5595, allocations: 76.42 kB / 494.2 MB, free: 3.422 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.09e-05/0.5596, allocations: 19.98 kB / 494.3 MB, free: 3.402 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001402/0.5597, allocations: 156.3 kB / 494.4 MB, free: 3.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.5598, allocations: 0 / 494.4 MB, free: 3.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000658/0.5604, allocations: 139.8 kB / 494.5 MB, free: 3.117 MB / 362.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.001761/0.5622, allocations: 1.491 MB / 496 MB, free: 1.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001078/0.5633, allocations: 0.5918 MB / 496.6 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.5633, allocations: 4.062 kB / 496.6 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005758/0.5639, allocations: 417.6 kB / 497 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003121/0.5642, allocations: 16.69 kB / 497.1 MB, free: 0.5469 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.5656, allocations: 0.6595 MB / 497.7 MB, free: 15.85 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003546/0.566, allocations: 0.8008 MB / 498.5 MB, free: 15.02 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002294/0.5662, allocations: 63.2 kB / 498.6 MB, free: 14.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001853/0.5664, allocations: 99.38 kB / 498.7 MB, free: 14.86 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.5664, allocations: 0 / 498.7 MB, free: 14.86 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03173/0.5981, allocations: 8.919 MB / 0.4957 GB, free: 5.988 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002073/0.5984, allocations: 144.9 kB / 0.4958 GB, free: 5.797 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.282/2.88, allocations: 4 kB / 0.4958 GB, free: 5.793 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat