Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.00256/0.00256, allocations: 176.1 kB / 8.148 MB, free: 2.215 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.748/1.748, allocations: 205.2 MB / 213.7 MB, free: 13.88 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.001222/0.001221, allocations: 89.88 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.456e-06/8.606e-06, allocations: 0 / 314.3 MB, free: 9.062 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2445/0.2446, allocations: 47.56 MB / 361.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1236/0.3682, allocations: 79.36 MB / 441.2 MB, free: 6.703 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002855/0.3685, allocations: 72.45 kB / 441.3 MB, free: 6.633 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.04539/0.4139, allocations: 8.995 MB / 450.3 MB, free: 13.68 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.128e-05/0.414, allocations: 8 kB / 450.3 MB, free: 13.68 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001523/0.4155, allocations: 0.5645 MB / 450.8 MB, free: 13.07 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.4156, allocations: 8.031 kB / 450.8 MB, free: 13.06 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005317/0.4162, allocations: 51.59 kB / 450.9 MB, free: 13.01 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006145/0.4168, allocations: 274.5 kB / 451.2 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001667/0.417, allocations: 72.05 kB / 451.2 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.902e-05/0.4171, allocations: 19.94 kB / 451.2 MB, free: 12.6 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001079/0.4182, allocations: 361.1 kB / 451.6 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008513/0.419, allocations: 321.4 kB / 451.9 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.601e-05/0.4191, allocations: 8.469 kB / 451.9 MB, free: 11.9 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.074e-05/0.4191, allocations: 0 / 451.9 MB, free: 11.9 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.63e-05/0.4192, allocations: 11.98 kB / 451.9 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003094/0.4223, allocations: 1.094 MB / 453 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007552/0.4231, allocations: 260.5 kB / 453.3 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006831/0.4238, allocations: 156.3 kB / 453.4 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.952e-05/0.4239, allocations: 8.703 kB / 453.4 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.201e-05/0.424, allocations: 38.56 kB / 453.5 MB, free: 10.27 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 5.82e-06/0.424, allocations: 0 / 453.5 MB, free: 10.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.00489/0.4289, allocations: 1.22 MB / 454.7 MB, free: 8.953 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/0.429, allocations: 84.86 kB / 454.8 MB, free: 8.852 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003437/0.4294, allocations: 191.8 kB / 455 MB, free: 8.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.771e-05/0.4294, allocations: 31.09 kB / 455 MB, free: 8.625 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.4296, allocations: 191 kB / 455.2 MB, free: 8.434 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001835/0.4298, allocations: 149.8 kB / 455.3 MB, free: 8.285 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.64e-05/0.4298, allocations: 3.938 kB / 455.3 MB, free: 8.281 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.43, allocations: 330.8 kB / 455.7 MB, free: 7.949 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004226/0.4304, allocations: 132.9 kB / 455.8 MB, free: 7.82 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004919/0.4309, allocations: 193 kB / 456 MB, free: 7.613 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005946/0.4316, allocations: 140.8 kB / 456.1 MB, free: 7.477 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.4316, allocations: 0 / 456.1 MB, free: 7.477 MB / 346.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0016/0.4332, allocations: 484.2 kB / 456.6 MB, free: 6.992 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.4332, allocations: 4 kB / 456.6 MB, free: 6.988 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.4333, allocations: 4.75 kB / 456.6 MB, free: 6.984 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001069/0.4343, allocations: 212.7 kB / 456.8 MB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005031/0.4349, allocations: 55.88 kB / 456.9 MB, free: 6.719 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006185/0.4411, allocations: 2.484 MB / 459.3 MB, free: 4.117 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004811/0.4416, allocations: 31.5 kB / 459.4 MB, free: 4.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.266e-05/0.4417, allocations: 20 kB / 459.4 MB, free: 4.07 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Inertia2.a:VARIABLE(unit = "rad/s2" ) "Absolute angular acceleration of component (= der(w))" 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.0002319/0.442, allocations: 47.84 kB / 459.4 MB, free: 4.02 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.4421, allocations: 23.72 kB / 459.5 MB, free: 3.996 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001279/0.4422, allocations: 34.78 kB / 459.5 MB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/0.4423, allocations: 4 kB / 459.5 MB, free: 3.961 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.4423, allocations: 4 kB / 459.5 MB, free: 3.957 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.4423, allocations: 3.984 kB / 459.5 MB, free: 3.953 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002775/0.4451, allocations: 0.9492 MB / 460.5 MB, free: 2.957 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.782e-06/0.4451, allocations: 0 / 460.5 MB, free: 2.957 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005065/0.4456, allocations: 47.97 kB / 460.5 MB, free: 2.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001138/0.4468, allocations: 229 kB / 460.7 MB, free: 2.684 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-05/0.4469, allocations: 3.984 kB / 460.7 MB, free: 2.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005332/0.4522, allocations: 2.335 MB / 463.1 MB, free: 236 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.4523, allocations: 0 / 463.1 MB, free: 236 kB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001971/0.4543, allocations: 0.7238 MB / 463.8 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002811/0.4546, allocations: 144.7 kB / 463.9 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.783e-05/0.4547, allocations: 0 / 463.9 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005357/0.4553, allocations: 24.05 kB / 464 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001746/0.4555, allocations: 47.91 kB / 464 MB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/0.4556, allocations: 15.98 kB / 464 MB, free: 15.24 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002154/0.4558, allocations: 144.4 kB / 464.2 MB, free: 15.1 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008581/0.4567, allocations: 115.9 kB / 464.3 MB, free: 14.99 MB / 362.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.0003369/0.457, allocations: 135.2 kB / 464.4 MB, free: 14.85 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001409/0.4585, allocations: 490.7 kB / 464.9 MB, free: 14.36 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.4585, allocations: 0 / 464.9 MB, free: 14.36 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000873/0.4594, allocations: 328.7 kB / 465.2 MB, free: 14.03 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005007/0.4599, allocations: 20.42 kB / 465.2 MB, free: 14.01 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001914/0.4618, allocations: 0.5495 MB / 465.8 MB, free: 13.43 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007336/0.4626, allocations: 0.8303 MB / 466.6 MB, free: 12.57 MB / 362.7 MB Notification: Performance of SimCode: time 1.333e-06/0.4626, allocations: 0 / 466.6 MB, free: 12.57 MB / 362.7 MB Notification: Performance of Templates: time 0.01286/0.4755, allocations: 5.192 MB / 471.8 MB, free: 7.418 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches