Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_cpp_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.002399/0.002399, allocations: 182.1 kB / 13.66 MB, free: 1.664 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.122/2.122, allocations: 205.2 MB / 219.4 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.001106/0.001106, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.411e-05/3.427e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1046, allocations: 47.57 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4589/0.5636, allocations: 80.8 MB / 450 MB, free: 12.43 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003509/0.564, allocations: 72.44 kB / 450.1 MB, free: 12.4 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06757/0.6316, allocations: 10.17 MB / 460.2 MB, free: 3.789 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.6317, allocations: 0 / 460.2 MB, free: 3.789 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.797e-05/0.6318, allocations: 8 kB / 460.2 MB, free: 3.781 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.002098/0.6339, allocations: 0.5969 MB / 460.8 MB, free: 3.16 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.046e-05/0.634, allocations: 15.97 kB / 460.8 MB, free: 3.145 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001951/0.6342, allocations: 68.78 kB / 460.9 MB, free: 3.09 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006756/0.6349, allocations: 47.61 kB / 461 MB, free: 3.043 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008177/0.6357, allocations: 302.5 kB / 461.3 MB, free: 2.734 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002302/0.636, allocations: 85.48 kB / 461.3 MB, free: 2.648 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001419/0.6361, allocations: 30.31 kB / 461.4 MB, free: 2.629 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001425/0.6376, allocations: 390.1 kB / 461.7 MB, free: 2.344 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.262e-05/0.6376, allocations: 3.984 kB / 461.7 MB, free: 2.34 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.595e-05/0.6377, allocations: 10.81 kB / 461.8 MB, free: 2.336 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.333e-05/0.6378, allocations: 8 kB / 461.8 MB, free: 2.328 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001599/0.6394, allocations: 418 kB / 462.2 MB, free: 2 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003249/0.6427, allocations: 0.8961 MB / 463.1 MB, free: 1.039 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001565/0.6443, allocations: 344.6 kB / 463.4 MB, free: 0.6953 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008786/0.6452, allocations: 206.2 kB / 463.6 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.795e-05/0.6454, allocations: 8.422 kB / 463.6 MB, free: 496 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.231e-05/0.6454, allocations: 39.19 kB / 463.7 MB, free: 448 kB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 8.466e-06/0.6455, allocations: 0 / 463.7 MB, free: 448 kB / 330.7 MB Notification: Performance of matching and sorting (n=55): time 0.006766/0.6522, allocations: 1.547 MB / 465.2 MB, free: 14.8 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.6524, allocations: 85.67 kB / 465.3 MB, free: 14.7 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005675/0.653, allocations: 206.1 kB / 465.5 MB, free: 14.49 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001792/0.6532, allocations: 37.7 kB / 465.5 MB, free: 14.45 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001965/0.6534, allocations: 203.5 kB / 465.7 MB, free: 14.25 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00033/0.6538, allocations: 177.4 kB / 465.9 MB, free: 14.07 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.766e-05/0.6538, allocations: 12 kB / 465.9 MB, free: 14.06 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002146/0.6541, allocations: 334.8 kB / 466.2 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007453/0.6548, allocations: 161.1 kB / 466.4 MB, free: 13.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008253/0.6557, allocations: 208.7 kB / 466.6 MB, free: 13.36 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007268/0.6564, allocations: 167.2 kB / 466.8 MB, free: 13.19 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.6565, allocations: 0 / 466.8 MB, free: 13.19 MB / 346.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002579/0.6591, allocations: 0.5433 MB / 467.3 MB, free: 12.64 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.153e-05/0.6592, allocations: 15.94 kB / 467.3 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.6592, allocations: 4.031 kB / 467.3 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001772/0.661, allocations: 239.8 kB / 467.6 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009571/0.662, allocations: 71.89 kB / 467.6 MB, free: 12.31 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009386/0.6714, allocations: 2.679 MB / 470.3 MB, free: 9.496 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009193/0.6724, allocations: 40.03 kB / 470.3 MB, free: 9.457 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001293/0.6726, allocations: 19.98 kB / 470.4 MB, free: 9.438 MB / 346.7 MB 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.0002949/0.6729, allocations: 128.9 kB / 470.5 MB, free: 9.305 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002784/0.6732, allocations: 31.62 kB / 470.5 MB, free: 9.273 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002246/0.6734, allocations: 47.09 kB / 470.6 MB, free: 9.227 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.916e-05/0.6735, allocations: 12 kB / 470.6 MB, free: 9.215 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.6735, allocations: 7.922 kB / 470.6 MB, free: 9.207 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.6736, allocations: 0 / 470.6 MB, free: 9.207 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004993/0.6786, allocations: 1.19 MB / 471.8 MB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.6786, allocations: 0 / 471.8 MB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009747/0.6796, allocations: 71.89 kB / 471.8 MB, free: 7.883 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001635/0.6813, allocations: 222.1 kB / 472.1 MB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000152/0.6815, allocations: 19.94 kB / 472.1 MB, free: 7.645 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008511/0.69, allocations: 2.582 MB / 474.7 MB, free: 4.93 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.6901, allocations: 4.062 kB / 474.7 MB, free: 4.926 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00353/0.6937, allocations: 0.8693 MB / 475.5 MB, free: 4.027 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000571/0.6943, allocations: 152.7 kB / 475.7 MB, free: 3.859 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001865/0.6945, allocations: 12 kB / 475.7 MB, free: 3.848 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000884/0.6954, allocations: 40.03 kB / 475.7 MB, free: 3.809 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004345/0.6959, allocations: 76.48 kB / 475.8 MB, free: 3.734 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.884e-05/0.696, allocations: 19.98 kB / 475.8 MB, free: 3.715 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004177/0.6964, allocations: 167.2 kB / 476 MB, free: 3.551 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.72e-07/0.6965, allocations: 0 / 476 MB, free: 3.551 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001542/0.698, allocations: 163.9 kB / 476.2 MB, free: 3.391 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.005006/0.7031, allocations: 1.553 MB / 477.7 MB, free: 1.801 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00268/0.7058, allocations: 0.6257 MB / 478.3 MB, free: 1.164 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.7059, allocations: 0 / 478.3 MB, free: 1.164 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001784/0.7077, allocations: 447.4 kB / 478.8 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007906/0.7085, allocations: 29.64 kB / 478.8 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003956/0.7125, allocations: 0.7311 MB / 479.5 MB, free: 15.91 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007835/0.7134, allocations: 0.8049 MB / 480.3 MB, free: 15.08 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006012/0.714, allocations: 107.4 kB / 480.4 MB, free: 14.97 MB / 362.7 MB Notification: Performance of SimCode: time 1.352e-06/0.714, allocations: 0 / 480.4 MB, free: 14.97 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.987/3.701, allocations: 7.03 MB / 487.5 MB, free: 7.938 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat