Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.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.0008322/0.0008322, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009381/0.0009381, allocations: 174.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8905/0.8905, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.2422/0.2422, allocations: 32.79 MB / 293.5 MB, free: 1.215 MB / 266.7 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.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 0 / 439.5 MB, free: 4.281 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.269e-05/2.474e-05, allocations: 4.391 kB / 439.6 MB, free: 4.277 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003908/0.003932, allocations: 2.486 MB / 442 MB, free: 1.773 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001428/0.005361, allocations: 0.6855 MB / 442.7 MB, free: 1.082 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002392/0.0056, allocations: 11.94 kB / 442.7 MB, free: 1.07 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001765/0.005776, allocations: 51.45 kB / 442.8 MB, free: 1.02 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000198/0.005974, allocations: 95.12 kB / 442.9 MB, free: 0.9258 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004052/0.006379, allocations: 103.8 kB / 443 MB, free: 0.8242 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003636/0.006743, allocations: 350.3 kB / 443.3 MB, free: 492 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001505/0.006894, allocations: 50.14 kB / 443.4 MB, free: 436 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002878/0.007181, allocations: 195.6 kB / 443.6 MB, free: 240 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001145/0.007296, allocations: 95.69 kB / 443.7 MB, free: 144 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.027e-05/0.007326, allocations: 24 kB / 443.7 MB, free: 120 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.589e-05/0.007382, allocations: 24 kB / 443.7 MB, free: 96 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.354e-05/0.007416, allocations: 67.73 kB / 443.8 MB, free: 28 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1588/0.1663, allocations: 88.7 kB / 443.9 MB, free: 43.54 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003684/0.1666, allocations: 314.3 kB / 444.2 MB, free: 43.53 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1666, allocations: 2.781 kB / 444.2 MB, free: 43.53 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1666, allocations: 0 / 444.2 MB, free: 43.53 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.643e-06/0.1666, allocations: 0 / 444.2 MB, free: 43.53 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0005733/0.1672, allocations: 0.5218 MB / 444.7 MB, free: 43.17 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.1673, allocations: 7.969 kB / 444.7 MB, free: 43.17 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.907e-05/0.1673, allocations: 58.91 kB / 444.8 MB, free: 43.13 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001411/0.1674, allocations: 57.55 kB / 444.8 MB, free: 43.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002769/0.1677, allocations: 216.1 kB / 445 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.495e-05/0.1677, allocations: 19.66 kB / 445 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.658e-05/0.1678, allocations: 31.73 kB / 445.1 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002721/0.168, allocations: 281 kB / 445.3 MB, free: 42.87 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.1681, allocations: 5.031 kB / 445.3 MB, free: 42.87 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.608e-05/0.1681, allocations: 10.81 kB / 445.4 MB, free: 42.87 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.1681, allocations: 9.812 kB / 445.4 MB, free: 42.86 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002136/0.1683, allocations: 189.6 kB / 445.6 MB, free: 42.86 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007867/0.1691, allocations: 1.197 MB / 446.8 MB, free: 42.02 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002222/0.1693, allocations: 229.5 kB / 447 MB, free: 41.93 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.593e-05/0.1694, allocations: 96.92 kB / 447.1 MB, free: 41.89 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.935e-05/0.1694, allocations: 5.75 kB / 447.1 MB, free: 41.89 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.445e-05/0.1694, allocations: 45.05 kB / 447.1 MB, free: 41.86 MB / 410.7 MB Notification: Performance of pre-optimization done (n=26): time 1.322e-06/0.1694, allocations: 0 / 447.1 MB, free: 41.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=32): time 0.001193/0.1706, allocations: 1.209 MB / 448.3 MB, free: 41.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.8e-05/0.1707, allocations: 134.4 kB / 448.5 MB, free: 41.04 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/0.1708, allocations: 232.7 kB / 448.7 MB, free: 40.93 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.113e-05/0.1708, allocations: 33.86 kB / 448.7 MB, free: 40.89 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.246e-05/0.1708, allocations: 177.7 kB / 448.9 MB, free: 40.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.609e-05/0.1709, allocations: 121.7 kB / 449 MB, free: 40.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.413e-05/0.1709, allocations: 77.5 kB / 449.1 MB, free: 40.67 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.355e-05/0.171, allocations: 336.3 kB / 449.4 MB, free: 40.36 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.1711, allocations: 102.1 kB / 449.5 MB, free: 40.36 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001459/0.1712, allocations: 241 kB / 449.8 MB, free: 40.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002947/0.1715, allocations: 364.1 kB / 450.1 MB, free: 40 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1715, allocations: 0 / 450.1 MB, free: 40 MB / 410.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0003695/0.1719, allocations: 400.8 kB / 450.5 MB, free: 39.87 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.1719, allocations: 9.938 kB / 450.5 MB, free: 39.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.1719, allocations: 5.75 kB / 450.5 MB, free: 39.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.1719, allocations: 5.969 kB / 450.5 MB, free: 39.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001905/0.1721, allocations: 102.8 kB / 450.6 MB, free: 39.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.1721, allocations: 5.75 kB / 450.6 MB, free: 39.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.784e-05/0.1722, allocations: 32.84 kB / 450.7 MB, free: 39.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.345e-05/0.1722, allocations: 17.62 kB / 450.7 MB, free: 39.85 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * 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 7.098e-05/0.1723, allocations: 155.3 kB / 450.8 MB, free: 39.71 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.697e-05/0.1724, allocations: 30.12 kB / 450.9 MB, free: 39.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.655e-05/0.1724, allocations: 38.86 kB / 450.9 MB, free: 39.67 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.1724, allocations: 6.125 kB / 450.9 MB, free: 39.67 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.1724, allocations: 2.875 kB / 450.9 MB, free: 39.67 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1724, allocations: 0 / 450.9 MB, free: 39.67 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006964/0.1731, allocations: 0.9224 MB / 451.8 MB, free: 39.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.1731, allocations: 2.844 kB / 451.8 MB, free: 39.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001675/0.1733, allocations: 80.3 kB / 451.9 MB, free: 39.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.1733, allocations: 2.875 kB / 451.9 MB, free: 39.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.1733, allocations: 9.781 kB / 451.9 MB, free: 39.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.1733, allocations: 8.344 kB / 451.9 MB, free: 39.02 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1733, allocations: 0 / 451.9 MB, free: 39.02 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004546/0.1737, allocations: 0.7379 MB / 452.7 MB, free: 38.52 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.99e-05/0.1738, allocations: 27.77 kB / 452.7 MB, free: 38.51 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.127e-05/0.1738, allocations: 10.88 kB / 452.7 MB, free: 38.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.1739, allocations: 15.98 kB / 452.7 MB, free: 38.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.892e-05/0.174, allocations: 35.7 kB / 452.8 MB, free: 38.49 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.295e-06/0.174, allocations: 5.875 kB / 452.8 MB, free: 38.49 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.052e-05/0.174, allocations: 164.2 kB / 452.9 MB, free: 38.39 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.174, allocations: 2.906 kB / 452.9 MB, free: 38.39 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002831/0.1743, allocations: 61.88 kB / 453 MB, free: 38.38 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * 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.0005205/0.1749, allocations: 1.274 MB / 454.3 MB, free: 37.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003086/0.1752, allocations: 275.4 kB / 454.5 MB, free: 37.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.1752, allocations: 0 / 454.5 MB, free: 37.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001309/0.1753, allocations: 125.8 kB / 454.6 MB, free: 37.25 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004048/0.1757, allocations: 46.47 kB / 454.7 MB, free: 37.23 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002014/0.1777, allocations: 3.361 MB / 458.1 MB, free: 34.76 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.234e-05/0.1778, allocations: 166.2 kB / 458.2 MB, free: 34.68 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.392e-05/0.1779, allocations: 31.55 kB / 458.2 MB, free: 34.67 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.996e-05/0.178, allocations: 101.1 kB / 458.3 MB, free: 34.6 MB / 410.7 MB Notification: Performance of SimCode: time 6.82e-07/0.178, allocations: 0 / 458.3 MB, free: 34.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01666/0.1946, allocations: 6.144 MB / 464.5 MB, free: 33.32 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.792/6.987, allocations: 10.2 kB / 464.5 MB, free: 33.32 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219824 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.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: 8.962273126468062]