Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001282/0.001282, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001344/0.001344, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 55.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.3466, allocations: 50.54 MB / 409.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.00641/0.353, allocations: 4.469 MB / 413.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003319/0.3564, allocations: 1.57 MB / 415.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004009/0.3568, allocations: 11.94 kB / 415.3 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000434/0.3573, allocations: 138.7 kB / 415.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005723/0.3579, allocations: 269.7 kB / 415.7 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001019/0.3589, allocations: 426.8 kB / 416.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001127/0.36, allocations: 1.17 MB / 417.3 MB, free: 9.539 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003761/0.3604, allocations: 261.7 kB / 417.5 MB, free: 9.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000647/0.3611, allocations: 0.4985 MB / 418 MB, free: 8.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006315/0.3617, allocations: 0.5331 MB / 418.6 MB, free: 8.234 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001504/0.3619, allocations: 96 kB / 418.7 MB, free: 8.141 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003315/0.3622, allocations: 168 kB / 418.8 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002473/0.3625, allocations: 243.3 kB / 419.1 MB, free: 7.738 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004373/0.3629, allocations: 465.8 kB / 419.5 MB, free: 7.281 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001098/0.364, allocations: 1.119 MB / 420.6 MB, free: 6.164 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.364, allocations: 0 / 420.6 MB, free: 6.164 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.364, allocations: 0 / 420.6 MB, free: 6.164 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.3641, allocations: 0 / 420.6 MB, free: 6.164 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.003199/0.3673, allocations: 1.329 MB / 422 MB, free: 4.781 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.3673, allocations: 12.03 kB / 422 MB, free: 4.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005078/0.3678, allocations: 115.9 kB / 422.1 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006578/0.3685, allocations: 473.5 kB / 422.6 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.985e-05/0.3686, allocations: 54.38 kB / 422.6 MB, free: 4.105 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001303/0.3687, allocations: 80.03 kB / 422.7 MB, free: 4.027 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001514/0.3702, allocations: 0.7959 MB / 423.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.912e-05/0.3703, allocations: 3.906 kB / 423.5 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.527e-05/0.3704, allocations: 36 kB / 423.5 MB, free: 3.184 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.431e-05/0.3704, allocations: 16 kB / 423.5 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002129/0.3725, allocations: 0.8431 MB / 424.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004577/0.3771, allocations: 2.4 MB / 426.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001514/0.3786, allocations: 0.7281 MB / 427.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001082/0.3797, allocations: 460.3 kB / 428 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.283e-05/0.3798, allocations: 12.98 kB / 428 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001333/0.3812, allocations: 0.5361 MB / 428.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 3.337e-06/0.3812, allocations: 3.938 kB / 428.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.0111/0.3923, allocations: 4.165 MB / 432.7 MB, free: 9.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.886e-05/0.3924, allocations: 60.41 kB / 432.7 MB, free: 9.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005423/0.3929, allocations: 421.9 kB / 433.1 MB, free: 9.242 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.845e-05/0.393, allocations: 53.69 kB / 433.2 MB, free: 9.184 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001874/0.3932, allocations: 296.9 kB / 433.5 MB, free: 8.887 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002793/0.3935, allocations: 374.8 kB / 433.9 MB, free: 8.516 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002989/0.3938, allocations: 182.9 kB / 434 MB, free: 8.328 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000201/0.394, allocations: 374.8 kB / 434.4 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001011/0.395, allocations: 418.4 kB / 434.8 MB, free: 7.547 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001172/0.3962, allocations: 0.511 MB / 435.3 MB, free: 7.016 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001704/0.3979, allocations: 0.7402 MB / 436.1 MB, free: 6.258 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.398, allocations: 3.984 kB / 436.1 MB, free: 6.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003108/0.4011, allocations: 1.295 MB / 437.4 MB, free: 4.941 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.4011, allocations: 4 kB / 437.4 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.4011, allocations: 0 / 437.4 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001061/0.4022, allocations: 0.5411 MB / 437.9 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008058/0.403, allocations: 195.7 kB / 438.1 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004193/0.4072, allocations: 3.406 MB / 441.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001167/0.4084, allocations: 171.8 kB / 441.7 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-05/0.4085, allocations: 36 kB / 441.7 MB, free: 408 kB / 350.1 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,massWithStopAndFriction.stopped,massWithStopAndFriction.mode,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.locked,massWithStopAndFriction.startBackward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,elastoGap.contact,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,9), (1,5), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0004121/0.4089, allocations: 225.7 kB / 441.9 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001492/0.409, allocations: 79 kB / 442 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002268/0.4093, allocations: 111.4 kB / 442.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/0.4093, allocations: 12 kB / 442.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.4093, allocations: 3.938 kB / 442.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.4093, allocations: 3.984 kB / 442.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004615/0.4139, allocations: 2.48 MB / 444.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.414, allocations: 0 / 444.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007887/0.4148, allocations: 175.8 kB / 444.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009757/0.4158, allocations: 0.5021 MB / 445.3 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.957e-05/0.4158, allocations: 35.97 kB / 445.3 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003722/0.4196, allocations: 3.175 MB / 448.5 MB, free: 9.289 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/0.4196, allocations: 7.938 kB / 448.5 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003637/0.4232, allocations: 1.772 MB / 450.3 MB, free: 7.465 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003998/0.4237, allocations: 236.1 kB / 450.5 MB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001423/0.4238, allocations: 32 kB / 450.5 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001268/0.4251, allocations: 199.7 kB / 450.7 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009178/0.426, allocations: 384.4 kB / 451.1 MB, free: 6.613 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.425e-05/0.4261, allocations: 43.97 kB / 451.1 MB, free: 6.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003709/0.4265, allocations: 287.1 kB / 451.4 MB, free: 6.285 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4265, allocations: 0 / 451.4 MB, free: 6.285 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007835/0.4273, allocations: 248 kB / 451.7 MB, free: 6.043 MB / 366.1 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 (90): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,7), (1,8), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008956/0.4282, allocations: 406.2 kB / 452.1 MB, free: 5.754 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002473/0.4307, allocations: 1.157 MB / 453.2 MB, free: 4.586 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.4307, allocations: 0 / 453.2 MB, free: 4.586 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001541/0.4322, allocations: 0.7703 MB / 454 MB, free: 3.805 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008601/0.4331, allocations: 159.1 kB / 454.1 MB, free: 3.656 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003942/0.4371, allocations: 1.999 MB / 456.1 MB, free: 1.605 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004739/0.4375, allocations: 0.9441 MB / 457.1 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003285/0.4379, allocations: 85.69 kB / 457.2 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002381/0.4381, allocations: 67.42 kB / 457.2 MB, free: 496 kB / 366.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4381, allocations: 0 / 457.2 MB, free: 496 kB / 366.1 MB Notification: Performance of Templates: time 0.02627/0.4644, allocations: 17.73 MB / 475 MB, free: 14.82 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches