Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001499/0.001499, allocations: 173.7 kB / 8.473 MB, free: 1.871 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.808/1.808, allocations: 205.2 MB / 214.1 MB, free: 5.234 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00107/0.00107, allocations: 98.25 kB / 262.1 MB, free: 5.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.795e-06/7.815e-06, allocations: 0 / 315 MB, free: 41.51 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1094, allocations: 47.57 MB / 362.5 MB, free: 9.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2758/0.3852, allocations: 79.35 MB / 441.9 MB, free: 10.59 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002419/0.3855, allocations: 68.55 kB / 442 MB, free: 10.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.02378/0.4093, allocations: 8.988 MB / 450.9 MB, free: 8.531 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.599e-05/0.4094, allocations: 3.844 kB / 450.9 MB, free: 8.531 MB / 314.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.0009219/0.4103, allocations: 0.5706 MB / 451.5 MB, free: 8.055 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.4104, allocations: 11.53 kB / 451.5 MB, free: 8.055 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00034/0.4107, allocations: 46.66 kB / 451.6 MB, free: 8.031 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004138/0.4111, allocations: 267.7 kB / 451.8 MB, free: 7.793 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/0.4113, allocations: 82.73 kB / 451.9 MB, free: 7.723 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.922e-05/0.4114, allocations: 22.78 kB / 451.9 MB, free: 7.715 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005943/0.412, allocations: 362.5 kB / 452.3 MB, free: 7.664 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004906/0.4125, allocations: 312.3 kB / 452.6 MB, free: 7.535 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.144e-05/0.4125, allocations: 3.906 kB / 452.6 MB, free: 7.531 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.632e-05/0.4125, allocations: 0 / 452.6 MB, free: 7.531 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.577e-05/0.4126, allocations: 11.55 kB / 452.6 MB, free: 7.527 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001632/0.4142, allocations: 1.109 MB / 453.7 MB, free: 6.852 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003205/0.4145, allocations: 258.2 kB / 454 MB, free: 6.812 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001969/0.4147, allocations: 153 kB / 454.1 MB, free: 6.797 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.609e-05/0.4148, allocations: 7.656 kB / 454.1 MB, free: 6.793 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.756e-05/0.4148, allocations: 37.75 kB / 454.2 MB, free: 6.754 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 1.653e-06/0.4148, allocations: 0 / 454.2 MB, free: 6.754 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.002162/0.417, allocations: 1.224 MB / 455.4 MB, free: 6.125 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.363e-05/0.417, allocations: 88.55 kB / 455.5 MB, free: 6.027 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001637/0.4172, allocations: 185.8 kB / 455.7 MB, free: 5.918 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.156e-05/0.4172, allocations: 25.7 kB / 455.7 MB, free: 5.887 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.444e-05/0.4173, allocations: 126.7 kB / 455.8 MB, free: 5.77 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.234e-05/0.4174, allocations: 143.7 kB / 455.9 MB, free: 5.664 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.196e-05/0.4174, allocations: 0 / 455.9 MB, free: 5.664 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.371e-05/0.4175, allocations: 338.5 kB / 456.3 MB, free: 5.34 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002537/0.4177, allocations: 138.3 kB / 456.4 MB, free: 5.332 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002486/0.418, allocations: 197.3 kB / 456.6 MB, free: 5.27 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002644/0.4183, allocations: 140.4 kB / 456.7 MB, free: 5.242 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.4183, allocations: 4.031 kB / 456.7 MB, free: 5.238 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007571/0.419, allocations: 487.8 kB / 457.2 MB, free: 5.133 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.4191, allocations: 5.625 kB / 457.2 MB, free: 5.133 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.4191, allocations: 3.984 kB / 457.2 MB, free: 5.129 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006404/0.4197, allocations: 233.4 kB / 457.5 MB, free: 5.078 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002475/0.42, allocations: 56.59 kB / 457.5 MB, free: 5.062 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002665/0.4227, allocations: 2.4 MB / 459.9 MB, free: 3.566 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002836/0.423, allocations: 24.91 kB / 459.9 MB, free: 3.559 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.262e-05/0.423, allocations: 20.33 kB / 460 MB, free: 3.555 MB / 314.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: 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.0001604/0.4232, allocations: 123.5 kB / 460.1 MB, free: 3.438 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.562e-05/0.4233, allocations: 27.91 kB / 460.1 MB, free: 3.422 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.666e-05/0.4234, allocations: 32.59 kB / 460.1 MB, free: 3.418 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.4234, allocations: 9.109 kB / 460.1 MB, free: 3.414 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.4234, allocations: 0 / 460.1 MB, free: 3.414 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.4234, allocations: 0 / 460.1 MB, free: 3.414 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001468/0.4249, allocations: 0.9553 MB / 461.1 MB, free: 2.988 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.4249, allocations: 0 / 461.1 MB, free: 2.988 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002493/0.4251, allocations: 47.16 kB / 461.2 MB, free: 2.977 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006074/0.4257, allocations: 217.4 kB / 461.4 MB, free: 2.93 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.315e-05/0.4258, allocations: 14.36 kB / 461.4 MB, free: 2.922 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00288/0.4287, allocations: 2.335 MB / 463.7 MB, free: 17.44 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.4287, allocations: 4.062 kB / 463.7 MB, free: 17.43 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001246/0.43, allocations: 0.7187 MB / 464.4 MB, free: 17.22 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001965/0.4302, allocations: 138.5 kB / 464.6 MB, free: 17.1 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.188e-05/0.4302, allocations: 4.812 kB / 464.6 MB, free: 17.1 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00029/0.4305, allocations: 32.59 kB / 464.6 MB, free: 17.09 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.4307, allocations: 45.94 kB / 464.7 MB, free: 17.06 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.782e-05/0.4307, allocations: 17.08 kB / 464.7 MB, free: 17.05 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001431/0.4308, allocations: 145.2 kB / 464.8 MB, free: 16.97 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006685/0.4315, allocations: 115.9 kB / 464.9 MB, free: 16.96 MB / 330.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) * 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.0002677/0.4318, allocations: 137.9 kB / 465.1 MB, free: 16.86 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001064/0.4329, allocations: 495.9 kB / 465.5 MB, free: 16.72 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.4329, allocations: 0.5938 kB / 465.5 MB, free: 16.72 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005425/0.4334, allocations: 340 kB / 465.9 MB, free: 16.57 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003154/0.4338, allocations: 15.59 kB / 465.9 MB, free: 16.57 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.4349, allocations: 0.5171 MB / 466.4 MB, free: 16.3 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004837/0.4354, allocations: 0.8156 MB / 467.2 MB, free: 15.54 MB / 330.7 MB Notification: Performance of SimCode: time 2.8e-07/0.4354, allocations: 0 / 467.2 MB, free: 15.54 MB / 330.7 MB Notification: Performance of Templates: time 0.0121/0.4475, allocations: 6.631 MB / 473.9 MB, free: 12.23 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches