Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [: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.001582/0.001582, allocations: 177.2 kB / 8.149 MB, free: 2.207 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.749/1.749, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.001292/0.001292, allocations: 82.23 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.45e-05/1.47e-05, allocations: 0 / 314.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.267, allocations: 47.56 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1272/0.3942, allocations: 81.48 MB / 443.3 MB, free: 4.57 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003304/0.3946, allocations: 68.47 kB / 443.4 MB, free: 4.504 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.05786/0.4525, allocations: 11.5 MB / 454.9 MB, free: 9.047 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.342e-05/0.4526, allocations: 8 kB / 454.9 MB, free: 9.039 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002254/0.4548, allocations: 0.7128 MB / 455.6 MB, free: 8.281 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.4549, allocations: 12.03 kB / 455.6 MB, free: 8.27 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005855/0.4555, allocations: 66.88 kB / 455.7 MB, free: 8.207 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007773/0.4563, allocations: 333.3 kB / 456 MB, free: 7.836 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001853/0.4565, allocations: 80.17 kB / 456.1 MB, free: 7.746 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000133/0.4566, allocations: 28 kB / 456.1 MB, free: 7.719 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001627/0.4583, allocations: 0.5246 MB / 456.6 MB, free: 7.191 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001348/0.4597, allocations: 473.2 kB / 457.1 MB, free: 6.719 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.669e-05/0.4597, allocations: 3.906 kB / 457.1 MB, free: 6.715 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.7e-05/0.4598, allocations: 0 / 457.1 MB, free: 6.715 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.814e-05/0.4599, allocations: 8 kB / 457.1 MB, free: 6.707 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003908/0.4638, allocations: 1.086 MB / 458.2 MB, free: 5.574 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001075/0.4649, allocations: 367.5 kB / 458.5 MB, free: 5.203 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008001/0.4657, allocations: 269.9 kB / 458.8 MB, free: 4.941 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.406e-05/0.4659, allocations: 12.64 kB / 458.8 MB, free: 4.93 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.4659, allocations: 39.22 kB / 458.9 MB, free: 4.883 MB / 346.7 MB Notification: Performance of pre-optimization done (n=63): time 4.368e-06/0.4659, allocations: 0 / 458.9 MB, free: 4.883 MB / 346.7 MB Notification: Performance of matching and sorting (n=71): time 0.007413/0.4733, allocations: 1.864 MB / 460.7 MB, free: 2.926 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.622e-05/0.4735, allocations: 89.77 kB / 460.8 MB, free: 2.816 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004138/0.4739, allocations: 212.3 kB / 461 MB, free: 2.605 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000155/0.4741, allocations: 29.7 kB / 461 MB, free: 2.57 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.4742, allocations: 199.9 kB / 461.2 MB, free: 2.371 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000297/0.4745, allocations: 224.8 kB / 461.5 MB, free: 2.148 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.147e-05/0.4746, allocations: 0 / 461.5 MB, free: 2.148 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.4747, allocations: 342.7 kB / 461.8 MB, free: 1.805 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007465/0.4755, allocations: 221.3 kB / 462 MB, free: 1.59 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007958/0.4763, allocations: 293.3 kB / 462.3 MB, free: 1.293 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009119/0.4772, allocations: 211 kB / 462.5 MB, free: 1.086 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.4773, allocations: 0 / 462.5 MB, free: 1.086 MB / 346.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002674/0.4799, allocations: 0.7395 MB / 463.2 MB, free: 348 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.821e-05/0.4801, allocations: 8 kB / 463.3 MB, free: 340 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.485e-05/0.4801, allocations: 8.062 kB / 463.3 MB, free: 332 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0017/0.4818, allocations: 410.7 kB / 463.7 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008632/0.4827, allocations: 87.88 kB / 463.7 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002496/0.4852, allocations: 1.084 MB / 464.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009991/0.4863, allocations: 75.92 kB / 464.9 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001335/0.4864, allocations: 34.42 kB / 464.9 MB, free: 14.62 MB / 362.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 bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" 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: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 31} Notification: Performance of prepare postOptimizeDAE: time 0.0002903/0.4867, allocations: 42.14 kB / 465 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001875/0.4869, allocations: 39.53 kB / 465 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002745/0.4897, allocations: 0.7712 MB / 465.8 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.69e-05/0.4898, allocations: 8 kB / 465.8 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.423e-06/0.4898, allocations: 0 / 465.8 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.447e-05/0.4898, allocations: 7.891 kB / 465.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005068/0.4949, allocations: 1.545 MB / 467.4 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.115e-06/0.4949, allocations: 0 / 467.4 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008729/0.4958, allocations: 91.94 kB / 467.4 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001645/0.4975, allocations: 384.5 kB / 467.8 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001302/0.4976, allocations: 23.88 kB / 467.8 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002179/0.4998, allocations: 1.029 MB / 468.9 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/0.4999, allocations: 0 / 468.9 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003787/0.5037, allocations: 1.16 MB / 470 MB, free: 9.391 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005183/0.5043, allocations: 184.5 kB / 470.2 MB, free: 9.191 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000163/0.5044, allocations: 8 kB / 470.2 MB, free: 9.184 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009794/0.5054, allocations: 68 kB / 470.3 MB, free: 9.117 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003461/0.5058, allocations: 96.45 kB / 470.4 MB, free: 9.023 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/0.5059, allocations: 27.97 kB / 470.4 MB, free: 8.996 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003009/0.5062, allocations: 180.5 kB / 470.6 MB, free: 8.82 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007878/0.507, allocations: 131.9 kB / 470.7 MB, free: 8.691 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004166/0.5075, allocations: 147.9 kB / 470.9 MB, free: 8.539 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002098/0.5096, allocations: 0.6136 MB / 471.5 MB, free: 7.918 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.269e-06/0.5096, allocations: 0 / 471.5 MB, free: 7.918 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001168/0.5108, allocations: 326.5 kB / 471.8 MB, free: 7.594 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006809/0.5115, allocations: 33.61 kB / 471.8 MB, free: 7.559 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003088/0.5146, allocations: 0.7637 MB / 472.6 MB, free: 6.762 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008751/0.5156, allocations: 0.8793 MB / 473.5 MB, free: 5.852 MB / 362.7 MB Notification: Performance of SimCode: time 1.282e-06/0.5156, allocations: 0 / 473.5 MB, free: 5.852 MB / 362.7 MB Notification: Performance of Templates: time 0.01729/0.5329, allocations: 7.056 MB / 480.5 MB, free: 14.84 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:DriveSine.amplitude,DriveSine.freqHz,DriveSine.offset,DriveSine.phase,DriveSine.startTime,DriveSine.y,Inertia1.J,Inertia1.a,der(Inertia1.phi),der(Inertia1.w),Inertia1.flange_a.phi,Inertia1.flange_a.tau,Inertia1.flange_b.phi,Inertia1.flange_b.tau,Inertia1.phi,Inertia1.stateSelect,Inertia1.w,Inertia2.J,Inertia2.a,der(Inertia2.phi),der(Inertia2.w),Inertia2.flange_a.phi,Inertia2.flange_a.tau,Inertia2.flange_b.phi,Inertia2.flange_b.tau,Inertia2.phi,Inertia2.stateSelect,Inertia2.w,PowerLoss,bearingFriction.a,bearingFriction.a_relfric,der(bearingFriction.phi),der(bearingFriction.w),bearingFriction.flange_a.phi,bearingFriction.flange_a.tau,bearingFriction.flange_b.phi,bearingFriction.flange_b.tau,bearingFriction.free,bearingFriction.locked,bearingFriction.lossPower,bearingFriction.mode,bearingFriction.peak,bearingFriction.phi,bearingFriction.phi_support,bearingFriction.sa,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.support.phi,bearingFriction.support.tau,bearingFriction.tau,bearingFriction.tau0,bearingFriction.tau0_max,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.useHeatPort,bearingFriction.useSupport,bearingFriction.w,bearingFriction.w_relfric,bearingFriction.w_small,fixed.flange.phi,fixed.flange.tau,fixed.phi0,gear.a_a,der(gear.der(phi_b)),der(gear.phi_a),der(gear.phi_b),der(gear.w_a),gear.eta_mf1,gear.eta_mf1_0,gear.eta_mf2,gear.eta_mf2_0,gear.flange_a.phi,gear.flange_a.tau,gear.flange_b.phi,gear.flange_b.tau,gear.ideal,gear.interpolation_result[1,1],gear.interpolation_result[1,2],gear.interpolation_result[1,3],gear.interpolation_result[1,4],gear.locked,gear.lossPower,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.phi_a,gear.phi_b,gear.phi_support,gear.quadrant1,gear.quadrant1_p,gear.quadrant2,gear.quadrant2_p,gear.quadrant3,gear.quadrant3_m,gear.quadrant4,gear.quadrant4_m,gear.ratio,gear.sa,gear.startBackward,gear.startForward,gear.support.phi,gear.support.tau,gear.tauLoss,gear.tauLossMax,gear.tauLossMax_p,gear.tauLossMin,gear.tauLossMin_m,gear.tau_aPos,gear.tau_bf1,gear.tau_bf1_0,gear.tau_bf2,gear.tau_bf2_0,gear.tau_bf_a,gear.tau_bf_a_0,gear.tau_eta,gear.tau_etaPos,gear.tau_eta_m,gear.tau_eta_p,gear.useHeatPort,gear.useSupport,gear.w_a,load.duration,load.height,load.offset,load.startTime,load.y,time,torque1.flange.phi,torque1.flange.tau,torque1.phi_support,torque1.support.phi,torque1.support.tau,torque1.tau,torque1.useSupport,torque2.flange.phi,torque2.flange.tau,torque2.phi_support,torque2.support.phi,torque2.support.tau,torque2.tau,torque2.useSupport