Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 118.9 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001693/0.001693, allocations: 199.3 kB / 20.74 MB, free: 2.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.465/1.465, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001738/0.001738, allocations: 47.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1042, allocations: 53.32 MB / 426.3 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006578/0.1108, allocations: 4.49 MB / 430.8 MB, free: 280 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1999/0.3107, allocations: 1.576 MB / 432.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004521/0.3111, allocations: 17.03 kB / 432.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000401/0.3115, allocations: 135.7 kB / 432.5 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005603/0.3121, allocations: 282.7 kB / 432.8 MB, free: 7.449 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009517/0.313, allocations: 420.9 kB / 433.2 MB, free: 7.434 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001182/0.3142, allocations: 1.175 MB / 434.4 MB, free: 7.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000311/0.3145, allocations: 188 kB / 434.6 MB, free: 7.191 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007466/0.3153, allocations: 0.4989 MB / 435.1 MB, free: 7.121 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006233/0.3159, allocations: 0.5421 MB / 435.6 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001582/0.3161, allocations: 93.84 kB / 435.7 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003397/0.3164, allocations: 160.5 kB / 435.9 MB, free: 7.016 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002439/0.3166, allocations: 240 kB / 436.1 MB, free: 6.879 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004037/0.317, allocations: 472.7 kB / 436.5 MB, free: 6.605 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001337/0.3184, allocations: 1.131 MB / 437.7 MB, free: 6.199 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.3184, allocations: 0 / 437.7 MB, free: 6.199 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.3184, allocations: 2.719 kB / 437.7 MB, free: 6.199 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.835e-05/0.3184, allocations: 0 / 437.7 MB, free: 6.199 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.3217, allocations: 1.351 MB / 439 MB, free: 5.398 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.3218, allocations: 9.781 kB / 439 MB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001407/0.3219, allocations: 114.8 kB / 439.2 MB, free: 5.316 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005172/0.3224, allocations: 120.9 kB / 439.3 MB, free: 5.266 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006843/0.3231, allocations: 470 kB / 439.7 MB, free: 4.922 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.029e-05/0.3231, allocations: 55.38 kB / 439.8 MB, free: 4.898 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001448/0.3233, allocations: 74.44 kB / 439.9 MB, free: 4.871 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001695/0.325, allocations: 0.8036 MB / 440.7 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.066e-05/0.325, allocations: 7.281 kB / 440.7 MB, free: 4.555 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.798e-05/0.3251, allocations: 30.62 kB / 440.7 MB, free: 4.531 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.657e-05/0.3251, allocations: 16.97 kB / 440.7 MB, free: 4.531 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001997/0.3271, allocations: 0.8427 MB / 441.6 MB, free: 4.266 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004349/0.3315, allocations: 2.41 MB / 444 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.333, allocations: 0.6927 MB / 444.7 MB, free: 2.617 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008738/0.3338, allocations: 415 kB / 445.1 MB, free: 2.457 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.789e-05/0.3339, allocations: 16.28 kB / 445.1 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001125/0.335, allocations: 0.5322 MB / 445.6 MB, free: 2.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.445e-06/0.335, allocations: 4 kB / 445.6 MB, free: 2.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.01096/0.346, allocations: 4.163 MB / 449.8 MB, free: 252 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.919e-05/0.346, allocations: 65.81 kB / 449.8 MB, free: 188 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005633/0.3466, allocations: 428.6 kB / 450.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001288/0.3467, allocations: 57.78 kB / 450.3 MB, free: 15.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002652/0.347, allocations: 289.2 kB / 450.6 MB, free: 15.69 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003663/0.3474, allocations: 387 kB / 451 MB, free: 15.4 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003583/0.3477, allocations: 190.5 kB / 451.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001919/0.3479, allocations: 381.1 kB / 451.5 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009545/0.3489, allocations: 410 kB / 451.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001058/0.3499, allocations: 0.5097 MB / 452.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001697/0.3516, allocations: 0.7427 MB / 453.2 MB, free: 14.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.3516, allocations: 1.531 kB / 453.2 MB, free: 14.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003334/0.355, allocations: 1.288 MB / 454.5 MB, free: 13.65 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/0.355, allocations: 5.25 kB / 454.5 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.355, allocations: 1.656 kB / 454.5 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001133/0.3561, allocations: 0.5384 MB / 455 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007833/0.3569, allocations: 200.8 kB / 455.2 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004597/0.3615, allocations: 3.4 MB / 458.6 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00139/0.3629, allocations: 175 kB / 458.8 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.008e-05/0.363, allocations: 36.48 kB / 458.8 MB, free: 10.14 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.0005188/0.3635, allocations: 235.3 kB / 459.1 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001753/0.3637, allocations: 80.41 kB / 459.1 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002759/0.3639, allocations: 107.8 kB / 459.2 MB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.789e-06/0.364, allocations: 10.38 kB / 459.3 MB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.509e-05/0.364, allocations: 1.594 kB / 459.3 MB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.364, allocations: 3.984 kB / 459.3 MB, free: 9.809 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005286/0.3693, allocations: 2.465 MB / 461.7 MB, free: 8.121 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.3693, allocations: 2.438 kB / 461.7 MB, free: 8.121 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008455/0.3701, allocations: 177.8 kB / 461.9 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001213/0.3713, allocations: 0.5039 MB / 462.4 MB, free: 7.809 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001217/0.3715, allocations: 32.72 kB / 462.4 MB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004322/0.3758, allocations: 3.192 MB / 465.6 MB, free: 4.852 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.3758, allocations: 2.875 kB / 465.6 MB, free: 4.852 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004128/0.3799, allocations: 1.757 MB / 467.4 MB, free: 3.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004837/0.3804, allocations: 239.9 kB / 467.6 MB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001465/0.3805, allocations: 32.16 kB / 467.7 MB, free: 3.602 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001377/0.3819, allocations: 202.6 kB / 467.9 MB, free: 3.508 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009581/0.3829, allocations: 386.5 kB / 468.2 MB, free: 3.277 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/0.383, allocations: 43.5 kB / 468.3 MB, free: 3.258 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003772/0.3834, allocations: 285.2 kB / 468.6 MB, free: 3.086 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3834, allocations: 0 / 468.6 MB, free: 3.086 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008756/0.3842, allocations: 250.3 kB / 468.8 MB, free: 3.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.005416/0.3896, allocations: 2.6 MB / 471.4 MB, free: 1.383 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002628/0.3923, allocations: 1.089 MB / 472.5 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.3923, allocations: 1.375 kB / 472.5 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001654/0.3939, allocations: 0.7275 MB / 473.2 MB, free: 276 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001001/0.3949, allocations: 154.7 kB / 473.4 MB, free: 128 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01441/0.4093, allocations: 7.271 MB / 480.6 MB, free: 8.676 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006161/0.41, allocations: 0.9479 MB / 481.6 MB, free: 7.699 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003898/0.4104, allocations: 85.69 kB / 481.7 MB, free: 7.613 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004359/0.4108, allocations: 267.3 kB / 481.9 MB, free: 7.352 MB / 382.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4108, allocations: 0 / 481.9 MB, free: 7.352 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06384/0.4746, allocations: 24.17 MB / 0.4942 GB, free: 15.39 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.54/13.01, allocations: 4.062 kB / 0.4942 GB, free: 15.39 MB / 414.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_HeatLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 15.647984566865489]