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.001473/0.001473, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001698/0.001698, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 58.25 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09581/0.09709, allocations: 50.54 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005731/0.1029, allocations: 4.466 MB / 363.4 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003248/0.1061, allocations: 1.582 MB / 365 MB, free: 7.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000392/0.1066, allocations: 11.94 kB / 365 MB, free: 7.258 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005578/0.1072, allocations: 138.7 kB / 365.1 MB, free: 7.121 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006582/0.1078, allocations: 265.7 kB / 365.4 MB, free: 6.859 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001219/0.1091, allocations: 430.6 kB / 365.8 MB, free: 6.441 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001133/0.1102, allocations: 1.174 MB / 367 MB, free: 5.258 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004238/0.1106, allocations: 261.7 kB / 367.2 MB, free: 4.996 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006711/0.1113, allocations: 0.4946 MB / 367.7 MB, free: 4.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006295/0.112, allocations: 0.5331 MB / 368.2 MB, free: 3.965 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001547/0.1121, allocations: 96 kB / 368.3 MB, free: 3.871 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000367/0.1125, allocations: 156 kB / 368.5 MB, free: 3.719 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003106/0.1128, allocations: 243.2 kB / 368.7 MB, free: 3.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004883/0.1133, allocations: 465.8 kB / 369.2 MB, free: 3.023 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001235/0.1146, allocations: 1.121 MB / 370.3 MB, free: 1.898 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.1146, allocations: 0 / 370.3 MB, free: 1.898 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1146, allocations: 0 / 370.3 MB, free: 1.898 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.097e-05/0.1146, allocations: 0 / 370.3 MB, free: 1.898 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.0031/0.1177, allocations: 1.326 MB / 371.6 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.1178, allocations: 12.03 kB / 371.6 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004763/0.1182, allocations: 111.9 kB / 371.7 MB, free: 412 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1605/0.2788, allocations: 476.1 kB / 372.2 MB, free: 19.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.822e-05/0.2789, allocations: 54.06 kB / 372.3 MB, free: 19.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001536/0.279, allocations: 72.25 kB / 372.3 MB, free: 19.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001716/0.2808, allocations: 0.7971 MB / 373.1 MB, free: 19.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.928e-05/0.2808, allocations: 6.484 kB / 373.1 MB, free: 19.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.804e-05/0.2809, allocations: 30.36 kB / 373.2 MB, free: 19.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.594e-05/0.2809, allocations: 16.25 kB / 373.2 MB, free: 19.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001902/0.2828, allocations: 0.8418 MB / 374 MB, free: 19.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004064/0.2869, allocations: 2.406 MB / 376.4 MB, free: 18.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001379/0.2883, allocations: 0.7332 MB / 377.2 MB, free: 18.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008476/0.2891, allocations: 455 kB / 377.6 MB, free: 17.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.505e-05/0.2892, allocations: 15.36 kB / 377.6 MB, free: 17.86 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001067/0.2903, allocations: 0.5401 MB / 378.2 MB, free: 17.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 3.106e-06/0.2903, allocations: 2.625 kB / 378.2 MB, free: 17.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.01293/0.3033, allocations: 4.16 MB / 382.3 MB, free: 15.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/0.3033, allocations: 66.78 kB / 382.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008433/0.3042, allocations: 419.1 kB / 382.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001431/0.3043, allocations: 57.52 kB / 382.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002485/0.3046, allocations: 277.5 kB / 383.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003893/0.305, allocations: 378.9 kB / 383.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004851/0.3055, allocations: 185.6 kB / 383.7 MB, free: 14.78 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.3056, allocations: 378.5 kB / 384 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001505/0.3072, allocations: 412.8 kB / 384.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001698/0.3089, allocations: 0.5102 MB / 385 MB, free: 14.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002518/0.3114, allocations: 0.7432 MB / 385.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.3114, allocations: 0 / 385.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.005014/0.3165, allocations: 1.297 MB / 387 MB, free: 13.17 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.564e-05/0.3165, allocations: 5.281 kB / 387 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.3166, allocations: 1.406 kB / 387 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001806/0.3184, allocations: 0.5429 MB / 387.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/0.3196, allocations: 193.2 kB / 387.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005103/0.3248, allocations: 3.404 MB / 391.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001739/0.3265, allocations: 170.9 kB / 391.3 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001464/0.3267, allocations: 40.89 kB / 391.3 MB, free: 9.977 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.0005511/0.3272, allocations: 225.6 kB / 391.6 MB, free: 9.793 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002584/0.3275, allocations: 76.12 kB / 391.6 MB, free: 9.754 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002831/0.3278, allocations: 111.8 kB / 391.8 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.656e-05/0.3278, allocations: 10.88 kB / 391.8 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.801e-05/0.3279, allocations: 0 / 391.8 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.384e-05/0.3279, allocations: 5.109 kB / 391.8 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006772/0.3347, allocations: 2.487 MB / 394.3 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.236e-06/0.3347, allocations: 2.531 kB / 394.3 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001081/0.3358, allocations: 182.2 kB / 394.4 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001311/0.3371, allocations: 0.4939 MB / 394.9 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001236/0.3372, allocations: 36.34 kB / 395 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004504/0.3417, allocations: 3.184 MB / 398.2 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.3418, allocations: 2.844 kB / 398.2 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005131/0.3469, allocations: 1.769 MB / 399.9 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005285/0.3475, allocations: 235 kB / 400.2 MB, free: 3.457 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002182/0.3477, allocations: 35.84 kB / 400.2 MB, free: 3.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001862/0.3496, allocations: 205.7 kB / 400.4 MB, free: 3.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001286/0.3509, allocations: 374 kB / 400.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001391/0.351, allocations: 43.88 kB / 400.8 MB, free: 3.094 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004117/0.3514, allocations: 288.9 kB / 401.1 MB, free: 2.922 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.3515, allocations: 0 / 401.1 MB, free: 2.922 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001244/0.3527, allocations: 248.1 kB / 401.3 MB, free: 2.848 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.001255/0.354, allocations: 412.8 kB / 401.7 MB, free: 2.574 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003188/0.3572, allocations: 1.153 MB / 402.9 MB, free: 1.418 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3572, allocations: 4.062 kB / 402.9 MB, free: 1.414 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002195/0.3594, allocations: 0.7688 MB / 403.6 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001252/0.3607, allocations: 149.3 kB / 403.8 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005208/0.3659, allocations: 2.013 MB / 405.8 MB, free: 14.44 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006907/0.3666, allocations: 0.9441 MB / 406.8 MB, free: 13.46 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004158/0.367, allocations: 81.7 kB / 406.8 MB, free: 13.38 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002021/0.3672, allocations: 71.42 kB / 406.9 MB, free: 13.31 MB / 318.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3673, allocations: 0 / 406.9 MB, free: 13.31 MB / 318.1 MB Notification: Performance of Templates: time 0.02943/0.3967, allocations: 17.55 MB / 424.4 MB, free: 11.86 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches