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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008823/0.0008823, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008878/0.0008878, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9116/0.9116, allocations: 177 MB / 204.1 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.137e-06/1.043e-05, allocations: 2.281 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.00355/0.00356, allocations: 4.067 MB / 328.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002033/0.005593, allocations: 1.538 MB / 330.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002636/0.005857, allocations: 15.88 kB / 330.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000323/0.00618, allocations: 142.6 kB / 330.3 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004311/0.006611, allocations: 285.5 kB / 330.5 MB, free: 9.812 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006877/0.007299, allocations: 450.3 kB / 331 MB, free: 9.375 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008181/0.008117, allocations: 1.205 MB / 332.2 MB, free: 8.164 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002755/0.008392, allocations: 170.3 kB / 332.4 MB, free: 7.988 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008683/0.009261, allocations: 0.6979 MB / 333.1 MB, free: 7.289 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004897/0.00975, allocations: 438.9 kB / 333.5 MB, free: 6.859 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001153/0.009866, allocations: 96 kB / 333.6 MB, free: 6.766 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002307/0.0101, allocations: 163.9 kB / 333.7 MB, free: 6.605 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001683/0.01026, allocations: 247.2 kB / 334 MB, free: 6.363 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002183/0.01048, allocations: 347.2 kB / 334.3 MB, free: 6.023 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009255/0.01141, allocations: 1.207 MB / 335.5 MB, free: 4.812 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.01141, allocations: 0 / 335.5 MB, free: 4.812 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.01141, allocations: 0 / 335.5 MB, free: 4.812 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.01142, allocations: 0 / 335.5 MB, free: 4.812 MB / 298.7 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.001871/0.01329, allocations: 1.387 MB / 336.9 MB, free: 3.387 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.01334, allocations: 15.98 kB / 336.9 MB, free: 3.371 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001096/0.01345, allocations: 114.7 kB / 337 MB, free: 3.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002981/0.01375, allocations: 124.3 kB / 337.2 MB, free: 3.129 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005084/0.01426, allocations: 415.2 kB / 337.6 MB, free: 2.695 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.179e-05/0.0143, allocations: 50.38 kB / 337.6 MB, free: 2.645 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.236e-05/0.01439, allocations: 72.33 kB / 337.7 MB, free: 2.574 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009979/0.01539, allocations: 0.804 MB / 338.5 MB, free: 1.762 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.215e-05/0.01541, allocations: 8 kB / 338.5 MB, free: 1.754 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.523e-05/0.01546, allocations: 27.98 kB / 338.5 MB, free: 1.727 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.01548, allocations: 20 kB / 338.5 MB, free: 1.707 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001434/0.01691, allocations: 0.8392 MB / 339.4 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002524/0.01944, allocations: 1.955 MB / 341.3 MB, free: 14.84 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009001/0.02034, allocations: 0.6864 MB / 342 MB, free: 14.14 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005164/0.02085, allocations: 420.3 kB / 342.4 MB, free: 13.72 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.212e-05/0.0209, allocations: 12.94 kB / 342.5 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006532/0.02156, allocations: 0.5361 MB / 343 MB, free: 13.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=90): time 2.394e-06/0.02156, allocations: 0 / 343 MB, free: 13.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=110): time 0.006172/0.02773, allocations: 3.786 MB / 346.8 MB, free: 9.348 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.677e-05/0.02777, allocations: 68.34 kB / 346.8 MB, free: 9.266 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002966/0.02806, allocations: 429.8 kB / 347.3 MB, free: 8.844 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.897e-05/0.02812, allocations: 53.7 kB / 347.3 MB, free: 8.785 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.02825, allocations: 281.6 kB / 347.6 MB, free: 8.504 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001897/0.02844, allocations: 392.7 kB / 348 MB, free: 8.117 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001911/0.02863, allocations: 186.9 kB / 348.2 MB, free: 7.926 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.02874, allocations: 378.8 kB / 348.5 MB, free: 7.547 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000541/0.02928, allocations: 414.4 kB / 348.9 MB, free: 7.145 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005884/0.02987, allocations: 0.5111 MB / 349.4 MB, free: 6.613 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009324/0.0308, allocations: 0.7479 MB / 350.2 MB, free: 5.852 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.0308, allocations: 0 / 350.2 MB, free: 5.852 MB / 314.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.001691/0.03249, allocations: 1.284 MB / 351.5 MB, free: 4.551 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.03251, allocations: 11.98 kB / 351.5 MB, free: 4.539 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.03252, allocations: 0 / 351.5 MB, free: 4.539 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006635/0.03318, allocations: 0.5333 MB / 352 MB, free: 3.996 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003782/0.03356, allocations: 203.6 kB / 352.2 MB, free: 3.797 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002655/0.03621, allocations: 3.28 MB / 355.5 MB, free: 356 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005146/0.03673, allocations: 171.9 kB / 355.7 MB, free: 184 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.014e-05/0.03678, allocations: 39.98 kB / 355.7 MB, free: 144 kB / 314.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,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.0002455/0.03702, allocations: 225.6 kB / 355.9 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.495e-05/0.03711, allocations: 79.52 kB / 356 MB, free: 15.83 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001034/0.03721, allocations: 107.2 kB / 356.1 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.249e-06/0.03722, allocations: 15.94 kB / 356.1 MB, free: 15.71 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.03722, allocations: 0 / 356.1 MB, free: 15.71 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.03723, allocations: 7.969 kB / 356.1 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002732/0.03996, allocations: 2.227 MB / 358.4 MB, free: 13.39 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/0.03997, allocations: 4 kB / 358.4 MB, free: 13.39 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003848/0.04035, allocations: 171.8 kB / 358.5 MB, free: 13.22 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006423/0.04099, allocations: 0.4944 MB / 359 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.647e-05/0.04105, allocations: 39.95 kB / 359.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002438/0.04349, allocations: 3.076 MB / 362.1 MB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.04349, allocations: 4 kB / 362.1 MB, free: 9.434 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002183/0.04567, allocations: 1.761 MB / 363.9 MB, free: 7.625 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000237/0.04591, allocations: 159.4 kB / 364.1 MB, free: 7.469 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.869e-05/0.04599, allocations: 32 kB / 364.1 MB, free: 7.438 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005934/0.04658, allocations: 199.7 kB / 364.3 MB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005798/0.04716, allocations: 400.2 kB / 364.7 MB, free: 6.852 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.387e-05/0.04722, allocations: 43.95 kB / 364.7 MB, free: 6.809 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002052/0.04742, allocations: 291.1 kB / 365 MB, free: 6.523 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.04742, allocations: 0 / 365 MB, free: 6.523 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004694/0.04789, allocations: 243.9 kB / 365.2 MB, free: 6.285 MB / 330.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 (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.003198/0.05109, allocations: 2.595 MB / 367.8 MB, free: 3.758 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001412/0.0525, allocations: 1.094 MB / 368.9 MB, free: 2.648 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.0525, allocations: 0 / 368.9 MB, free: 2.648 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008934/0.0534, allocations: 0.7273 MB / 369.7 MB, free: 1.91 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005195/0.05391, allocations: 161.2 kB / 369.8 MB, free: 1.758 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007959/0.06187, allocations: 7.111 MB / 376.9 MB, free: 10.45 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002283/0.0621, allocations: 357.5 kB / 377.3 MB, free: 10.07 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002286/0.06233, allocations: 85.69 kB / 377.4 MB, free: 9.984 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002699/0.0626, allocations: 264.4 kB / 377.6 MB, free: 9.723 MB / 346.7 MB Notification: Performance of SimCode: time 5.71e-07/0.0626, allocations: 0 / 377.6 MB, free: 9.723 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04007/0.1027, allocations: 23.53 MB / 401.2 MB, free: 2.301 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.023/8.125, allocations: 15.27 kB / 401.2 MB, free: 2.289 MB / 362.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_HeatLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.928038565441966]