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") [: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.002232/0.002232, allocations: 176.1 kB / 8.476 MB, free: 1.883 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.561/1.561, allocations: 205.2 MB / 214.1 MB, free: 5.098 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.001071/0.001071, allocations: 87.28 kB / 262.1 MB, free: 5.141 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.373e-06/7.393e-06, allocations: 0 / 315 MB, free: 41.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1168, allocations: 47.58 MB / 362.5 MB, free: 9.961 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3172/0.4341, allocations: 80.06 MB / 442.6 MB, free: 10.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/0.4345, allocations: 71.8 kB / 442.7 MB, free: 10.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.02831/0.4628, allocations: 9.777 MB / 452.4 MB, free: 8.18 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.052e-05/0.4629, allocations: 3.812 kB / 452.5 MB, free: 8.18 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001118/0.464, allocations: 0.592 MB / 453 MB, free: 7.695 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.382e-05/0.4641, allocations: 11.41 kB / 453.1 MB, free: 7.695 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003646/0.4644, allocations: 57.81 kB / 453.1 MB, free: 7.668 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004122/0.4649, allocations: 288.2 kB / 453.4 MB, free: 7.418 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001199/0.465, allocations: 79.17 kB / 453.5 MB, free: 7.352 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.383e-05/0.4651, allocations: 23.41 kB / 453.5 MB, free: 7.344 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006256/0.4657, allocations: 405.6 kB / 453.9 MB, free: 7.285 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005185/0.4662, allocations: 341.1 kB / 454.2 MB, free: 7.16 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/0.4662, allocations: 7.781 kB / 454.2 MB, free: 7.156 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.733e-05/0.4663, allocations: 0 / 454.2 MB, free: 7.156 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.4663, allocations: 7.812 kB / 454.2 MB, free: 7.156 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001229/0.4675, allocations: 0.8282 MB / 455.1 MB, free: 6.688 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004606/0.468, allocations: 287.9 kB / 455.3 MB, free: 6.648 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002654/0.4683, allocations: 183.4 kB / 455.5 MB, free: 6.637 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.707e-05/0.4683, allocations: 4.25 kB / 455.5 MB, free: 6.637 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.909e-05/0.4684, allocations: 38.06 kB / 455.6 MB, free: 6.598 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.834e-06/0.4684, allocations: 0 / 455.6 MB, free: 6.598 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.00266/0.471, allocations: 1.422 MB / 457 MB, free: 5.926 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.813e-05/0.4711, allocations: 85.23 kB / 457.1 MB, free: 5.832 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002018/0.4713, allocations: 190 kB / 457.3 MB, free: 5.715 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.696e-05/0.4714, allocations: 29.39 kB / 457.3 MB, free: 5.684 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.751e-05/0.4714, allocations: 123.5 kB / 457.4 MB, free: 5.574 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/0.4715, allocations: 191 kB / 457.6 MB, free: 5.434 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.518e-05/0.4716, allocations: 0 / 457.6 MB, free: 5.434 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.649e-05/0.4717, allocations: 336.8 kB / 457.9 MB, free: 5.113 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002332/0.4719, allocations: 154.7 kB / 458.1 MB, free: 5.109 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002698/0.4722, allocations: 199.9 kB / 458.3 MB, free: 5.07 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003928/0.4726, allocations: 151.3 kB / 458.4 MB, free: 5.047 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.4726, allocations: 5.375 kB / 458.4 MB, free: 5.043 MB / 314.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001177/0.4738, allocations: 0.5182 MB / 458.9 MB, free: 4.934 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.4738, allocations: 5.344 kB / 458.9 MB, free: 4.934 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.4738, allocations: 0 / 458.9 MB, free: 4.934 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007926/0.4746, allocations: 246.2 kB / 459.2 MB, free: 4.875 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003849/0.475, allocations: 68.98 kB / 459.3 MB, free: 4.859 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00355/0.4786, allocations: 2.435 MB / 461.7 MB, free: 3.359 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003726/0.479, allocations: 32.19 kB / 461.7 MB, free: 3.348 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.229e-05/0.4791, allocations: 25.23 kB / 461.7 MB, free: 3.34 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: 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.000209/0.4793, allocations: 116.6 kB / 461.9 MB, free: 3.223 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.52e-05/0.4794, allocations: 30.75 kB / 461.9 MB, free: 3.207 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.669e-05/0.4795, allocations: 38.5 kB / 461.9 MB, free: 3.199 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.4795, allocations: 6 kB / 461.9 MB, free: 3.199 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.4795, allocations: 3.984 kB / 461.9 MB, free: 3.195 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.4795, allocations: 1.5 kB / 461.9 MB, free: 3.195 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002061/0.4816, allocations: 1.101 MB / 463 MB, free: 2.723 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.4816, allocations: 1.219 kB / 463 MB, free: 2.723 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004034/0.482, allocations: 71.02 kB / 463.1 MB, free: 2.707 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007051/0.4827, allocations: 224 kB / 463.3 MB, free: 2.656 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.849e-05/0.4828, allocations: 8.078 kB / 463.3 MB, free: 2.652 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003719/0.4865, allocations: 2.357 MB / 465.7 MB, free: 1.152 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.4865, allocations: 1.25 kB / 465.7 MB, free: 1.152 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001661/0.4882, allocations: 0.8266 MB / 466.5 MB, free: 16.91 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002328/0.4885, allocations: 150.5 kB / 466.7 MB, free: 16.78 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.275e-05/0.4885, allocations: 5.594 kB / 466.7 MB, free: 16.78 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003505/0.4889, allocations: 33.47 kB / 466.7 MB, free: 16.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001613/0.4891, allocations: 51.5 kB / 466.8 MB, free: 16.74 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.121e-05/0.4891, allocations: 19.52 kB / 466.8 MB, free: 16.74 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001952/0.4893, allocations: 144.4 kB / 466.9 MB, free: 16.66 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009254/0.4903, allocations: 126.9 kB / 467 MB, free: 16.65 MB / 330.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.0003695/0.4906, allocations: 143.2 kB / 467.2 MB, free: 16.54 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001197/0.4919, allocations: 0.5351 MB / 467.7 MB, free: 16.39 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4919, allocations: 0 / 467.7 MB, free: 16.39 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006271/0.4925, allocations: 367.1 kB / 468.1 MB, free: 16.25 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003381/0.4929, allocations: 20.8 kB / 468.1 MB, free: 16.25 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00182/0.4947, allocations: 0.5988 MB / 468.7 MB, free: 15.95 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008273/0.4955, allocations: 0.838 MB / 469.5 MB, free: 15.18 MB / 330.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4955, allocations: 1.156 kB / 469.5 MB, free: 15.18 MB / 330.7 MB Notification: Performance of Templates: time 0.01682/0.5124, allocations: 7.238 MB / 476.8 MB, free: 11.19 MB / 330.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