Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.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.001336/0.001336, allocations: 123 kB / 17.79 MB, free: 5.266 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.001445/0.001445, allocations: 207.2 kB / 20.75 MB, free: 2.316 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.552/1.552, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.2856/0.2856, allocations: 46.92 MB / 357.1 MB, free: 10.31 MB / 286.1 MB " [Timeout remaining time 180] 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.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002081/0.002081, allocations: 71.89 kB / 0.4909 GB, free: 7.965 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.1622, allocations: 65.99 MB / 0.5554 GB, free: 5.848 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004468/0.1666, allocations: 3.051 MB / 0.5583 GB, free: 2.777 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00201/0.1686, allocations: 1.079 MB / 0.5594 GB, free: 1.695 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001799/0.1688, allocations: 7.938 kB / 0.5594 GB, free: 1.688 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002019/0.169, allocations: 63.38 kB / 0.5595 GB, free: 1.625 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002584/0.1693, allocations: 122.9 kB / 0.5596 GB, free: 1.504 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005388/0.1698, allocations: 175.5 kB / 0.5597 GB, free: 1.332 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005335/0.1703, allocations: 457.8 kB / 0.5602 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002091/0.1706, allocations: 83.52 kB / 0.5603 GB, free: 0.793 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001983/0.1708, allocations: 167.4 kB / 0.5604 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002361/0.171, allocations: 175.2 kB / 0.5606 GB, free: 468 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.748e-05/0.171, allocations: 32 kB / 0.5606 GB, free: 436 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001287/0.1712, allocations: 48 kB / 0.5607 GB, free: 388 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.02e-05/0.1712, allocations: 79.67 kB / 0.5607 GB, free: 308 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001995/0.1714, allocations: 195.1 kB / 0.5609 GB, free: 112 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005663/0.172, allocations: 446.1 kB / 0.5613 GB, free: 15.67 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.172, allocations: 0 / 0.5613 GB, free: 15.67 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.172, allocations: 4 kB / 0.5613 GB, free: 15.67 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.172, allocations: 3.938 kB / 0.5613 GB, free: 15.66 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001159/0.1732, allocations: 0.6586 MB / 0.562 GB, free: 14.96 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.1732, allocations: 8.031 kB / 0.562 GB, free: 14.95 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.748e-05/0.1733, allocations: 70.72 kB / 0.5621 GB, free: 14.87 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003/0.1736, allocations: 72.62 kB / 0.5621 GB, free: 14.8 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004532/0.1741, allocations: 303.4 kB / 0.5624 GB, free: 14.46 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.03e-05/0.1741, allocations: 21.38 kB / 0.5624 GB, free: 14.45 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.116e-05/0.1742, allocations: 48.08 kB / 0.5625 GB, free: 14.4 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006513/0.1748, allocations: 363.6 kB / 0.5628 GB, free: 14.02 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.637e-05/0.1749, allocations: 4 kB / 0.5628 GB, free: 14.01 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.372e-05/0.1749, allocations: 16 kB / 0.5629 GB, free: 14 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.1749, allocations: 8 kB / 0.5629 GB, free: 13.99 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004801/0.1754, allocations: 219.8 kB / 0.5631 GB, free: 13.77 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00248/0.1779, allocations: 1.593 MB / 0.5646 GB, free: 12.07 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006451/0.1785, allocations: 295.6 kB / 0.5649 GB, free: 11.72 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001787/0.1787, allocations: 93.11 kB / 0.565 GB, free: 11.61 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.306e-05/0.1787, allocations: 4 kB / 0.565 GB, free: 11.61 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.1787, allocations: 46.5 kB / 0.5651 GB, free: 11.55 MB / 430.1 MB Notification: Performance of pre-optimization done (n=26): time 1.913e-06/0.1787, allocations: 0 / 0.5651 GB, free: 11.55 MB / 430.1 MB Notification: Performance of matching and sorting (n=26): time 0.00077/0.1795, allocations: 273.8 kB / 0.5653 GB, free: 11.28 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001337/0.1796, allocations: 192 kB / 0.5655 GB, free: 11.05 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002768/0.1799, allocations: 242.6 kB / 0.5657 GB, free: 10.8 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.797e-05/0.18, allocations: 33.7 kB / 0.5658 GB, free: 10.77 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001759/0.1801, allocations: 212.3 kB / 0.566 GB, free: 10.55 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.1802, allocations: 119 kB / 0.5661 GB, free: 10.44 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001303/0.1804, allocations: 78.09 kB / 0.5661 GB, free: 10.35 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.1805, allocations: 342.7 kB / 0.5665 GB, free: 10.01 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001971/0.1807, allocations: 84.83 kB / 0.5666 GB, free: 9.926 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000394/0.1811, allocations: 255.9 kB / 0.5668 GB, free: 9.602 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005786/0.1817, allocations: 361.1 kB / 0.5671 GB, free: 9.172 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.1817, allocations: 4 kB / 0.5671 GB, free: 9.168 MB / 430.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007024/0.1824, allocations: 385.5 kB / 0.5675 GB, free: 8.785 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.1824, allocations: 4 kB / 0.5675 GB, free: 8.781 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.606e-05/0.1825, allocations: 11.94 kB / 0.5675 GB, free: 8.77 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.536e-05/0.1825, allocations: 8 kB / 0.5675 GB, free: 8.762 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003879/0.1829, allocations: 107.8 kB / 0.5676 GB, free: 8.656 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.378e-05/0.1829, allocations: 12 kB / 0.5677 GB, free: 8.645 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002345/0.1831, allocations: 43.66 kB / 0.5677 GB, free: 8.602 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.429e-05/0.1832, allocations: 20 kB / 0.5677 GB, free: 8.582 MB / 430.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 (52): * Single equations (assignments): 52 * 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.0001916/0.1833, allocations: 161.8 kB / 0.5679 GB, free: 8.414 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001463/0.1835, allocations: 31.81 kB / 0.5679 GB, free: 8.383 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002235/0.1837, allocations: 99.31 kB / 0.568 GB, free: 8.277 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.433e-06/0.1837, allocations: 4 kB / 0.568 GB, free: 8.273 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.1837, allocations: 0 / 0.568 GB, free: 8.273 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.1837, allocations: 4 kB / 0.568 GB, free: 8.27 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007431/0.1845, allocations: 345.3 kB / 0.5683 GB, free: 7.883 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.1845, allocations: 0 / 0.5683 GB, free: 7.883 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004488/0.1849, allocations: 83.89 kB / 0.5684 GB, free: 7.801 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.1849, allocations: 8 kB / 0.5684 GB, free: 7.793 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.714e-05/0.185, allocations: 8 kB / 0.5684 GB, free: 7.785 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.185, allocations: 0 / 0.5684 GB, free: 7.785 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.185, allocations: 4 kB / 0.5684 GB, free: 7.781 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009114/0.1859, allocations: 0.7725 MB / 0.5692 GB, free: 6.988 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.919e-05/0.186, allocations: 100.9 kB / 0.5693 GB, free: 6.871 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.739e-05/0.186, allocations: 8 kB / 0.5693 GB, free: 6.863 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003228/0.1864, allocations: 11.98 kB / 0.5693 GB, free: 6.852 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.131e-05/0.1864, allocations: 15.98 kB / 0.5693 GB, free: 6.836 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.182e-05/0.1864, allocations: 15.92 kB / 0.5693 GB, free: 6.82 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001733/0.1866, allocations: 174.1 kB / 0.5695 GB, free: 6.652 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1866, allocations: 3.938 kB / 0.5695 GB, free: 6.648 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006137/0.1872, allocations: 95.84 kB / 0.5696 GB, free: 6.555 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,inertia6.w,inverseSpeedDependentTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * 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 (27): * Single equations (assignments): 27 * 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.001196/0.1884, allocations: 1.311 MB / 0.5709 GB, free: 5.215 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005118/0.1889, allocations: 222.4 kB / 0.5711 GB, free: 5 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1889, allocations: 8.125 kB / 0.5711 GB, free: 4.992 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001897/0.1891, allocations: 92.47 kB / 0.5712 GB, free: 4.902 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009568/0.1901, allocations: 90.05 kB / 0.5713 GB, free: 4.82 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005551/0.1956, allocations: 4.09 MB / 0.5753 GB, free: 488 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005119/0.1961, allocations: 0.7873 MB / 0.576 GB, free: 15.66 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00018/0.1963, allocations: 38.94 kB / 0.5761 GB, free: 15.62 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001676/0.1965, allocations: 111.4 kB / 0.5762 GB, free: 15.52 MB / 446.1 MB Notification: Performance of SimCode: time 1.637e-05/0.1965, allocations: 0 / 0.5762 GB, free: 15.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03256/0.2291, allocations: 6.449 MB / 0.5825 GB, free: 9.172 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.747/8.976, allocations: 11.92 kB / 0.5825 GB, free: 9.16 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --stepSize=0.000399521 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Rotational.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.47860011109151]