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.001651/0.001651, allocations: 114.3 kB / 18.49 MB, free: 4.539 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.001824/0.001824, allocations: 219 kB / 21.46 MB, free: 1.586 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.532/1.532, allocations: 230.6 MB / 254.8 MB, free: 15.07 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.2252/0.2252, allocations: 44.91 MB / 355.8 MB, free: 12.32 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.002319/0.002319, allocations: 67.89 kB / 0.4885 GB, free: 11.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1448, allocations: 65.42 MB / 0.5524 GB, free: 10.17 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Translational.TestBraking): time 0.004419/0.1492, allocations: 2.906 MB / 0.5552 GB, free: 7.246 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001936/0.1512, allocations: 1.02 MB / 0.5562 GB, free: 6.223 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002376/0.1514, allocations: 7.938 kB / 0.5562 GB, free: 6.215 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002185/0.1516, allocations: 59.38 kB / 0.5563 GB, free: 6.156 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002511/0.1519, allocations: 103.1 kB / 0.5564 GB, free: 6.055 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000536/0.1524, allocations: 163.5 kB / 0.5566 GB, free: 5.895 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004928/0.1529, allocations: 378.2 kB / 0.5569 GB, free: 5.523 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001821/0.1531, allocations: 77.42 kB / 0.557 GB, free: 5.445 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001943/0.1533, allocations: 147.4 kB / 0.5571 GB, free: 5.301 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002278/0.1535, allocations: 151.3 kB / 0.5573 GB, free: 5.152 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.011e-05/0.1536, allocations: 24 kB / 0.5573 GB, free: 5.129 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001342/0.1537, allocations: 55.97 kB / 0.5574 GB, free: 5.074 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.976e-05/0.1538, allocations: 71.77 kB / 0.5574 GB, free: 5.004 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001839/0.1539, allocations: 171.1 kB / 0.5576 GB, free: 4.836 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004926/0.1544, allocations: 390.3 kB / 0.558 GB, free: 4.453 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1544, allocations: 0 / 0.558 GB, free: 4.453 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1544, allocations: 0 / 0.558 GB, free: 4.453 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.24e-05/0.1545, allocations: 0 / 0.558 GB, free: 4.453 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001109/0.1556, allocations: 0.6311 MB / 0.5586 GB, free: 3.773 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.1556, allocations: 8.031 kB / 0.5586 GB, free: 3.766 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.26e-05/0.1556, allocations: 8.844 kB / 0.5586 GB, free: 3.758 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.309e-05/0.1557, allocations: 70.66 kB / 0.5587 GB, free: 3.68 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002984/0.156, allocations: 68.67 kB / 0.5587 GB, free: 3.613 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003969/0.1564, allocations: 268.8 kB / 0.559 GB, free: 3.309 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.074e-05/0.1564, allocations: 28.97 kB / 0.559 GB, free: 3.281 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.119e-05/0.1565, allocations: 35.89 kB / 0.559 GB, free: 3.246 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004998/0.157, allocations: 302.3 kB / 0.5593 GB, free: 2.926 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/0.157, allocations: 4 kB / 0.5593 GB, free: 2.922 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.933e-05/0.157, allocations: 12 kB / 0.5593 GB, free: 2.91 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.157, allocations: 8 kB / 0.5594 GB, free: 2.902 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003738/0.1574, allocations: 199.8 kB / 0.5595 GB, free: 2.707 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001945/0.1594, allocations: 1.292 MB / 0.5608 GB, free: 1.32 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005461/0.1599, allocations: 336.8 kB / 0.5611 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001636/0.1601, allocations: 100.3 kB / 0.5612 GB, free: 0.832 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.872e-05/0.1601, allocations: 11.94 kB / 0.5612 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/0.1601, allocations: 34.56 kB / 0.5613 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of pre-optimization done (n=36): time 1.703e-06/0.1601, allocations: 0 / 0.5613 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of matching and sorting (n=40): time 0.002746/0.1629, allocations: 1.611 MB / 0.5628 GB, free: 14.96 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.163, allocations: 158.2 kB / 0.563 GB, free: 14.77 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002438/0.1632, allocations: 236.9 kB / 0.5632 GB, free: 14.52 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.815e-05/0.1633, allocations: 29.7 kB / 0.5632 GB, free: 14.48 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.1634, allocations: 184.5 kB / 0.5634 GB, free: 14.3 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001221/0.1635, allocations: 150.7 kB / 0.5636 GB, free: 14.15 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/0.1636, allocations: 86.2 kB / 0.5636 GB, free: 14.06 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.1638, allocations: 350.8 kB / 0.564 GB, free: 13.71 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001828/0.164, allocations: 101 kB / 0.5641 GB, free: 13.61 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000287/0.1642, allocations: 243.6 kB / 0.5643 GB, free: 13.31 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005006/0.1647, allocations: 373.7 kB / 0.5647 GB, free: 12.88 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.1647, allocations: 0 / 0.5647 GB, free: 12.88 MB / 430.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000666/0.1654, allocations: 418.7 kB / 0.5651 GB, free: 12.46 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.1654, allocations: 8 kB / 0.5651 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.1654, allocations: 4 kB / 0.5651 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.1655, allocations: 8 kB / 0.5651 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004075/0.1659, allocations: 115.8 kB / 0.5652 GB, free: 12.33 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.703e-05/0.1659, allocations: 12 kB / 0.5652 GB, free: 12.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001973/0.1661, allocations: 27.86 kB / 0.5652 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.628e-05/0.1661, allocations: 23.98 kB / 0.5653 GB, free: 12.27 MB / 430.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.0001722/0.1663, allocations: 159.9 kB / 0.5654 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.1664, allocations: 35.84 kB / 0.5654 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002576/0.1667, allocations: 123.3 kB / 0.5656 GB, free: 11.94 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.1667, allocations: 4 kB / 0.5656 GB, free: 11.94 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.21e-05/0.1667, allocations: 4 kB / 0.5656 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.1667, allocations: 3.938 kB / 0.5656 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001572/0.1683, allocations: 1.034 MB / 0.5666 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.1683, allocations: 0 / 0.5666 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004487/0.1687, allocations: 95.89 kB / 0.5667 GB, free: 10.72 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.587e-06/0.1687, allocations: 12.25 kB / 0.5667 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.06e-05/0.1688, allocations: 19.92 kB / 0.5667 GB, free: 10.69 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.6e-06/0.1688, allocations: 4 kB / 0.5667 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/0.1688, allocations: 4 kB / 0.5667 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000845/0.1696, allocations: 0.8345 MB / 0.5675 GB, free: 9.797 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.877e-05/0.1697, allocations: 112.9 kB / 0.5676 GB, free: 9.668 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.582e-05/0.1698, allocations: 12 kB / 0.5676 GB, free: 9.656 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003082/0.1701, allocations: 12 kB / 0.5677 GB, free: 9.645 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.468e-05/0.1701, allocations: 35.84 kB / 0.5677 GB, free: 9.609 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-05/0.1702, allocations: 15.98 kB / 0.5677 GB, free: 9.594 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001542/0.1703, allocations: 156.5 kB / 0.5679 GB, free: 9.441 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1703, allocations: 0 / 0.5679 GB, free: 9.441 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005712/0.1709, allocations: 87.98 kB / 0.5679 GB, free: 9.355 MB / 430.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.001174/0.1721, allocations: 1.371 MB / 0.5693 GB, free: 7.934 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005025/0.1726, allocations: 283.8 kB / 0.5695 GB, free: 7.656 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.1726, allocations: 0 / 0.5695 GB, free: 7.656 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001985/0.1728, allocations: 125 kB / 0.5697 GB, free: 7.535 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008904/0.1737, allocations: 77.95 kB / 0.5697 GB, free: 7.465 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005188/0.1788, allocations: 4.045 MB / 0.5737 GB, free: 3.145 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004672/0.1793, allocations: 0.7883 MB / 0.5745 GB, free: 2.332 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001761/0.1795, allocations: 47.25 kB / 0.5745 GB, free: 2.281 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001786/0.1797, allocations: 111.3 kB / 0.5746 GB, free: 2.176 MB / 430.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1797, allocations: 0 / 0.5746 GB, free: 2.176 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02744/0.2071, allocations: 6.629 MB / 0.5811 GB, free: 11.68 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.915/9.122, allocations: 5.812 kB / 0.5811 GB, free: 11.68 MB / 446.1 MB " [Timeout remaining time 651] (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: 12.7573636820307]