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: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00132/0.00132, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.812/1.812, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0007969/0.0007969, allocations: 74.73 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.11e-05/3.114e-05, allocations: 4 kB / 322.4 MB, free: 17.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1077, allocations: 47.58 MB / 370 MB, free: 1.699 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3549/0.4626, allocations: 80.79 MB / 450.8 MB, free: 12.52 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000191/0.4629, allocations: 74.64 kB / 450.9 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02963/0.4925, allocations: 10.18 MB / 461.1 MB, free: 3.805 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.4926, allocations: 0 / 461.1 MB, free: 3.805 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.048e-05/0.4926, allocations: 8 kB / 461.1 MB, free: 3.797 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.001016/0.4936, allocations: 0.5808 MB / 461.7 MB, free: 3.172 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.4937, allocations: 8.031 kB / 461.7 MB, free: 3.164 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003017/0.494, allocations: 55.52 kB / 461.7 MB, free: 3.109 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004468/0.4944, allocations: 298.3 kB / 462 MB, free: 2.777 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001202/0.4946, allocations: 88.17 kB / 462.1 MB, free: 2.68 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.907e-05/0.4946, allocations: 39.92 kB / 462.1 MB, free: 2.641 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006644/0.4953, allocations: 382.8 kB / 462.5 MB, free: 2.25 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.4953, allocations: 0 / 462.5 MB, free: 2.25 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.47e-05/0.4954, allocations: 16 kB / 462.5 MB, free: 2.234 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.4954, allocations: 11.98 kB / 462.5 MB, free: 2.223 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006857/0.4961, allocations: 414.9 kB / 462.9 MB, free: 1.82 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001465/0.4976, allocations: 0.9001 MB / 463.8 MB, free: 0.8555 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006378/0.4982, allocations: 352.7 kB / 464.2 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003318/0.4986, allocations: 202.1 kB / 464.4 MB, free: 312 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.778e-05/0.4986, allocations: 4.438 kB / 464.4 MB, free: 308 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/0.4987, allocations: 39 kB / 464.4 MB, free: 260 kB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 1.743e-06/0.4987, allocations: 0 / 464.4 MB, free: 260 kB / 330.7 MB Notification: Performance of matching and sorting (n=55): time 0.002802/0.5015, allocations: 1.547 MB / 466 MB, free: 14.61 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.123e-05/0.5015, allocations: 85.67 kB / 466.1 MB, free: 14.51 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002358/0.5018, allocations: 214.1 kB / 466.3 MB, free: 14.3 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.155e-05/0.5018, allocations: 33.7 kB / 466.3 MB, free: 14.26 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.479e-05/0.5019, allocations: 137.1 kB / 466.4 MB, free: 14.12 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001496/0.5021, allocations: 177.3 kB / 466.6 MB, free: 13.95 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.945e-05/0.5021, allocations: 16 kB / 466.6 MB, free: 13.93 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.5023, allocations: 338.8 kB / 467 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003096/0.5026, allocations: 169.1 kB / 467.1 MB, free: 13.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003311/0.503, allocations: 212.7 kB / 467.3 MB, free: 13.21 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002915/0.5033, allocations: 159.2 kB / 467.5 MB, free: 13.05 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.5033, allocations: 0 / 467.5 MB, free: 13.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.000931/0.5042, allocations: 0.5549 MB / 468 MB, free: 12.49 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.543e-05/0.5042, allocations: 15.98 kB / 468 MB, free: 12.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.5043, allocations: 0 / 468 MB, free: 12.47 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007242/0.505, allocations: 235.8 kB / 468.3 MB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003276/0.5053, allocations: 71.89 kB / 468.3 MB, free: 12.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003626/0.509, allocations: 2.679 MB / 471 MB, free: 9.355 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003447/0.5093, allocations: 40.03 kB / 471.1 MB, free: 9.316 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.437e-05/0.5094, allocations: 16 kB / 471.1 MB, free: 9.301 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.0001385/0.5095, allocations: 136.9 kB / 471.2 MB, free: 9.16 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.209e-05/0.5096, allocations: 27.72 kB / 471.2 MB, free: 9.133 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001122/0.5097, allocations: 47.09 kB / 471.3 MB, free: 9.086 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.5097, allocations: 4 kB / 471.3 MB, free: 9.082 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.5098, allocations: 4 kB / 471.3 MB, free: 9.078 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.5098, allocations: 3.984 kB / 471.3 MB, free: 9.074 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001835/0.5116, allocations: 1.194 MB / 472.5 MB, free: 7.816 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.5116, allocations: 3.984 kB / 472.5 MB, free: 7.812 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003414/0.512, allocations: 71.89 kB / 472.6 MB, free: 7.742 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006328/0.5126, allocations: 222 kB / 472.8 MB, free: 7.523 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.021e-05/0.5127, allocations: 19.94 kB / 472.8 MB, free: 7.504 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003437/0.5161, allocations: 2.59 MB / 475.4 MB, free: 4.781 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.5161, allocations: 0 / 475.4 MB, free: 4.781 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001345/0.5175, allocations: 0.8731 MB / 476.3 MB, free: 3.879 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001926/0.5177, allocations: 148.8 kB / 476.4 MB, free: 3.715 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.595e-05/0.5178, allocations: 12 kB / 476.4 MB, free: 3.703 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003263/0.5181, allocations: 36.09 kB / 476.5 MB, free: 3.668 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001673/0.5183, allocations: 76.48 kB / 476.5 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.363e-05/0.5183, allocations: 19.98 kB / 476.6 MB, free: 3.574 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001649/0.5185, allocations: 171.2 kB / 476.7 MB, free: 3.406 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5185, allocations: 0 / 476.7 MB, free: 3.406 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000623/0.5191, allocations: 156 kB / 476.9 MB, free: 3.254 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.0002566/0.5194, allocations: 155.1 kB / 477 MB, free: 3.094 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001095/0.5205, allocations: 0.6372 MB / 477.7 MB, free: 2.449 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.5205, allocations: 0 / 477.7 MB, free: 2.449 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006674/0.5212, allocations: 439.5 kB / 478.1 MB, free: 2.004 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003/0.5215, allocations: 32.59 kB / 478.1 MB, free: 1.973 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.5227, allocations: 0.6069 MB / 478.7 MB, free: 1.344 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003976/0.5231, allocations: 0.801 MB / 479.5 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000233/0.5233, allocations: 66.94 kB / 479.6 MB, free: 456 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000127/0.5234, allocations: 35.42 kB / 479.6 MB, free: 420 kB / 346.7 MB Notification: Performance of SimCode: time 5.31e-07/0.5235, allocations: 0 / 479.6 MB, free: 420 kB / 346.7 MB Notification: Performance of Templates: time 0.01207/0.5355, allocations: 6.822 MB / 486.5 MB, free: 9.59 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (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 & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches