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.001271/0.001271, allocations: 117.3 kB / 18.5 MB, free: 4.434 MB / 14.72 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.001318/0.001318, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 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 1.468/1.468, allocations: 230.2 MB / 254.5 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001721/0.001721, allocations: 63.89 kB / 373.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.118, allocations: 53.32 MB / 426.7 MB, free: 4.988 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006248/0.1243, allocations: 4.491 MB / 431.1 MB, free: 488 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2498/0.3741, allocations: 1.574 MB / 432.7 MB, free: 7.117 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005693/0.3747, allocations: 12.88 kB / 432.7 MB, free: 7.117 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004696/0.3752, allocations: 138.6 kB / 432.9 MB, free: 7.113 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006473/0.3758, allocations: 280.2 kB / 433.1 MB, free: 7.062 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.3768, allocations: 424.2 kB / 433.6 MB, free: 7.047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001119/0.3779, allocations: 1.175 MB / 434.7 MB, free: 6.848 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003057/0.3783, allocations: 186.6 kB / 434.9 MB, free: 6.809 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007129/0.379, allocations: 0.4994 MB / 435.4 MB, free: 6.738 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007832/0.3798, allocations: 0.5343 MB / 435.9 MB, free: 6.645 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001828/0.3799, allocations: 94.03 kB / 436 MB, free: 6.645 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004523/0.3804, allocations: 161.7 kB / 436.2 MB, free: 6.641 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002799/0.3807, allocations: 241.2 kB / 436.4 MB, free: 6.609 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004633/0.3811, allocations: 470.3 kB / 436.9 MB, free: 6.484 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001513/0.3826, allocations: 1.128 MB / 438 MB, free: 6.176 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.3826, allocations: 0 / 438 MB, free: 6.176 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3826, allocations: 3.656 kB / 438 MB, free: 6.176 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.768e-05/0.3827, allocations: 0.5625 kB / 438 MB, free: 6.176 MB / 350.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.003302/0.386, allocations: 1.353 MB / 439.4 MB, free: 5.379 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.386, allocations: 10.69 kB / 439.4 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001529/0.3862, allocations: 114.5 kB / 439.5 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005222/0.3867, allocations: 118.9 kB / 439.6 MB, free: 5.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008205/0.3875, allocations: 481.4 kB / 440.1 MB, free: 4.895 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.551e-05/0.3876, allocations: 52.53 kB / 440.1 MB, free: 4.875 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001359/0.3877, allocations: 73.58 kB / 440.2 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00168/0.3894, allocations: 0.7993 MB / 441 MB, free: 4.539 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.525e-05/0.3894, allocations: 14.36 kB / 441 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.745e-05/0.3895, allocations: 26.88 kB / 441 MB, free: 4.508 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.3895, allocations: 16.28 kB / 441.1 MB, free: 4.508 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001935/0.3914, allocations: 0.8395 MB / 441.9 MB, free: 4.246 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004717/0.3962, allocations: 2.402 MB / 444.3 MB, free: 2.891 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001761/0.3979, allocations: 0.6946 MB / 445 MB, free: 2.602 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009281/0.3989, allocations: 419.3 kB / 445.4 MB, free: 2.438 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.35e-05/0.3989, allocations: 10.09 kB / 445.4 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001185/0.4001, allocations: 0.5357 MB / 446 MB, free: 2.219 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.835e-06/0.4001, allocations: 0 / 446 MB, free: 2.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.01107/0.4112, allocations: 4.17 MB / 450.1 MB, free: 228 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.638e-05/0.4112, allocations: 67.34 kB / 450.2 MB, free: 160 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000666/0.4119, allocations: 425.9 kB / 450.6 MB, free: 15.97 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001307/0.412, allocations: 58.14 kB / 450.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002662/0.4123, allocations: 285.8 kB / 450.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003665/0.4126, allocations: 396.4 kB / 451.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003769/0.413, allocations: 190.2 kB / 451.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002559/0.4133, allocations: 375.4 kB / 451.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001075/0.4144, allocations: 415.5 kB / 452.3 MB, free: 14.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001301/0.4157, allocations: 0.5055 MB / 452.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001947/0.4176, allocations: 0.7443 MB / 453.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.4176, allocations: 2.812 kB / 453.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.004021/0.4216, allocations: 1.284 MB / 454.8 MB, free: 13.69 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.59e-05/0.4217, allocations: 5.562 kB / 454.8 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.4217, allocations: 2.438 kB / 454.8 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001181/0.4229, allocations: 0.5413 MB / 455.4 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008811/0.4237, allocations: 196.1 kB / 455.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00496/0.4287, allocations: 3.405 MB / 459 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00144/0.4301, allocations: 175.8 kB / 459.1 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/0.4302, allocations: 36.19 kB / 459.2 MB, free: 10.19 MB / 366.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.0005741/0.4308, allocations: 225.9 kB / 459.4 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002472/0.4311, allocations: 81.44 kB / 459.5 MB, free: 9.957 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002748/0.4313, allocations: 107.6 kB / 459.6 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.418e-05/0.4314, allocations: 10.91 kB / 459.6 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.955e-05/0.4314, allocations: 0 / 459.6 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.306e-05/0.4314, allocations: 7.984 kB / 459.6 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005799/0.4372, allocations: 2.46 MB / 462.1 MB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.765e-06/0.4372, allocations: 1.312 kB / 462.1 MB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007882/0.438, allocations: 178.5 kB / 462.2 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001088/0.4391, allocations: 0.5007 MB / 462.7 MB, free: 7.867 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001048/0.4392, allocations: 32.91 kB / 462.8 MB, free: 7.844 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004177/0.4434, allocations: 3.194 MB / 466 MB, free: 4.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.4434, allocations: 3 kB / 466 MB, free: 4.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004223/0.4476, allocations: 1.759 MB / 467.7 MB, free: 3.895 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006347/0.4482, allocations: 241.2 kB / 468 MB, free: 3.676 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000228/0.4484, allocations: 31.59 kB / 468 MB, free: 3.656 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001414/0.4499, allocations: 202.7 kB / 468.2 MB, free: 3.562 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001004/0.4509, allocations: 382.2 kB / 468.6 MB, free: 3.336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/0.451, allocations: 42.88 kB / 468.6 MB, free: 3.316 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000491/0.4515, allocations: 285.7 kB / 468.9 MB, free: 3.145 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4515, allocations: 0 / 468.9 MB, free: 3.145 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00104/0.4525, allocations: 255.9 kB / 469.1 MB, free: 3.098 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.00554/0.4581, allocations: 2.604 MB / 471.7 MB, free: 1.438 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003108/0.4612, allocations: 1.085 MB / 472.8 MB, free: 0.875 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/0.4612, allocations: 4.312 kB / 472.8 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00192/0.4631, allocations: 0.7246 MB / 473.6 MB, free: 352 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001399/0.4645, allocations: 152.5 kB / 473.7 MB, free: 204 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01683/0.4813, allocations: 7.286 MB / 481 MB, free: 8.742 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009278/0.4823, allocations: 0.9441 MB / 481.9 MB, free: 7.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005447/0.4828, allocations: 93.62 kB / 482 MB, free: 7.676 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005331/0.4833, allocations: 263.3 kB / 482.3 MB, free: 7.418 MB / 382.1 MB Notification: Performance of SimCode: time 1.743e-06/0.4833, allocations: 0 / 482.3 MB, free: 7.418 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07153/0.5549, allocations: 24.15 MB / 0.4946 GB, free: 15.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.03/13.59, allocations: 11.48 kB / 0.4946 GB, free: 15.42 MB / 414.1 MB " [Timeout remaining time 646] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 16.37866169400513]