Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|lossyGear.mode|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|lossyGear.mode|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001632/0.001632, allocations: 200 kB / 18.06 MB, free: 3.648 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 226.5 MB / 245.3 MB, free: 6.379 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007908/0.0007908, allocations: 96.86 kB / 297.4 MB, free: 6.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002011/0.0002011, allocations: 4 kB / 357.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2047/0.2049, allocations: 51.29 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1044/0.3094, allocations: 91.98 MB / 0.4889 GB, free: 15.58 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00022/0.3097, allocations: 71.97 kB / 0.489 GB, free: 15.51 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2719/0.5816, allocations: 34.54 MB / 0.5227 GB, free: 89.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.534e-06/0.5817, allocations: 0 / 0.5227 GB, free: 89.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.907e-05/0.5817, allocations: 20.72 kB / 0.5227 GB, free: 89.14 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.002971/0.5847, allocations: 1.42 MB / 0.5241 GB, free: 88.04 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.5848, allocations: 8.031 kB / 0.5241 GB, free: 88.03 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000624/0.5854, allocations: 167.5 kB / 0.5243 GB, free: 87.87 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008723/0.5863, allocations: 0.6118 MB / 0.5249 GB, free: 87.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002708/0.5866, allocations: 204.4 kB / 0.5251 GB, free: 87.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001706/0.5867, allocations: 103.9 kB / 0.5252 GB, free: 86.91 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002176/0.5889, allocations: 1.255 MB / 0.5264 GB, free: 85.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.31e-05/0.589, allocations: 11.89 kB / 0.5264 GB, free: 85.63 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001202/0.5891, allocations: 40 kB / 0.5264 GB, free: 85.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.513e-05/0.5891, allocations: 24 kB / 0.5265 GB, free: 85.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002473/0.5916, allocations: 1.319 MB / 0.5277 GB, free: 84.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005836/0.5975, allocations: 3.811 MB / 0.5315 GB, free: 80.32 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001998/0.5995, allocations: 1.089 MB / 0.5325 GB, free: 79.22 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001226/0.6007, allocations: 0.6604 MB / 0.5332 GB, free: 78.56 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001031/0.6009, allocations: 25.06 kB / 0.5332 GB, free: 78.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.6009, allocations: 51.86 kB / 0.5333 GB, free: 78.48 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 3.336e-06/0.6009, allocations: 0 / 0.5333 GB, free: 78.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=148): time 0.01245/0.6134, allocations: 5.77 MB / 0.5389 GB, free: 72.56 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.183e-05/0.6135, allocations: 90.42 kB / 0.539 GB, free: 72.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007512/0.6142, allocations: 0.6005 MB / 0.5396 GB, free: 71.85 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001092/0.6143, allocations: 65.69 kB / 0.5396 GB, free: 71.78 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001779/0.6145, allocations: 337.5 kB / 0.5399 GB, free: 71.44 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002779/0.6148, allocations: 0.4922 MB / 0.5404 GB, free: 70.96 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.076e-05/0.6149, allocations: 31.98 kB / 0.5405 GB, free: 70.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.98e-05/0.615, allocations: 406.7 kB / 0.5408 GB, free: 70.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001017/0.616, allocations: 0.5349 MB / 0.5414 GB, free: 69.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00106/0.6171, allocations: 0.6841 MB / 0.542 GB, free: 69.28 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001728/0.6188, allocations: 0.9873 MB / 0.543 GB, free: 68.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.6189, allocations: 4 kB / 0.543 GB, free: 68.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.003214/0.6221, allocations: 1.708 MB / 0.5447 GB, free: 66.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.6221, allocations: 4.781 kB / 0.5447 GB, free: 66.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.6221, allocations: 4 kB / 0.5447 GB, free: 66.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001563/0.6237, allocations: 0.7302 MB / 0.5454 GB, free: 65.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009114/0.6246, allocations: 259.6 kB / 0.5456 GB, free: 65.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001881/0.6265, allocations: 1.943 MB / 0.5475 GB, free: 63.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001148/0.6277, allocations: 211.9 kB / 0.5477 GB, free: 63.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001138/0.6278, allocations: 55.11 kB / 0.5478 GB, free: 63.29 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 37 (bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 124 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 45,1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0004899/0.6283, allocations: 261.6 kB / 0.548 GB, free: 63.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001959/0.6285, allocations: 110.7 kB / 0.5481 GB, free: 62.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002677/0.6288, allocations: 141.8 kB / 0.5483 GB, free: 62.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.6288, allocations: 12 kB / 0.5483 GB, free: 62.76 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.265e-05/0.6288, allocations: 4 kB / 0.5483 GB, free: 62.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.6288, allocations: 3.984 kB / 0.5483 GB, free: 62.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00546/0.6343, allocations: 3.315 MB / 0.5515 GB, free: 59.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.6343, allocations: 0 / 0.5515 GB, free: 59.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/0.6354, allocations: 263.7 kB / 0.5518 GB, free: 59.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00145/0.6368, allocations: 0.6873 MB / 0.5525 GB, free: 58.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001068/0.6369, allocations: 47.94 kB / 0.5525 GB, free: 58.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001812/0.6388, allocations: 1.881 MB / 0.5543 GB, free: 56.47 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.6388, allocations: 0 / 0.5543 GB, free: 56.47 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004202/0.643, allocations: 2.461 MB / 0.5567 GB, free: 53.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005397/0.6435, allocations: 331.7 kB / 0.5571 GB, free: 53.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002086/0.6438, allocations: 47.86 kB / 0.5571 GB, free: 53.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.6448, allocations: 215.8 kB / 0.5573 GB, free: 53.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004069/0.6452, allocations: 232.8 kB / 0.5575 GB, free: 53.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.994e-05/0.6453, allocations: 56.05 kB / 0.5576 GB, free: 53.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004847/0.6458, allocations: 430.8 kB / 0.558 GB, free: 52.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6458, allocations: 0 / 0.558 GB, free: 52.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008705/0.6467, allocations: 335.9 kB / 0.5583 GB, free: 52.35 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 12 (damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia4.w,lossyGear.phi_a,clutch.phi_rel,clutch.w_rel,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 23 (bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 12 (clutch.mode,clutch.startForward,brake.mode,brake.startForward,brake.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,clutch.startBackward,lossyGear.mode,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 93 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,4 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.000872/0.6475, allocations: 446.6 kB / 0.5587 GB, free: 52.03 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002699/0.6503, allocations: 1.455 MB / 0.5602 GB, free: 50.58 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.6503, allocations: 4.125 kB / 0.5602 GB, free: 50.58 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001506/0.6518, allocations: 0.8221 MB / 0.561 GB, free: 49.76 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001107/0.6529, allocations: 183.7 kB / 0.5611 GB, free: 49.58 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007416/0.6603, allocations: 3.973 MB / 0.565 GB, free: 45.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003622/0.6607, allocations: 1.047 MB / 0.5661 GB, free: 44.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005075/0.6612, allocations: 107.3 kB / 0.5662 GB, free: 44.39 MB / 378.7 MB Notification: Performance of SimCode: time 6.41e-07/0.6613, allocations: 0 / 0.5662 GB, free: 44.39 MB / 378.7 MB Notification: Performance of Templates: time 0.02084/0.6821, allocations: 20.84 MB / 0.5865 GB, free: 23.55 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/HeatLosses/HeatLosses.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,clutch.phi_rel,clutch.w_rel,damper.phi_rel,damper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia5.phi,inertia5.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,springDamper.phi_rel,springDamper.w_rel,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward,lossyGear.mode,oneWayClutch.startForward,oneWayClutch.stuck Variables in the result:bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.phi_rel,clutch.startBackward,clutch.startForward,clutch.w_rel,damper.phi_rel,damper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia5.phi,inertia5.w,lossyGear.mode,oneWayClutch.phi_rel,oneWayClutch.startForward,oneWayClutch.stuck,oneWayClutch.w_rel,springDamper.phi_rel,springDamper.w_rel,time