Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_cpp_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.001588/0.001588, allocations: 188.3 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.003/2.003, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001146/0.001145, allocations: 90.91 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003921/0.0003922, allocations: 12 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3717/0.3722, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1301/0.5023, allocations: 80.18 MB / 454.8 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004006/0.5028, allocations: 75.95 kB / 454.9 MB, free: 492 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04503/0.5478, allocations: 9.41 MB / 464.3 MB, free: 7.051 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.5479, allocations: 0 / 464.3 MB, free: 7.051 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.348e-05/0.5479, allocations: 8 kB / 464.3 MB, free: 7.043 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001522/0.5494, allocations: 0.5886 MB / 464.9 MB, free: 6.406 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.469e-05/0.5495, allocations: 12.03 kB / 464.9 MB, free: 6.395 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001119/0.5496, allocations: 66.47 kB / 465 MB, free: 6.32 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004343/0.5501, allocations: 51.61 kB / 465 MB, free: 6.27 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005816/0.5507, allocations: 266.6 kB / 465.3 MB, free: 5.969 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001703/0.5509, allocations: 91.91 kB / 465.4 MB, free: 5.867 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.267e-05/0.551, allocations: 32 kB / 465.4 MB, free: 5.836 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.5521, allocations: 369.2 kB / 465.8 MB, free: 5.457 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/0.5522, allocations: 0 / 465.8 MB, free: 5.457 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.966e-05/0.5522, allocations: 15.98 kB / 465.8 MB, free: 5.441 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.898e-05/0.5523, allocations: 8 kB / 465.8 MB, free: 5.434 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001467/0.5537, allocations: 421.8 kB / 466.2 MB, free: 5.023 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003044/0.5568, allocations: 1.172 MB / 467.4 MB, free: 3.777 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/0.558, allocations: 334.1 kB / 467.7 MB, free: 3.441 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.865e-05/0.558, allocations: 4 kB / 467.7 MB, free: 3.438 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.167e-05/0.5581, allocations: 38.56 kB / 467.7 MB, free: 3.391 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 3.066e-06/0.5581, allocations: 0 / 467.7 MB, free: 3.391 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.00836/0.5665, allocations: 1.879 MB / 469.6 MB, free: 1.398 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.561e-05/0.5666, allocations: 88.86 kB / 469.7 MB, free: 1.293 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004114/0.567, allocations: 199.8 kB / 469.9 MB, free: 1.094 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.717e-05/0.5671, allocations: 33.7 kB / 469.9 MB, free: 1.055 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000136/0.5672, allocations: 199 kB / 470.1 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001844/0.5674, allocations: 154 kB / 470.3 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.604e-05/0.5675, allocations: 4 kB / 470.3 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001844/0.5677, allocations: 326.8 kB / 470.6 MB, free: 380 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006534/0.5683, allocations: 164.8 kB / 470.8 MB, free: 216 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007539/0.5691, allocations: 225.9 kB / 471 MB, free: 15.97 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006413/0.5698, allocations: 160.7 kB / 471.1 MB, free: 15.82 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.5698, allocations: 0 / 471.1 MB, free: 15.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001971/0.5718, allocations: 0.5434 MB / 471.7 MB, free: 15.26 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.737e-05/0.5718, allocations: 7.953 kB / 471.7 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.5718, allocations: 4.125 kB / 471.7 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001223/0.5731, allocations: 238.4 kB / 471.9 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004526/0.5736, allocations: 55.91 kB / 472 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006283/0.5799, allocations: 2.693 MB / 474.7 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005301/0.5804, allocations: 44.02 kB / 474.7 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.555e-05/0.5805, allocations: 23.94 kB / 474.7 MB, free: 12.07 MB / 362.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 () * Number of clocked 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.0002833/0.5808, allocations: 159.9 kB / 474.9 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.594e-05/0.5809, allocations: 23.72 kB / 474.9 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001428/0.5811, allocations: 46.98 kB / 475 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.5811, allocations: 4 kB / 475 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.5811, allocations: 4 kB / 475 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.5811, allocations: 0 / 475 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003064/0.5842, allocations: 1.073 MB / 476 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.5843, allocations: 4 kB / 476 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004288/0.5847, allocations: 47.95 kB / 476.1 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001109/0.5858, allocations: 228.9 kB / 476.3 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.826e-05/0.5859, allocations: 11.98 kB / 476.3 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006133/0.592, allocations: 2.651 MB / 479 MB, free: 7.629 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.5921, allocations: 0 / 479 MB, free: 7.629 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002634/0.5947, allocations: 0.8057 MB / 479.8 MB, free: 6.805 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002719/0.595, allocations: 140.8 kB / 479.9 MB, free: 6.648 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.685e-05/0.5951, allocations: 12.06 kB / 479.9 MB, free: 6.637 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004746/0.5956, allocations: 31.97 kB / 480 MB, free: 6.605 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002648/0.5959, allocations: 63.88 kB / 480 MB, free: 6.543 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.935e-05/0.596, allocations: 15.98 kB / 480 MB, free: 6.527 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003191/0.5963, allocations: 160.3 kB / 480.2 MB, free: 6.371 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5963, allocations: 0 / 480.2 MB, free: 6.371 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008958/0.5972, allocations: 143.9 kB / 480.3 MB, free: 6.23 MB / 362.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) * Number of clocked states: 0 () * 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.003294/0.6006, allocations: 1.389 MB / 481.7 MB, free: 4.809 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002073/0.6027, allocations: 0.6141 MB / 482.3 MB, free: 4.176 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.6027, allocations: 0 / 482.3 MB, free: 4.176 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001223/0.6039, allocations: 433.2 kB / 482.8 MB, free: 3.738 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004462/0.6044, allocations: 30.34 kB / 482.8 MB, free: 3.711 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006306/0.6107, allocations: 2.688 MB / 485.5 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004836/0.6113, allocations: 0.7842 MB / 486.3 MB, free: 148 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003369/0.6116, allocations: 87.38 kB / 486.4 MB, free: 64 kB / 362.7 MB Notification: Performance of SimCode: time 1.142e-06/0.6116, allocations: 0 / 486.4 MB, free: 64 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.876/3.487, allocations: 6.095 MB / 492.4 MB, free: 9.973 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat