Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001964/0.001964, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002084/0.002084, allocations: 209.3 kB / 23.73 MB, free: 4.379 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.478/1.478, 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.285/0.285, allocations: 46.95 MB / 360.9 MB, free: 4.035 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Translational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Translational.TestBraking,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Translational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002028/0.002028, allocations: 71.88 kB / 0.4961 GB, free: 7.734 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3357, allocations: 66.04 MB / 0.5606 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Translational.TestBraking): time 0.004532/0.3402, allocations: 2.91 MB / 0.5634 GB, free: 1.309 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001999/0.3422, allocations: 1.02 MB / 0.5644 GB, free: 292 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001771/0.3424, allocations: 11.94 kB / 0.5644 GB, free: 280 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000195/0.3426, allocations: 59.31 kB / 0.5645 GB, free: 220 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002553/0.3428, allocations: 126.9 kB / 0.5646 GB, free: 92 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000573/0.3434, allocations: 183.6 kB / 0.5648 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000516/0.3439, allocations: 465.8 kB / 0.5652 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.3441, allocations: 85.61 kB / 0.5653 GB, free: 15.36 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002129/0.3443, allocations: 171.4 kB / 0.5655 GB, free: 15.2 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002688/0.3446, allocations: 191.1 kB / 0.5656 GB, free: 15.01 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.032e-05/0.3447, allocations: 36 kB / 0.5657 GB, free: 14.97 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001251/0.3448, allocations: 48 kB / 0.5657 GB, free: 14.93 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.756e-05/0.3449, allocations: 75.73 kB / 0.5658 GB, free: 14.85 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001829/0.3451, allocations: 171.1 kB / 0.566 GB, free: 14.68 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005504/0.3456, allocations: 458.1 kB / 0.5664 GB, free: 14.23 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3456, allocations: 0 / 0.5664 GB, free: 14.23 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3456, allocations: 0 / 0.5664 GB, free: 14.23 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.225e-06/0.3456, allocations: 0 / 0.5664 GB, free: 14.23 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001258/0.3469, allocations: 0.6261 MB / 0.567 GB, free: 13.58 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.3469, allocations: 16.02 kB / 0.567 GB, free: 13.56 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.05e-05/0.347, allocations: 70.72 kB / 0.5671 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003251/0.3473, allocations: 72.64 kB / 0.5672 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004396/0.3478, allocations: 236.9 kB / 0.5674 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.394e-05/0.3478, allocations: 25.38 kB / 0.5674 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.781e-05/0.3479, allocations: 40.12 kB / 0.5675 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006629/0.3485, allocations: 367.5 kB / 0.5678 GB, free: 12.71 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.685e-05/0.3486, allocations: 7.953 kB / 0.5678 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.127e-05/0.3486, allocations: 12 kB / 0.5678 GB, free: 12.69 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.346e-05/0.3486, allocations: 16 kB / 0.5678 GB, free: 12.67 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005138/0.3491, allocations: 243.8 kB / 0.5681 GB, free: 12.43 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002259/0.3514, allocations: 1.405 MB / 0.5694 GB, free: 10.93 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007896/0.3522, allocations: 411.4 kB / 0.5698 GB, free: 10.47 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002441/0.3524, allocations: 125.1 kB / 0.57 GB, free: 10.33 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.761e-05/0.3525, allocations: 4 kB / 0.57 GB, free: 10.32 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.59e-05/0.3525, allocations: 46.5 kB / 0.57 GB, free: 10.27 MB / 414.1 MB Notification: Performance of pre-optimization done (n=43): time 2.345e-06/0.3525, allocations: 0 / 0.57 GB, free: 10.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=48): time 0.003245/0.3557, allocations: 1.542 MB / 0.5715 GB, free: 8.582 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000123/0.3559, allocations: 191.8 kB / 0.5717 GB, free: 8.352 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003419/0.3562, allocations: 264.1 kB / 0.5719 GB, free: 8.086 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.358e-05/0.3562, allocations: 29.7 kB / 0.572 GB, free: 8.051 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/0.3564, allocations: 204.8 kB / 0.5722 GB, free: 7.848 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001458/0.3565, allocations: 190.3 kB / 0.5723 GB, free: 7.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001528/0.3567, allocations: 102.3 kB / 0.5724 GB, free: 7.555 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.3569, allocations: 350.8 kB / 0.5728 GB, free: 7.203 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00026/0.3571, allocations: 113.3 kB / 0.5729 GB, free: 7.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000405/0.3575, allocations: 295.9 kB / 0.5732 GB, free: 6.727 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007134/0.3582, allocations: 466.5 kB / 0.5736 GB, free: 6.195 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3583, allocations: 0 / 0.5736 GB, free: 6.195 MB / 414.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.000929/0.3592, allocations: 497.1 kB / 0.5741 GB, free: 5.703 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.3592, allocations: 12.09 kB / 0.5741 GB, free: 5.691 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.939e-05/0.3592, allocations: 12 kB / 0.5741 GB, free: 5.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.319e-05/0.3592, allocations: 8 kB / 0.5741 GB, free: 5.672 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005389/0.3598, allocations: 139.8 kB / 0.5743 GB, free: 5.535 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.354e-05/0.3598, allocations: 15.88 kB / 0.5743 GB, free: 5.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002598/0.3601, allocations: 23.98 kB / 0.5743 GB, free: 5.496 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.838e-05/0.3601, allocations: 24 kB / 0.5743 GB, free: 5.473 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (74): * Single equations (assignments): 74 * 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.0002435/0.3604, allocations: 169.7 kB / 0.5745 GB, free: 5.297 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/0.3605, allocations: 39.77 kB / 0.5745 GB, free: 5.258 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002737/0.3608, allocations: 127.3 kB / 0.5746 GB, free: 5.121 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.706e-05/0.3608, allocations: 8 kB / 0.5746 GB, free: 5.113 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/0.3608, allocations: 3.938 kB / 0.5746 GB, free: 5.109 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.3608, allocations: 7.984 kB / 0.5747 GB, free: 5.102 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002045/0.3629, allocations: 1.178 MB / 0.5758 GB, free: 3.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.3629, allocations: 4.188 kB / 0.5758 GB, free: 3.836 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006191/0.3635, allocations: 119.8 kB / 0.5759 GB, free: 3.719 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.358e-06/0.3635, allocations: 11.94 kB / 0.5759 GB, free: 3.707 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.301e-05/0.3635, allocations: 12 kB / 0.5759 GB, free: 3.695 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.464e-06/0.3635, allocations: 4 kB / 0.5759 GB, free: 3.691 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.3636, allocations: 7.938 kB / 0.576 GB, free: 3.684 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00118/0.3647, allocations: 1.013 MB / 0.5769 GB, free: 2.613 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.091e-05/0.3648, allocations: 39.94 kB / 0.577 GB, free: 2.574 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.759e-05/0.3649, allocations: 20 kB / 0.577 GB, free: 2.555 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003903/0.3653, allocations: 8 kB / 0.577 GB, free: 2.547 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.909e-05/0.3653, allocations: 47.81 kB / 0.5771 GB, free: 2.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.949e-05/0.3654, allocations: 19.98 kB / 0.5771 GB, free: 2.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001776/0.3656, allocations: 175.1 kB / 0.5772 GB, free: 2.312 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3656, allocations: 4 kB / 0.5772 GB, free: 2.309 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006721/0.3662, allocations: 96 kB / 0.5773 GB, free: 2.215 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (mass5.s,mass5.v,heatCapacitor.T,mass6.s,mass6.v,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 (49): * Single equations (assignments): 49 * 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.001512/0.3677, allocations: 1.562 MB / 0.5789 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006982/0.3684, allocations: 332 kB / 0.5792 GB, free: 276 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3684, allocations: 4.125 kB / 0.5792 GB, free: 272 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002942/0.3687, allocations: 167.6 kB / 0.5793 GB, free: 104 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001015/0.3698, allocations: 84.09 kB / 0.5794 GB, free: 28 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006979/0.3767, allocations: 4.678 MB / 0.584 GB, free: 11.04 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/0.377, allocations: 204.4 kB / 0.5842 GB, free: 10.82 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000235/0.3772, allocations: 47.34 kB / 0.5842 GB, free: 10.77 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002201/0.3774, allocations: 127.4 kB / 0.5844 GB, free: 10.65 MB / 430.1 MB Notification: Performance of SimCode: time 1.272e-06/0.3774, allocations: 4 kB / 0.5844 GB, free: 10.64 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0411/0.4185, allocations: 8.672 MB / 0.5928 GB, free: 2.176 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.75, allocations: 8.047 kB / 0.5928 GB, free: 2.168 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Translational.TestBraking.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Translational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Translational.TestBraking.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Translational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Translational.TestBraking_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Translational_TestBraking_fmu --startTime=0 --stopTime=2 --stepSize=0.000399521 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Translational_TestBraking.fmu > ModelicaTest_4.1.0_ModelicaTest.Translational.TestBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Translational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Translational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.92753985899617]