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.002355/0.002355, allocations: 178.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.388/2.388, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001128/0.001128, allocations: 95.83 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.488e-05/2.487e-05, allocations: 4 kB / 314.9 MB, free: 9.047 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3302/0.3302, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1326/0.4628, allocations: 79.43 MB / 441.9 MB, free: 6.777 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/0.4631, allocations: 76.88 kB / 441.9 MB, free: 6.703 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04474/0.5079, allocations: 9.339 MB / 451.3 MB, free: 13.4 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.508, allocations: 4 kB / 451.3 MB, free: 13.39 MB / 347.1 MB Notification: Performance of Transformations before backend: time 2.254e-05/0.508, allocations: 4 kB / 451.3 MB, free: 13.39 MB / 347.1 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.00143/0.5094, allocations: 0.5636 MB / 451.8 MB, free: 12.79 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.5095, allocations: 8.031 kB / 451.9 MB, free: 12.78 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004752/0.51, allocations: 51.59 kB / 451.9 MB, free: 12.73 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005659/0.5106, allocations: 270.6 kB / 452.2 MB, free: 12.42 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001616/0.5107, allocations: 83.88 kB / 452.2 MB, free: 12.33 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.578e-05/0.5108, allocations: 24.7 kB / 452.3 MB, free: 12.3 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000997/0.5119, allocations: 360.9 kB / 452.6 MB, free: 11.95 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008167/0.5127, allocations: 308.2 kB / 452.9 MB, free: 11.63 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.507e-05/0.5127, allocations: 7.984 kB / 452.9 MB, free: 11.62 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.765e-05/0.5128, allocations: 0 / 452.9 MB, free: 11.62 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.157e-05/0.5128, allocations: 11.98 kB / 452.9 MB, free: 11.61 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002841/0.5157, allocations: 1.103 MB / 454 MB, free: 10.45 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007473/0.5165, allocations: 301.3 kB / 454.3 MB, free: 10.14 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003797/0.5169, allocations: 144.8 kB / 454.5 MB, free: 10 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.144e-05/0.5169, allocations: 14.06 kB / 454.5 MB, free: 9.988 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.403e-05/0.517, allocations: 30.56 kB / 454.5 MB, free: 9.949 MB / 347.1 MB Notification: Performance of pre-optimization done (n=43): time 2.525e-06/0.517, allocations: 0 / 454.5 MB, free: 9.949 MB / 347.1 MB Notification: Performance of matching and sorting (n=45): time 0.003755/0.5208, allocations: 1.237 MB / 455.8 MB, free: 8.617 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.009e-05/0.5209, allocations: 92.75 kB / 455.9 MB, free: 8.508 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000295/0.5212, allocations: 188 kB / 456 MB, free: 8.32 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 6.691e-05/0.5212, allocations: 25.7 kB / 456.1 MB, free: 8.289 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001618/0.5214, allocations: 203.4 kB / 456.3 MB, free: 8.09 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001825/0.5216, allocations: 145.8 kB / 456.4 MB, free: 7.945 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.391e-05/0.5217, allocations: 0 / 456.4 MB, free: 7.945 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.5218, allocations: 326.8 kB / 456.7 MB, free: 7.617 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003862/0.5222, allocations: 140.8 kB / 456.9 MB, free: 7.48 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004334/0.5227, allocations: 189.1 kB / 457 MB, free: 7.277 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005008/0.5232, allocations: 140.8 kB / 457.2 MB, free: 7.141 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.5232, allocations: 3.938 kB / 457.2 MB, free: 7.137 MB / 347.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001451/0.5247, allocations: 476.6 kB / 457.7 MB, free: 6.66 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/0.5247, allocations: 4 kB / 457.7 MB, free: 6.656 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.5247, allocations: 8.125 kB / 457.7 MB, free: 6.648 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001157/0.5259, allocations: 224.7 kB / 457.9 MB, free: 6.426 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004898/0.5264, allocations: 63.84 kB / 457.9 MB, free: 6.363 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005674/0.5321, allocations: 2.548 MB / 460.5 MB, free: 3.695 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005106/0.5327, allocations: 28.06 kB / 460.5 MB, free: 3.668 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.812e-05/0.5328, allocations: 22.42 kB / 460.5 MB, free: 3.648 MB / 347.1 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: 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.000251/0.533, allocations: 116.9 kB / 460.7 MB, free: 3.527 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001461/0.5345, allocations: 437.9 kB / 461.1 MB, free: 3.09 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.5346, allocations: 31.67 kB / 461.1 MB, free: 3.059 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001267/0.5348, allocations: 35.39 kB / 461.2 MB, free: 3.023 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.028e-06/0.5348, allocations: 4 kB / 461.2 MB, free: 3.02 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-06/0.5348, allocations: 0 / 461.2 MB, free: 3.02 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.5348, allocations: 0 / 461.2 MB, free: 3.02 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002617/0.5374, allocations: 0.9488 MB / 462.1 MB, free: 2.023 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.789e-06/0.5375, allocations: 0 / 462.1 MB, free: 2.023 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004751/0.538, allocations: 55.84 kB / 462.2 MB, free: 1.969 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001063/0.5391, allocations: 220.9 kB / 462.4 MB, free: 1.75 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.689e-05/0.5392, allocations: 7.984 kB / 462.4 MB, free: 1.742 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0055/0.5447, allocations: 2.499 MB / 464.9 MB, free: 15.13 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.5447, allocations: 0 / 464.9 MB, free: 15.13 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00195/0.5467, allocations: 0.7122 MB / 465.6 MB, free: 14.4 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003045/0.547, allocations: 140.8 kB / 465.7 MB, free: 14.25 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.023e-05/0.5471, allocations: 0 / 465.7 MB, free: 14.25 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004957/0.5476, allocations: 23.97 kB / 465.8 MB, free: 14.22 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002575/0.5479, allocations: 67.86 kB / 465.8 MB, free: 14.16 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.004e-05/0.548, allocations: 20.06 kB / 465.8 MB, free: 14.14 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0002113/0.5482, allocations: 144.4 kB / 466 MB, free: 14 MB / 363.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5482, allocations: 0 / 466 MB, free: 14 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0009336/0.5492, allocations: 124 kB / 466.1 MB, free: 13.88 MB / 363.1 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.002604/0.5518, allocations: 1.295 MB / 467.4 MB, free: 12.55 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.001529/0.5534, allocations: 0.5342 MB / 467.9 MB, free: 12 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.5534, allocations: 0 / 467.9 MB, free: 12 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009084/0.5543, allocations: 376.5 kB / 468.3 MB, free: 11.63 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004436/0.5548, allocations: 15.98 kB / 468.3 MB, free: 11.61 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001997/0.5568, allocations: 0.6115 MB / 468.9 MB, free: 10.96 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005145/0.5573, allocations: 0.7917 MB / 469.7 MB, free: 10.14 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003166/0.5577, allocations: 83.39 kB / 469.8 MB, free: 10.05 MB / 363.1 MB Notification: Performance of SimCode: time 3.847e-06/0.5577, allocations: 0 / 469.8 MB, free: 10.05 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.857/3.414, allocations: 6.139 MB / 475.9 MB, free: 3.965 MB / 363.1 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