Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002326/0.002325, allocations: 176.2 kB / 8.149 MB, free: 2.199 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.775/1.775, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.00124/0.00124, allocations: 85.23 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.828e-06/9.859e-06, allocations: 4 kB / 314.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.2426, allocations: 47.55 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1235/0.3661, allocations: 80.07 MB / 441.9 MB, free: 6.012 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002722/0.3664, allocations: 71.97 kB / 442 MB, free: 5.941 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.04787/0.4143, allocations: 9.782 MB / 451.8 MB, free: 12.19 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.892e-05/0.4144, allocations: 8 kB / 451.8 MB, free: 12.18 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.001584/0.416, allocations: 0.5987 MB / 452.4 MB, free: 11.54 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.4161, allocations: 12.03 kB / 452.4 MB, free: 11.53 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005327/0.4166, allocations: 55.5 kB / 452.4 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000563/0.4172, allocations: 292.8 kB / 452.7 MB, free: 11.15 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001613/0.4174, allocations: 76.05 kB / 452.8 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.244e-05/0.4175, allocations: 23.91 kB / 452.8 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001154/0.4186, allocations: 401.1 kB / 453.2 MB, free: 10.65 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008895/0.4196, allocations: 351.6 kB / 453.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.24e-05/0.4196, allocations: 0 / 453.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.335e-05/0.4197, allocations: 0 / 453.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.427e-05/0.4197, allocations: 8 kB / 453.6 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002204/0.4219, allocations: 0.8284 MB / 454.4 MB, free: 9.406 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007909/0.4227, allocations: 278.9 kB / 454.7 MB, free: 9.129 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005069/0.4233, allocations: 190.1 kB / 454.8 MB, free: 8.941 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.735e-05/0.4233, allocations: 8.422 kB / 454.8 MB, free: 8.934 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/0.4234, allocations: 40.69 kB / 454.9 MB, free: 8.887 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 2.625e-06/0.4234, allocations: 0 / 454.9 MB, free: 8.887 MB / 346.7 MB Notification: Performance of matching and sorting (n=55): time 0.004583/0.428, allocations: 1.422 MB / 456.3 MB, free: 7.371 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.634e-05/0.4281, allocations: 85.61 kB / 456.4 MB, free: 7.27 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003131/0.4284, allocations: 183.5 kB / 456.6 MB, free: 7.082 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.01e-05/0.4285, allocations: 29.7 kB / 456.6 MB, free: 7.047 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.4286, allocations: 183.5 kB / 456.8 MB, free: 6.867 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000203/0.4288, allocations: 181.3 kB / 457 MB, free: 6.688 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.144e-05/0.4288, allocations: 0 / 457 MB, free: 6.688 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.429, allocations: 334.8 kB / 457.3 MB, free: 6.352 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004697/0.4295, allocations: 153 kB / 457.4 MB, free: 6.203 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005203/0.43, allocations: 199 kB / 457.6 MB, free: 6 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005759/0.4306, allocations: 157.4 kB / 457.8 MB, free: 5.848 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.4306, allocations: 0 / 457.8 MB, free: 5.848 MB / 346.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001559/0.4322, allocations: 0.5057 MB / 458.3 MB, free: 5.332 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.4322, allocations: 4 kB / 458.3 MB, free: 5.328 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.4322, allocations: 4.031 kB / 458.3 MB, free: 5.324 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001135/0.4334, allocations: 238.7 kB / 458.5 MB, free: 5.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006716/0.4341, allocations: 78.17 kB / 458.6 MB, free: 5.016 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005387/0.4395, allocations: 2.431 MB / 461 MB, free: 2.461 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005589/0.4401, allocations: 31.97 kB / 461.1 MB, free: 2.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.337e-05/0.4402, allocations: 20 kB / 461.1 MB, free: 2.41 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.$DER.gear.phi_b:DUMMY_DER(fixed = false ) "Angle between right shaft flange and support" type: Real 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 {3 24} Notification: Performance of prepare postOptimizeDAE: time 0.0002296/0.4404, allocations: 46.81 kB / 461.1 MB, free: 2.359 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001805/0.4406, allocations: 31.62 kB / 461.2 MB, free: 2.328 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001431/0.4408, allocations: 35.09 kB / 461.2 MB, free: 2.297 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-05/0.4408, allocations: 4 kB / 461.2 MB, free: 2.293 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.4408, allocations: 4 kB / 461.2 MB, free: 2.289 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.4408, allocations: 3.984 kB / 461.2 MB, free: 2.285 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003047/0.4439, allocations: 1.107 MB / 462.3 MB, free: 1.129 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.4439, allocations: 4.031 kB / 462.3 MB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007272/0.4447, allocations: 75.89 kB / 462.4 MB, free: 1.051 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001087/0.4458, allocations: 216.8 kB / 462.6 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.155e-05/0.4458, allocations: 11.98 kB / 462.6 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004953/0.4508, allocations: 2.329 MB / 464.9 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/0.4509, allocations: 4 kB / 465 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002258/0.4531, allocations: 0.8356 MB / 465.8 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002964/0.4535, allocations: 148.7 kB / 465.9 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001103/0.4536, allocations: 11.98 kB / 465.9 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006269/0.4542, allocations: 32.03 kB / 466 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001885/0.4544, allocations: 52.28 kB / 466 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.042e-05/0.4545, allocations: 19.98 kB / 466 MB, free: 13.24 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002156/0.4547, allocations: 148.5 kB / 466.2 MB, free: 13.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008622/0.4556, allocations: 128 kB / 466.3 MB, free: 12.97 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.0003438/0.456, allocations: 135.1 kB / 466.4 MB, free: 12.83 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001645/0.4576, allocations: 0.5439 MB / 467 MB, free: 12.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.4577, allocations: 4 kB / 467 MB, free: 12.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009359/0.4586, allocations: 354.6 kB / 467.3 MB, free: 11.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004749/0.4591, allocations: 17.58 kB / 467.4 MB, free: 11.89 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0022/0.4613, allocations: 0.6483 MB / 468 MB, free: 11.21 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007121/0.4621, allocations: 0.8434 MB / 468.8 MB, free: 10.34 MB / 362.7 MB Notification: Performance of SimCode: time 1.312e-06/0.4621, allocations: 0 / 468.8 MB, free: 10.34 MB / 362.7 MB Notification: Performance of Templates: time 0.01337/0.4755, allocations: 5.91 MB / 474.8 MB, free: 4.469 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches