Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [: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.001409/0.001409, allocations: 178.4 kB / 8.475 MB, free: 1.863 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.564/1.564, allocations: 205.2 MB / 214.1 MB, free: 5.074 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.0009429/0.000943, allocations: 74.28 kB / 262.1 MB, free: 5.125 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.019e-05/1.03e-05, allocations: 0 / 315 MB, free: 41.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1171, allocations: 47.57 MB / 362.5 MB, free: 9.957 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3144/0.4316, allocations: 78.03 MB / 440.6 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002184/0.4319, allocations: 71.12 kB / 440.6 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.02752/0.4594, allocations: 8.945 MB / 449.6 MB, free: 8.945 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.137e-05/0.4595, allocations: 11.69 kB / 449.6 MB, free: 8.945 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002407/0.4619, allocations: 0.7964 MB / 450.4 MB, free: 8.359 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.078e-05/0.4619, allocations: 11.62 kB / 450.4 MB, free: 8.359 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003817/0.4623, allocations: 58.38 kB / 450.5 MB, free: 8.328 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007041/0.4631, allocations: 334.9 kB / 450.8 MB, free: 8.047 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.176e-05/0.4631, allocations: 15.38 kB / 450.8 MB, free: 8.047 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/0.4633, allocations: 30.38 kB / 450.8 MB, free: 8.043 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001051/0.4643, allocations: 478.8 kB / 451.3 MB, free: 7.992 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009684/0.4653, allocations: 0.5051 MB / 451.8 MB, free: 7.82 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.6e-05/0.4654, allocations: 11.59 kB / 451.8 MB, free: 7.812 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.116e-05/0.4654, allocations: 0 / 451.8 MB, free: 7.812 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.752e-05/0.4655, allocations: 11.59 kB / 451.8 MB, free: 7.812 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002925/0.4684, allocations: 1.284 MB / 453.1 MB, free: 7.102 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006896/0.4691, allocations: 341.2 kB / 453.4 MB, free: 7.066 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004136/0.4695, allocations: 250.7 kB / 453.7 MB, free: 7.051 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.475e-05/0.4696, allocations: 11.72 kB / 453.7 MB, free: 7.047 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.244e-05/0.4697, allocations: 49.61 kB / 453.7 MB, free: 7 MB / 314.7 MB Notification: Performance of pre-optimization done (n=61): time 2.374e-06/0.4697, allocations: 0 / 453.7 MB, free: 7 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.004713/0.4744, allocations: 1.833 MB / 455.6 MB, free: 6.219 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.596e-05/0.4745, allocations: 59.75 kB / 455.6 MB, free: 6.156 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003414/0.4748, allocations: 236 kB / 455.9 MB, free: 6.031 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.57e-05/0.4749, allocations: 36.53 kB / 455.9 MB, free: 5.996 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.475, allocations: 157.5 kB / 456.1 MB, free: 5.863 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002078/0.4753, allocations: 221.6 kB / 456.3 MB, free: 5.703 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.75e-05/0.4753, allocations: 3.844 kB / 456.3 MB, free: 5.703 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.4755, allocations: 355.2 kB / 456.6 MB, free: 5.371 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004143/0.4759, allocations: 250 kB / 456.9 MB, free: 5.363 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004367/0.4763, allocations: 306.2 kB / 457.2 MB, free: 5.312 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000543/0.4769, allocations: 201.1 kB / 457.4 MB, free: 5.277 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.4769, allocations: 0 / 457.4 MB, free: 5.277 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001921/0.4788, allocations: 0.7504 MB / 458.1 MB, free: 5.145 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.4789, allocations: 7.719 kB / 458.1 MB, free: 5.145 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.563e-05/0.4789, allocations: 4.109 kB / 458.1 MB, free: 5.141 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00124/0.4802, allocations: 0.5343 MB / 458.7 MB, free: 5.016 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004611/0.4806, allocations: 107.9 kB / 458.8 MB, free: 4.992 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00197/0.4826, allocations: 1.094 MB / 459.9 MB, free: 4.383 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001014/0.4836, allocations: 152.3 kB / 460 MB, free: 4.332 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001504/0.4838, allocations: 31.92 kB / 460 MB, free: 4.328 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch3.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" 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: 24 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 19} Notification: Performance of prepare postOptimizeDAE: time 0.0003614/0.4842, allocations: 119.4 kB / 460.2 MB, free: 4.211 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002095/0.4844, allocations: 58.38 kB / 460.2 MB, free: 4.176 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002223/0.4866, allocations: 0.8372 MB / 461 MB, free: 3.934 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/0.4867, allocations: 6.781 kB / 461.1 MB, free: 3.934 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.4867, allocations: 0 / 461.1 MB, free: 3.934 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.4867, allocations: 3.984 kB / 461.1 MB, free: 3.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003077/0.4898, allocations: 1.326 MB / 462.4 MB, free: 3.379 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.4898, allocations: 3.984 kB / 462.4 MB, free: 3.375 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005693/0.4904, allocations: 92.48 kB / 462.5 MB, free: 3.359 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001318/0.4917, allocations: 0.5123 MB / 463 MB, free: 3.234 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.4918, allocations: 17.44 kB / 463 MB, free: 3.227 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001714/0.4935, allocations: 1.047 MB / 464.1 MB, free: 2.613 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.4936, allocations: 0 / 464.1 MB, free: 2.613 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002742/0.4963, allocations: 1.09 MB / 465.1 MB, free: 2.336 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004325/0.4968, allocations: 185.5 kB / 465.3 MB, free: 2.188 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001863/0.497, allocations: 13.31 kB / 465.3 MB, free: 2.188 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008654/0.4978, allocations: 154.8 kB / 465.5 MB, free: 2.133 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003336/0.4982, allocations: 144.8 kB / 465.6 MB, free: 2.051 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001161/0.4983, allocations: 31.25 kB / 465.7 MB, free: 2.043 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002799/0.4986, allocations: 198.8 kB / 465.9 MB, free: 1.941 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008915/0.4995, allocations: 133 kB / 466 MB, free: 1.938 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch2.mode,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * 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 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004087/0.4999, allocations: 141.8 kB / 466.1 MB, free: 1.836 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0017/0.5016, allocations: 0.7136 MB / 466.8 MB, free: 1.684 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.5016, allocations: 1.375 kB / 466.8 MB, free: 1.684 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007914/0.5024, allocations: 364.3 kB / 467.2 MB, free: 1.645 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007198/0.5032, allocations: 63.59 kB / 467.3 MB, free: 1.625 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003201/0.5064, allocations: 1.144 MB / 468.4 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005883/0.507, allocations: 0.8922 MB / 469.3 MB, free: 156 kB / 314.7 MB Notification: Performance of SimCode: time 1.093e-06/0.507, allocations: 1.344 kB / 469.3 MB, free: 156 kB / 314.7 MB Notification: Performance of Templates: time 0.02407/0.5311, allocations: 11.63 MB / 480.9 MB, free: 7.16 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches