Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.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.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002051/0.002051, allocations: 195.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.979/2.979, allocations: 226.5 MB / 245.4 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001168/0.001168, allocations: 103.8 kB / 297.4 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005374/0.0005379, allocations: 11.98 kB / 357.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6372/0.6378, allocations: 51.29 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2092/0.8471, allocations: 87.56 MB / 496.2 MB, free: 4.008 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005369/0.8478, allocations: 75.95 kB / 496.3 MB, free: 3.934 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08925/0.937, allocations: 17.49 MB / 0.5017 GB, free: 2.375 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.89e-06/0.9372, allocations: 0 / 0.5017 GB, free: 2.375 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.489e-05/0.9373, allocations: 19.98 kB / 0.5018 GB, free: 2.355 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: 173 * Number of variables: 173 Notification: Performance of Generate backend data structure: time 0.004661/0.9419, allocations: 1.162 MB / 0.5029 GB, free: 1.137 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.557e-05/0.9421, allocations: 8.031 kB / 0.5029 GB, free: 1.129 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001058/0.9431, allocations: 123.9 kB / 0.503 GB, free: 1.008 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00132/0.9445, allocations: 441.6 kB / 0.5034 GB, free: 0.5391 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001054/0.9446, allocations: 54.38 kB / 0.5035 GB, free: 500 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002585/0.9449, allocations: 76.27 kB / 0.5036 GB, free: 424 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5731/1.518, allocations: 0.8011 MB / 0.5043 GB, free: 90.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001013/1.518, allocations: 7.703 kB / 0.5044 GB, free: 90.14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002196/1.518, allocations: 28.39 kB / 0.5044 GB, free: 90.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-05/1.519, allocations: 17.62 kB / 0.5044 GB, free: 90.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005299/1.524, allocations: 0.8723 MB / 0.5052 GB, free: 90.13 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01099/1.535, allocations: 2.485 MB / 0.5077 GB, free: 89.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002859/1.538, allocations: 0.7458 MB / 0.5084 GB, free: 89.4 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002516/1.54, allocations: 472.8 kB / 0.5089 GB, free: 89.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001743/1.541, allocations: 12.31 kB / 0.5089 GB, free: 89.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005268/1.546, allocations: 0.5509 MB / 0.5094 GB, free: 89.33 MB / 378.7 MB Notification: Performance of pre-optimization done (n=89): time 1.132e-05/1.546, allocations: 0 / 0.5094 GB, free: 89.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=109): time 0.02519/1.571, allocations: 4.359 MB / 0.5137 GB, free: 87.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.373e-05/1.571, allocations: 64 kB / 0.5137 GB, free: 87.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009771/1.572, allocations: 409.6 kB / 0.5141 GB, free: 87.58 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002015/1.573, allocations: 58.33 kB / 0.5142 GB, free: 87.53 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000338/1.573, allocations: 272.1 kB / 0.5144 GB, free: 87.33 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005519/1.574, allocations: 373.8 kB / 0.5148 GB, free: 87.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/1.574, allocations: 19.81 kB / 0.5148 GB, free: 87.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002038/1.574, allocations: 377.5 kB / 0.5152 GB, free: 86.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001673/1.576, allocations: 428.3 kB / 0.5156 GB, free: 86.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001793/1.577, allocations: 0.5225 MB / 0.5161 GB, free: 86.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002868/1.58, allocations: 0.7691 MB / 0.5168 GB, free: 86.01 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/1.58, allocations: 0 / 0.5168 GB, free: 86.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.005568/1.586, allocations: 1.312 MB / 0.5181 GB, free: 85.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.147e-05/1.586, allocations: 5.594 kB / 0.5181 GB, free: 85.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.113e-05/1.586, allocations: 3.625 kB / 0.5181 GB, free: 85.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001821/1.588, allocations: 0.493 MB / 0.5186 GB, free: 85.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0016/1.59, allocations: 207.2 kB / 0.5188 GB, free: 85.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007549/1.597, allocations: 3.26 MB / 0.522 GB, free: 82.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002518/1.6, allocations: 240.5 kB / 0.5222 GB, free: 82.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002039/1.6, allocations: 36.94 kB / 0.5223 GB, free: 82.52 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,$whenCondition1,elastoGap.contact,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,massWithStopAndFriction.free,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 111 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 9,1 5,1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0009275/1.601, allocations: 228.6 kB / 0.5225 GB, free: 82.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003777/1.601, allocations: 76.38 kB / 0.5225 GB, free: 82.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003693/1.602, allocations: 112.5 kB / 0.5227 GB, free: 82.21 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.292e-05/1.602, allocations: 9.594 kB / 0.5227 GB, free: 82.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.395e-05/1.602, allocations: 3.469 kB / 0.5227 GB, free: 82.21 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-05/1.602, allocations: 7.078 kB / 0.5227 GB, free: 82.21 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007454/1.609, allocations: 2.52 MB / 0.5251 GB, free: 80.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.087e-05/1.609, allocations: 3.094 kB / 0.5251 GB, free: 80.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001039/1.61, allocations: 188.4 kB / 0.5253 GB, free: 80.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001228/1.612, allocations: 468.6 kB / 0.5258 GB, free: 80.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001304/1.612, allocations: 33.08 kB / 0.5258 GB, free: 80.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005283/1.617, allocations: 3.084 MB / 0.5288 GB, free: 78.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.101e-05/1.617, allocations: 10.61 kB / 0.5288 GB, free: 78.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00705/1.624, allocations: 1.843 MB / 0.5306 GB, free: 76.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009188/1.625, allocations: 235.7 kB / 0.5308 GB, free: 76.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000251/1.625, allocations: 39.66 kB / 0.5309 GB, free: 76.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002131/1.628, allocations: 252.8 kB / 0.5311 GB, free: 76.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005784/1.633, allocations: 430.9 kB / 0.5315 GB, free: 75.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005128/1.634, allocations: 42.39 kB / 0.5316 GB, free: 75.88 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000836/1.635, allocations: 280.5 kB / 0.5318 GB, free: 75.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.91e-07/1.635, allocations: 0 / 0.5318 GB, free: 75.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002361/1.637, allocations: 254.4 kB / 0.5321 GB, free: 75.4 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 7,1 8,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001789/1.639, allocations: 412.5 kB / 0.5325 GB, free: 75.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004742/1.644, allocations: 1.181 MB / 0.5336 GB, free: 74.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.28e-05/1.644, allocations: 4 kB / 0.5336 GB, free: 74.09 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002537/1.646, allocations: 0.7283 MB / 0.5343 GB, free: 73.42 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002017/1.648, allocations: 137.6 kB / 0.5345 GB, free: 73.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007767/1.656, allocations: 2.503 MB / 0.5369 GB, free: 71.04 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006325/1.657, allocations: 0.9523 MB / 0.5378 GB, free: 70.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000785/1.658, allocations: 62.28 kB / 0.5379 GB, free: 70.1 MB / 378.7 MB Notification: Performance of SimCode: time 5.651e-06/1.658, allocations: 0 / 0.5379 GB, free: 70.1 MB / 378.7 MB Notification: Performance of Templates: time 0.04088/1.699, allocations: 17.89 MB / 0.5554 GB, free: 52.9 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches