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: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009953/0.0009954, 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.383/1.383, allocations: 221.5 MB / 230.3 MB, free: 7.512 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.001071/0.001071, allocations: 95.45 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.245e-05/1.246e-05, allocations: 4 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1059, allocations: 50.43 MB / 387.5 MB, free: 7.566 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3812/0.4871, allocations: 81.14 MB / 468.6 MB, free: 13.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002943/0.4875, allocations: 75.95 kB / 468.7 MB, free: 13.64 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03097/0.5185, allocations: 10.28 MB / 479 MB, free: 3.34 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.5185, allocations: 0 / 479 MB, free: 3.34 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.574e-05/0.5186, allocations: 4 kB / 479 MB, free: 3.336 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.0009997/0.5196, allocations: 0.5925 MB / 479.6 MB, free: 2.699 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.5196, allocations: 8.031 kB / 479.6 MB, free: 2.691 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002885/0.5199, allocations: 51.52 kB / 479.6 MB, free: 2.641 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003973/0.5203, allocations: 290.6 kB / 479.9 MB, free: 2.316 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/0.5204, allocations: 80.17 kB / 480 MB, free: 2.227 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.47e-05/0.5205, allocations: 16 kB / 480 MB, free: 2.211 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006206/0.5211, allocations: 405.3 kB / 480.4 MB, free: 1.816 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005272/0.5217, allocations: 341.2 kB / 480.7 MB, free: 1.469 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.832e-05/0.5217, allocations: 8 kB / 480.7 MB, free: 1.461 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.444e-05/0.5217, allocations: 0.75 kB / 480.7 MB, free: 1.461 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.5217, allocations: 8 kB / 480.7 MB, free: 1.453 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001236/0.523, allocations: 0.8289 MB / 481.6 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005079/0.5235, allocations: 327.7 kB / 481.9 MB, free: 248 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000255/0.5238, allocations: 186.2 kB / 482.1 MB, free: 60 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.754e-05/0.5238, allocations: 4.438 kB / 482.1 MB, free: 56 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.632e-05/0.5239, allocations: 47.11 kB / 482.1 MB, free: 16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 1.903e-06/0.5239, allocations: 7.938 kB / 482.1 MB, free: 15.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=55): time 0.002607/0.5265, allocations: 1.425 MB / 483.5 MB, free: 14.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.433e-05/0.5266, allocations: 85.61 kB / 483.6 MB, free: 14.38 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001927/0.5268, allocations: 190.5 kB / 483.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.82e-05/0.5268, allocations: 25.7 kB / 483.8 MB, free: 14.15 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.259e-05/0.5269, allocations: 144.9 kB / 484 MB, free: 14 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.5271, allocations: 173.4 kB / 484.2 MB, free: 13.83 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.631e-05/0.5271, allocations: 0 / 484.2 MB, free: 13.83 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.5272, allocations: 342.8 kB / 484.5 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002388/0.5275, allocations: 157.1 kB / 484.6 MB, free: 13.33 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002605/0.5278, allocations: 199.6 kB / 484.8 MB, free: 13.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003052/0.5281, allocations: 154.1 kB / 485 MB, free: 12.97 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.5281, allocations: 0 / 485 MB, free: 12.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0008535/0.5289, allocations: 0.5197 MB / 485.5 MB, free: 12.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.529, allocations: 5.25 kB / 485.5 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.529, allocations: 4 kB / 485.5 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006214/0.5296, allocations: 230.8 kB / 485.7 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003101/0.5299, allocations: 79.88 kB / 485.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003182/0.5331, allocations: 2.588 MB / 488.4 MB, free: 9.434 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002885/0.5334, allocations: 32 kB / 488.4 MB, free: 9.402 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.98e-05/0.5335, allocations: 24.05 kB / 488.5 MB, free: 9.379 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.0001851/0.5337, allocations: 108.9 kB / 488.6 MB, free: 9.266 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.276e-05/0.5338, allocations: 35.62 kB / 488.6 MB, free: 9.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.589e-05/0.5339, allocations: 39.39 kB / 488.6 MB, free: 9.191 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.5339, allocations: 8 kB / 488.7 MB, free: 9.184 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.5339, allocations: 3.953 kB / 488.7 MB, free: 9.18 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.311e-06/0.5339, allocations: 3.984 kB / 488.7 MB, free: 9.176 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001726/0.5356, allocations: 1.109 MB / 489.8 MB, free: 8.016 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.5356, allocations: 0 / 489.8 MB, free: 8.016 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003301/0.536, allocations: 75.97 kB / 489.8 MB, free: 7.941 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005916/0.5366, allocations: 220.7 kB / 490.1 MB, free: 7.723 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.26e-05/0.5366, allocations: 11.92 kB / 490.1 MB, free: 7.711 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003054/0.5397, allocations: 2.486 MB / 492.6 MB, free: 5.109 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.5397, allocations: 4.031 kB / 492.6 MB, free: 5.105 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001211/0.5409, allocations: 0.8223 MB / 493.4 MB, free: 4.258 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001627/0.5411, allocations: 144.8 kB / 493.5 MB, free: 4.098 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.603e-05/0.5412, allocations: 7.984 kB / 493.5 MB, free: 4.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002918/0.5415, allocations: 32.03 kB / 493.6 MB, free: 4.059 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001631/0.5416, allocations: 80.38 kB / 493.6 MB, free: 3.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.919e-05/0.5417, allocations: 19.98 kB / 493.7 MB, free: 3.961 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001475/0.5418, allocations: 148.2 kB / 493.8 MB, free: 3.816 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5419, allocations: 3.938 kB / 493.8 MB, free: 3.812 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006672/0.5425, allocations: 139.9 kB / 493.9 MB, free: 3.676 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.0002745/0.5428, allocations: 143.9 kB / 494.1 MB, free: 3.527 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001/0.5438, allocations: 0.5918 MB / 494.7 MB, free: 2.922 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.5438, allocations: 0 / 494.7 MB, free: 2.922 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006209/0.5445, allocations: 417.6 kB / 495.1 MB, free: 2.504 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003338/0.5448, allocations: 21.42 kB / 495.1 MB, free: 2.484 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.546, allocations: 0.5799 MB / 495.7 MB, free: 1.875 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004055/0.5464, allocations: 0.8086 MB / 496.5 MB, free: 1.039 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002161/0.5467, allocations: 55.27 kB / 496.5 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.5468, allocations: 39.41 kB / 496.6 MB, free: 0.9492 MB / 362.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5468, allocations: 0 / 496.6 MB, free: 0.9492 MB / 362.7 MB Notification: Performance of Templates: time 0.01176/0.5586, allocations: 6.513 MB / 0.4913 GB, free: 10.46 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (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 & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches