Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking.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.001542/0.001542, allocations: 107.1 kB / 20.44 MB, free: 1.324 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.001735/0.001735, allocations: 197.5 kB / 23.72 MB, free: 4.492 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.493/1.493, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2409/0.2409, allocations: 44.93 MB / 358.8 MB, free: 6.094 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Translational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Translational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Translational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Translational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002108/0.002108, allocations: 64.17 kB / 0.493 GB, free: 10.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.391/0.3931, allocations: 65.48 MB / 0.5569 GB, free: 7.363 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Translational.TestBraking): time 0.004461/0.3976, allocations: 2.689 MB / 0.5596 GB, free: 4.891 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001971/0.3996, allocations: 0.9465 MB / 0.5605 GB, free: 3.941 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001889/0.3997, allocations: 15.94 kB / 0.5605 GB, free: 3.926 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002083/0.4, allocations: 59.38 kB / 0.5606 GB, free: 3.867 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000214/0.4002, allocations: 99.11 kB / 0.5607 GB, free: 3.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005539/0.4007, allocations: 163.5 kB / 0.5608 GB, free: 3.609 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004505/0.4012, allocations: 386.2 kB / 0.5612 GB, free: 3.23 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001956/0.4014, allocations: 59.17 kB / 0.5612 GB, free: 3.168 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001739/0.4015, allocations: 143.5 kB / 0.5614 GB, free: 3.027 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000262/0.4018, allocations: 139.2 kB / 0.5615 GB, free: 2.891 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.674e-05/0.4019, allocations: 28 kB / 0.5615 GB, free: 2.863 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001258/0.402, allocations: 51.98 kB / 0.5616 GB, free: 2.812 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.137e-05/0.402, allocations: 59.77 kB / 0.5616 GB, free: 2.754 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001443/0.4022, allocations: 143.3 kB / 0.5618 GB, free: 2.613 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004633/0.4026, allocations: 390.3 kB / 0.5622 GB, free: 2.23 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.4026, allocations: 4 kB / 0.5622 GB, free: 2.227 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.4027, allocations: 4 kB / 0.5622 GB, free: 2.223 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.4027, allocations: 0 / 0.5622 GB, free: 2.223 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001006/0.4037, allocations: 0.5519 MB / 0.5627 GB, free: 1.641 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.4037, allocations: 12.03 kB / 0.5627 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.06e-05/0.4038, allocations: 66.72 kB / 0.5628 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002826/0.4041, allocations: 60.62 kB / 0.5628 GB, free: 1.496 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004302/0.4045, allocations: 218.9 kB / 0.563 GB, free: 1.254 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.21e-05/0.4045, allocations: 21.03 kB / 0.5631 GB, free: 1.234 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.157e-05/0.4046, allocations: 48.02 kB / 0.5631 GB, free: 1.188 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005138/0.4051, allocations: 310.3 kB / 0.5634 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.4051, allocations: 0 / 0.5634 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.943e-05/0.4052, allocations: 16 kB / 0.5634 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.4052, allocations: 8 kB / 0.5634 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003748/0.4055, allocations: 195.8 kB / 0.5636 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002056/0.4076, allocations: 1.199 MB / 0.5648 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005726/0.4082, allocations: 316.8 kB / 0.5651 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001711/0.4083, allocations: 108.7 kB / 0.5652 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.709e-05/0.4084, allocations: 8 kB / 0.5652 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.111e-05/0.4084, allocations: 50.47 kB / 0.5652 GB, free: 14.82 MB / 414.1 MB Notification: Performance of pre-optimization done (n=36): time 1.883e-06/0.4084, allocations: 0 / 0.5652 GB, free: 14.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=40): time 0.002625/0.411, allocations: 1.218 MB / 0.5664 GB, free: 13.48 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.4111, allocations: 158.2 kB / 0.5666 GB, free: 13.29 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002626/0.4114, allocations: 248.9 kB / 0.5668 GB, free: 13.03 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.056e-05/0.4114, allocations: 29.7 kB / 0.5669 GB, free: 13 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001722/0.4116, allocations: 188.5 kB / 0.567 GB, free: 12.81 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001472/0.4117, allocations: 154.6 kB / 0.5672 GB, free: 12.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001392/0.4119, allocations: 82.19 kB / 0.5673 GB, free: 12.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002341/0.4121, allocations: 346.8 kB / 0.5676 GB, free: 12.22 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001852/0.4123, allocations: 92.95 kB / 0.5677 GB, free: 12.13 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003285/0.4126, allocations: 246.9 kB / 0.5679 GB, free: 11.82 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005633/0.4132, allocations: 374.8 kB / 0.5683 GB, free: 11.39 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.4132, allocations: 0 / 0.5683 GB, free: 11.39 MB / 414.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000696/0.4139, allocations: 421.8 kB / 0.5687 GB, free: 10.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.4139, allocations: 11.94 kB / 0.5687 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.4139, allocations: 7.938 kB / 0.5687 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.073e-05/0.414, allocations: 8 kB / 0.5687 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004244/0.4144, allocations: 115.8 kB / 0.5688 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/0.4144, allocations: 4 kB / 0.5688 GB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002096/0.4146, allocations: 20.36 kB / 0.5688 GB, free: 10.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.524e-05/0.4146, allocations: 27.94 kB / 0.5689 GB, free: 10.79 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001799/0.4148, allocations: 161.7 kB / 0.569 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/0.4149, allocations: 32.05 kB / 0.569 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002374/0.4152, allocations: 119.3 kB / 0.5692 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.4152, allocations: 7.984 kB / 0.5692 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.4152, allocations: 4 kB / 0.5692 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.4152, allocations: 0 / 0.5692 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001601/0.4168, allocations: 0.9781 MB / 0.5701 GB, free: 9.395 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.4168, allocations: 4 kB / 0.5701 GB, free: 9.391 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004314/0.4172, allocations: 95.89 kB / 0.5702 GB, free: 9.297 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.4172, allocations: 4 kB / 0.5702 GB, free: 9.293 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.183e-05/0.4173, allocations: 16 kB / 0.5702 GB, free: 9.277 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.829e-06/0.4173, allocations: 11.92 kB / 0.5703 GB, free: 9.266 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.4173, allocations: 4 kB / 0.5703 GB, free: 9.262 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008761/0.4182, allocations: 0.8385 MB / 0.5711 GB, free: 8.375 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.737e-05/0.4182, allocations: 35.69 kB / 0.5711 GB, free: 8.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.81e-05/0.4183, allocations: 16 kB / 0.5711 GB, free: 8.324 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000327/0.4186, allocations: 8 kB / 0.5711 GB, free: 8.316 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.789e-05/0.4187, allocations: 35.83 kB / 0.5712 GB, free: 8.281 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.581e-05/0.4187, allocations: 16 kB / 0.5712 GB, free: 8.266 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001658/0.4189, allocations: 160.5 kB / 0.5713 GB, free: 8.109 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4189, allocations: 0 / 0.5713 GB, free: 8.109 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005914/0.4194, allocations: 84 kB / 0.5714 GB, free: 8.027 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 11 (mass5.s,mass5.v,heatCapacitor.T,mass4.s,mass4.v,mass3.s,mass3.v,mass2.s,mass2.v,mass1.s,mass1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001266/0.4207, allocations: 1.383 MB / 0.5728 GB, free: 6.594 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005009/0.4212, allocations: 267.9 kB / 0.573 GB, free: 6.332 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4212, allocations: 0.75 kB / 0.573 GB, free: 6.332 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001945/0.4214, allocations: 132 kB / 0.5731 GB, free: 6.203 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008814/0.4223, allocations: 83.95 kB / 0.5732 GB, free: 6.129 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005338/0.4276, allocations: 4.04 MB / 0.5772 GB, free: 1.82 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000234/0.4279, allocations: 185.9 kB / 0.5773 GB, free: 1.617 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002148/0.4281, allocations: 43.27 kB / 0.5774 GB, free: 1.574 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000189/0.4283, allocations: 107.4 kB / 0.5775 GB, free: 1.473 MB / 414.1 MB Notification: Performance of SimCode: time 1.573e-06/0.4283, allocations: 0 / 0.5775 GB, free: 1.473 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03885/0.4671, allocations: 7.251 MB / 0.5846 GB, free: 10.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.88, allocations: 10.5 kB / 0.5846 GB, free: 10.39 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Translational_TestBraking_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Translational_TestBraking.fmu > ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Translational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking.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: 14.998834611847997]