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.0009536/0.0009539, allocations: 94 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009882/0.0009884, allocations: 200.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.7 MB / 246.8 MB, free: 11.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002328/0.0002328, allocations: 4 kB / 307.7 MB, free: 0.8008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09587/0.09612, allocations: 51.52 MB / 359.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004879/0.101, allocations: 4.065 MB / 363.3 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002932/0.104, allocations: 1.555 MB / 364.9 MB, free: 7.629 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005098/0.1045, allocations: 11.94 kB / 364.9 MB, free: 7.617 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004396/0.105, allocations: 107.2 kB / 365 MB, free: 7.512 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007947/0.1058, allocations: 242.2 kB / 365.2 MB, free: 7.273 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00118/0.107, allocations: 374.7 kB / 365.6 MB, free: 6.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001594/0.1086, allocations: 1.108 MB / 366.7 MB, free: 5.793 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004338/0.109, allocations: 230.9 kB / 366.9 MB, free: 5.559 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001089/0.1101, allocations: 454.3 kB / 367.4 MB, free: 5.113 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009464/0.1111, allocations: 0.4902 MB / 367.9 MB, free: 4.621 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002475/0.1114, allocations: 48 kB / 367.9 MB, free: 4.574 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005845/0.112, allocations: 115.9 kB / 368 MB, free: 4.461 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003206/0.1123, allocations: 187.3 kB / 368.2 MB, free: 4.277 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006728/0.113, allocations: 439.5 kB / 368.6 MB, free: 3.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001379/0.1144, allocations: 1.047 MB / 369.7 MB, free: 2.789 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1144, allocations: 0 / 369.7 MB, free: 2.789 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1144, allocations: 0 / 369.7 MB, free: 2.789 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.627e-05/0.1144, allocations: 0 / 369.7 MB, free: 2.789 MB / 302.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.003558/0.118, allocations: 1.239 MB / 370.9 MB, free: 1.504 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/0.1181, allocations: 16.03 kB / 370.9 MB, free: 1.488 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006691/0.1187, allocations: 115.9 kB / 371.1 MB, free: 1.375 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008076/0.1196, allocations: 477.4 kB / 371.5 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.473e-05/0.1196, allocations: 50.38 kB / 371.6 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001649/0.1198, allocations: 76.12 kB / 371.6 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1729/0.2927, allocations: 0.8039 MB / 372.4 MB, free: 18.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.426e-05/0.2928, allocations: 7.016 kB / 372.5 MB, free: 18.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001123/0.2929, allocations: 28.98 kB / 372.5 MB, free: 18.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.046e-05/0.293, allocations: 16.69 kB / 372.5 MB, free: 18.85 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002197/0.2952, allocations: 0.8677 MB / 373.4 MB, free: 18.85 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004678/0.2998, allocations: 2.477 MB / 375.8 MB, free: 18.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001472/0.3013, allocations: 0.7488 MB / 376.6 MB, free: 17.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009075/0.3023, allocations: 469.3 kB / 377 MB, free: 17.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.25e-05/0.3023, allocations: 14.19 kB / 377.1 MB, free: 17.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001196/0.3035, allocations: 0.5514 MB / 377.6 MB, free: 17.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 3.496e-06/0.3036, allocations: 0 / 377.6 MB, free: 17.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.01158/0.3151, allocations: 4.404 MB / 382 MB, free: 15.31 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/0.3152, allocations: 63.33 kB / 382.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004984/0.3157, allocations: 417.8 kB / 382.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.329e-05/0.3158, allocations: 58.33 kB / 382.5 MB, free: 15 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/0.316, allocations: 277.4 kB / 382.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002799/0.3163, allocations: 378.2 kB / 383.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001571/0.3164, allocations: 93.58 kB / 383.3 MB, free: 14.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.3165, allocations: 382.2 kB / 383.7 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009601/0.3175, allocations: 424.9 kB / 384.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/0.3186, allocations: 0.5199 MB / 384.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001639/0.3202, allocations: 0.7653 MB / 385.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.227e-06/0.3202, allocations: 5.25 kB / 385.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003082/0.3233, allocations: 1.321 MB / 386.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/0.3233, allocations: 5.562 kB / 386.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.3234, allocations: 2.406 kB / 386.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/0.3244, allocations: 0.5331 MB / 387.2 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007841/0.3252, allocations: 205.9 kB / 387.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003407/0.3287, allocations: 3.271 MB / 390.7 MB, free: 9.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001329/0.33, allocations: 240.1 kB / 390.9 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.488e-05/0.3301, allocations: 37.27 kB / 391 MB, free: 9.773 MB / 302.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.0003584/0.3304, allocations: 235 kB / 391.2 MB, free: 9.582 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.3306, allocations: 76.06 kB / 391.3 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002383/0.3308, allocations: 103.1 kB / 391.4 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.3308, allocations: 14.94 kB / 391.4 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-05/0.3309, allocations: 0 / 391.4 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.3309, allocations: 8.875 kB / 391.4 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004206/0.3351, allocations: 2.533 MB / 393.9 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.3351, allocations: 2.812 kB / 393.9 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007611/0.3359, allocations: 180.6 kB / 394.1 MB, free: 7.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008636/0.3368, allocations: 0.4959 MB / 394.6 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.312e-05/0.3368, allocations: 33.5 kB / 394.6 MB, free: 7.621 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002859/0.3397, allocations: 3.112 MB / 397.7 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.3397, allocations: 5.594 kB / 397.7 MB, free: 4.789 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003245/0.343, allocations: 1.798 MB / 399.5 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003126/0.3433, allocations: 238.7 kB / 399.8 MB, free: 3.555 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001223/0.3434, allocations: 35.47 kB / 399.8 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001359/0.3448, allocations: 267.6 kB / 400.1 MB, free: 3.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007678/0.3456, allocations: 373.1 kB / 400.4 MB, free: 3.215 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.221e-05/0.3457, allocations: 43.33 kB / 400.5 MB, free: 3.195 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002705/0.3459, allocations: 285 kB / 400.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.346, allocations: 5.156 kB / 400.8 MB, free: 3.016 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008261/0.3468, allocations: 239.8 kB / 401 MB, free: 2.859 MB / 302.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.0008609/0.3477, allocations: 424.9 kB / 401.4 MB, free: 2.578 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002267/0.3499, allocations: 1.164 MB / 402.6 MB, free: 1.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.3499, allocations: 0 / 402.6 MB, free: 1.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001333/0.3513, allocations: 0.7856 MB / 403.4 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009621/0.3523, allocations: 146.9 kB / 403.5 MB, free: 480 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004123/0.3564, allocations: 2.518 MB / 406 MB, free: 13.9 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004799/0.3569, allocations: 0.9518 MB / 407 MB, free: 12.92 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004078/0.3573, allocations: 81.7 kB / 407.1 MB, free: 12.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001934/0.3575, allocations: 59.42 kB / 407.1 MB, free: 12.78 MB / 318.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3575, allocations: 0 / 407.1 MB, free: 12.78 MB / 318.1 MB Notification: Performance of Templates: time 0.02505/0.3826, allocations: 15.96 MB / 423.1 MB, free: 12.9 MB / 334.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