Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.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.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_3.2.3_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_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009413/0.0009412, allocations: 180.9 kB / 17.41 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.312/1.312, allocations: 205.4 MB / 223.6 MB, free: 9.027 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.0007569/0.0007567, allocations: 94.36 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003235/0.0003235, allocations: 12 kB / 328.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2766, allocations: 47.57 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1079/0.3846, allocations: 87.71 MB / 463.4 MB, free: 8.918 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003025/0.3849, allocations: 71.97 kB / 463.5 MB, free: 8.848 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06577/0.4507, allocations: 23.1 MB / 486.6 MB, free: 1.688 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.4507, allocations: 0 / 486.6 MB, free: 1.688 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.264e-05/0.4508, allocations: 20 kB / 486.6 MB, free: 1.668 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.00406/0.4549, allocations: 1.348 MB / 488 MB, free: 276 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.4549, allocations: 12.03 kB / 488 MB, free: 264 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007817/0.4557, allocations: 139.5 kB / 488.1 MB, free: 124 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001279/0.457, allocations: 0.5577 MB / 488.7 MB, free: 15.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003827/0.4574, allocations: 196.1 kB / 488.9 MB, free: 15.31 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003091/0.4578, allocations: 111.9 kB / 489 MB, free: 15.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002714/0.4605, allocations: 1.228 MB / 490.2 MB, free: 13.96 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.159e-05/0.4606, allocations: 15.89 kB / 490.2 MB, free: 13.94 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001235/0.4607, allocations: 36 kB / 490.2 MB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.552e-05/0.4607, allocations: 27.94 kB / 490.3 MB, free: 13.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002973/0.4637, allocations: 1.288 MB / 491.6 MB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007333/0.4711, allocations: 3.7 MB / 495.3 MB, free: 8.727 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001983/0.4731, allocations: 1.03 MB / 496.3 MB, free: 7.684 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001292/0.4744, allocations: 0.6567 MB / 496.9 MB, free: 7.027 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001128/0.4745, allocations: 29.23 kB / 497 MB, free: 6.996 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.206e-05/0.4746, allocations: 43.88 kB / 497 MB, free: 6.945 MB / 378.7 MB Notification: Performance of pre-optimization done (n=135): time 3.987e-06/0.4746, allocations: 0 / 497 MB, free: 6.945 MB / 378.7 MB Notification: Performance of matching and sorting (n=147): time 0.01398/0.4886, allocations: 5.803 MB / 0.491 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.994e-05/0.4887, allocations: 94.42 kB / 0.4911 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007348/0.4894, allocations: 0.4949 MB / 0.4916 GB, free: 380 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001284/0.4896, allocations: 65.69 kB / 0.4917 GB, free: 308 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2138/0.7034, allocations: 312.2 kB / 0.492 GB, free: 103.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001039/0.7045, allocations: 496 kB / 0.4924 GB, free: 103.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000133/0.7046, allocations: 28.41 kB / 0.4925 GB, free: 103.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002312/0.7049, allocations: 395.4 kB / 0.4928 GB, free: 103.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00155/0.7064, allocations: 0.5374 MB / 0.4934 GB, free: 103.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001521/0.708, allocations: 0.6861 MB / 0.494 GB, free: 103.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002177/0.7101, allocations: 0.9905 MB / 0.495 GB, free: 103.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.177e-06/0.7102, allocations: 1 kB / 0.495 GB, free: 103.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003961/0.7141, allocations: 1.701 MB / 0.4967 GB, free: 102.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.986e-05/0.7142, allocations: 5.125 kB / 0.4967 GB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.981e-05/0.7142, allocations: 9.219 kB / 0.4967 GB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001917/0.7161, allocations: 0.8091 MB / 0.4975 GB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001073/0.7172, allocations: 257 kB / 0.4977 GB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002292/0.7195, allocations: 1.881 MB / 0.4996 GB, free: 101.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001316/0.7209, allocations: 207.9 kB / 0.4998 GB, free: 101.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001653/0.721, allocations: 61.12 kB / 0.4998 GB, free: 101.9 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 ($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,bearingFriction.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005823/0.7216, allocations: 279.6 kB / 0.5001 GB, free: 101.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002041/0.7218, allocations: 87.88 kB / 0.5002 GB, free: 101.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004107/0.726, allocations: 1.922 MB / 0.502 GB, free: 101.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.361e-05/0.726, allocations: 15.5 kB / 0.5021 GB, free: 101.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.726, allocations: 3.719 kB / 0.5021 GB, free: 101.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.649e-05/0.726, allocations: 6.375 kB / 0.5021 GB, free: 101.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005597/0.7316, allocations: 3.178 MB / 0.5052 GB, free: 99.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.7317, allocations: 0 / 0.5052 GB, free: 99.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001025/0.7327, allocations: 263.7 kB / 0.5054 GB, free: 99.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001444/0.7342, allocations: 0.7696 MB / 0.5062 GB, free: 99.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000122/0.7343, allocations: 46.06 kB / 0.5062 GB, free: 99.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001829/0.7361, allocations: 1.825 MB / 0.508 GB, free: 98.14 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.7362, allocations: 4.312 kB / 0.508 GB, free: 98.14 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004281/0.7404, allocations: 2.435 MB / 0.5104 GB, free: 97.12 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006065/0.7411, allocations: 308.3 kB / 0.5107 GB, free: 96.92 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001755/0.7413, allocations: 35.69 kB / 0.5107 GB, free: 96.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009994/0.7423, allocations: 219.2 kB / 0.5109 GB, free: 96.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004088/0.7427, allocations: 228.9 kB / 0.5111 GB, free: 96.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001192/0.7428, allocations: 65.12 kB / 0.5112 GB, free: 96.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000433/0.7432, allocations: 361.9 kB / 0.5115 GB, free: 96.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.7433, allocations: 0 / 0.5115 GB, free: 96.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009297/0.7442, allocations: 328.6 kB / 0.5119 GB, free: 96.63 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (lossyGear.mode,brake.mode,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 94 * 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 6,4 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003462/0.7445, allocations: 200.9 kB / 0.512 GB, free: 96.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00284/0.7474, allocations: 1.535 MB / 0.5135 GB, free: 95.92 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.7474, allocations: 1.125 kB / 0.5135 GB, free: 95.92 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001627/0.749, allocations: 0.8412 MB / 0.5144 GB, free: 95.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00109/0.7502, allocations: 165.5 kB / 0.5145 GB, free: 95.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007389/0.7576, allocations: 3.838 MB / 0.5183 GB, free: 93.7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000445/0.758, allocations: 1.024 MB / 0.5193 GB, free: 92.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004557/0.7585, allocations: 94.16 kB / 0.5194 GB, free: 92.96 MB / 378.7 MB Notification: Performance of SimCode: time 8.01e-07/0.7585, allocations: 0 / 0.5194 GB, free: 92.96 MB / 378.7 MB Notification: Performance of Templates: time 0.02094/0.7795, allocations: 19.53 MB / 0.5384 GB, free: 75.69 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/HeatLosses/HeatLosses.csv","../files/Modelica_3.2.3_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