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.002108/0.002108, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002769/0.002769, allocations: 214 kB / 24.52 MB, free: 3.914 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.507/1.507, allocations: 230.6 MB / 258.3 MB, free: 7.734 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.2236/0.2236, allocations: 44.93 MB / 359.6 MB, free: 6.035 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Translational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Translational_TestBraking",fmuType="cs",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.002018/0.002018, allocations: 59.91 kB / 0.4938 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.2903, allocations: 65.47 MB / 0.5577 GB, free: 7.324 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Translational.TestBraking): time 0.004299/0.2946, allocations: 2.683 MB / 0.5603 GB, free: 4.832 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001809/0.2964, allocations: 0.9504 MB / 0.5613 GB, free: 3.879 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001759/0.2966, allocations: 7.938 kB / 0.5613 GB, free: 3.871 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001874/0.2968, allocations: 59.44 kB / 0.5613 GB, free: 3.812 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002272/0.297, allocations: 107 kB / 0.5614 GB, free: 3.707 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000523/0.2976, allocations: 159.6 kB / 0.5616 GB, free: 3.551 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004671/0.298, allocations: 386.2 kB / 0.5619 GB, free: 3.172 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001759/0.2982, allocations: 67.17 kB / 0.562 GB, free: 3.102 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002147/0.2984, allocations: 147.5 kB / 0.5621 GB, free: 2.957 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002427/0.2987, allocations: 155.2 kB / 0.5623 GB, free: 2.805 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.828e-05/0.2987, allocations: 28 kB / 0.5623 GB, free: 2.777 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001283/0.2988, allocations: 47.98 kB / 0.5624 GB, free: 2.73 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.828e-05/0.2989, allocations: 63.78 kB / 0.5624 GB, free: 2.668 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001554/0.2991, allocations: 139.3 kB / 0.5626 GB, free: 2.531 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004751/0.2995, allocations: 386.4 kB / 0.5629 GB, free: 2.152 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2995, allocations: 0 / 0.5629 GB, free: 2.152 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2995, allocations: 4 kB / 0.5629 GB, free: 2.148 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.094e-06/0.2995, allocations: 0 / 0.5629 GB, free: 2.148 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.001035/0.3006, allocations: 0.5558 MB / 0.5635 GB, free: 1.562 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.3006, allocations: 11.97 kB / 0.5635 GB, free: 1.551 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.619e-05/0.3006, allocations: 12.84 kB / 0.5635 GB, free: 1.539 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.832e-05/0.3007, allocations: 66.72 kB / 0.5636 GB, free: 1.465 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003094/0.301, allocations: 60.67 kB / 0.5636 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004502/0.3015, allocations: 214.9 kB / 0.5638 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.604e-05/0.3015, allocations: 21.03 kB / 0.5638 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.591e-05/0.3016, allocations: 47.88 kB / 0.5639 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005574/0.3021, allocations: 302.3 kB / 0.5642 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.245e-05/0.3022, allocations: 4 kB / 0.5642 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.131e-05/0.3022, allocations: 12 kB / 0.5642 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.3022, allocations: 11.94 kB / 0.5642 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003788/0.3026, allocations: 195.8 kB / 0.5644 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001966/0.3045, allocations: 1.211 MB / 0.5656 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005809/0.3051, allocations: 320.8 kB / 0.5659 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001674/0.3053, allocations: 104.7 kB / 0.566 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.505e-05/0.3053, allocations: 4 kB / 0.566 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.737e-05/0.3054, allocations: 50.8 kB / 0.566 GB, free: 14.73 MB / 414.1 MB Notification: Performance of pre-optimization done (n=36): time 1.994e-06/0.3054, allocations: 0 / 0.566 GB, free: 14.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=40): time 0.002649/0.308, allocations: 1.219 MB / 0.5672 GB, free: 13.39 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/0.3081, allocations: 170.1 kB / 0.5674 GB, free: 13.19 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000312/0.3085, allocations: 237 kB / 0.5676 GB, free: 12.94 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.996e-05/0.3085, allocations: 29.7 kB / 0.5676 GB, free: 12.91 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.3086, allocations: 180.6 kB / 0.5678 GB, free: 12.73 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001402/0.3088, allocations: 158.6 kB / 0.568 GB, free: 12.57 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.3089, allocations: 86.14 kB / 0.568 GB, free: 12.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.3091, allocations: 346.7 kB / 0.5684 GB, free: 12.13 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001763/0.3092, allocations: 92.97 kB / 0.5685 GB, free: 12.04 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003054/0.3095, allocations: 245.9 kB / 0.5687 GB, free: 11.74 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005289/0.3101, allocations: 378 kB / 0.5691 GB, free: 11.3 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.3101, allocations: 0 / 0.5691 GB, free: 11.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006734/0.3107, allocations: 412.9 kB / 0.5695 GB, free: 10.89 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.3108, allocations: 10.19 kB / 0.5695 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/0.3108, allocations: 4 kB / 0.5695 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.037e-05/0.3108, allocations: 8 kB / 0.5695 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004401/0.3112, allocations: 115.8 kB / 0.5696 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.778e-05/0.3112, allocations: 16.23 kB / 0.5696 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002105/0.3115, allocations: 16.31 kB / 0.5696 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.316e-05/0.3115, allocations: 28 kB / 0.5696 GB, free: 10.7 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.0001698/0.3117, allocations: 157.7 kB / 0.5698 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001317/0.3118, allocations: 35.77 kB / 0.5698 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000247/0.312, allocations: 123.2 kB / 0.5699 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.3121, allocations: 4 kB / 0.57 GB, free: 10.37 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3121, allocations: 4 kB / 0.57 GB, free: 10.37 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.3121, allocations: 7.922 kB / 0.57 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001637/0.3137, allocations: 0.978 MB / 0.5709 GB, free: 9.305 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-06/0.3137, allocations: 4 kB / 0.5709 GB, free: 9.301 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004766/0.3142, allocations: 96.02 kB / 0.571 GB, free: 9.207 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.157e-06/0.3142, allocations: 4 kB / 0.571 GB, free: 9.203 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.221e-05/0.3142, allocations: 19.98 kB / 0.571 GB, free: 9.184 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.971e-06/0.3142, allocations: 4 kB / 0.571 GB, free: 9.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.009e-05/0.3142, allocations: 8.188 kB / 0.571 GB, free: 9.172 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008794/0.3151, allocations: 0.8383 MB / 0.5719 GB, free: 8.285 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.68e-05/0.3152, allocations: 35.8 kB / 0.5719 GB, free: 8.25 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.817e-05/0.3152, allocations: 8.234 kB / 0.5719 GB, free: 8.242 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003285/0.3156, allocations: 8.109 kB / 0.5719 GB, free: 8.234 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.947e-05/0.3156, allocations: 43.77 kB / 0.572 GB, free: 8.191 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.757e-05/0.3156, allocations: 19.97 kB / 0.572 GB, free: 8.172 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001553/0.3158, allocations: 160.5 kB / 0.5721 GB, free: 8.016 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3158, allocations: 0 / 0.5721 GB, free: 8.016 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005917/0.3164, allocations: 84 kB / 0.5722 GB, free: 7.934 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.001169/0.3176, allocations: 1.375 MB / 0.5736 GB, free: 6.508 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005075/0.3181, allocations: 271.3 kB / 0.5738 GB, free: 6.242 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3181, allocations: 4.688 kB / 0.5738 GB, free: 6.238 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002024/0.3183, allocations: 123.9 kB / 0.5739 GB, free: 6.117 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008864/0.3192, allocations: 73.22 kB / 0.574 GB, free: 6.051 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005224/0.3244, allocations: 4.06 MB / 0.578 GB, free: 1.719 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002085/0.3246, allocations: 185.9 kB / 0.5781 GB, free: 1.516 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001803/0.3248, allocations: 39.27 kB / 0.5782 GB, free: 1.477 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001736/0.3249, allocations: 103.4 kB / 0.5783 GB, free: 1.379 MB / 414.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3249, allocations: 0 / 0.5783 GB, free: 1.379 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03061/0.3556, allocations: 7.027 MB / 0.5851 GB, free: 10.54 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.22, allocations: 18.27 kB / 0.5852 GB, free: 10.53 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: 15.453846591990441]