Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed") translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001523/0.001523, allocations: 109.2 kB / 16.41 MB, free: 6.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001961/0.001961, allocations: 185.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.569/1.569, allocations: 205.1 MB / 223.2 MB, free: 12.1 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2289/0.2289, allocations: 43.52 MB / 314.1 MB, free: 440 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001674/0.001674, allocations: 70.23 kB / 441.8 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.1415, allocations: 57.79 MB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004593/0.1461, allocations: 2.62 MB / 0.4904 GB, free: 9.184 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.1478, allocations: 0.6902 MB / 0.4911 GB, free: 8.484 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003365/0.1482, allocations: 7.938 kB / 0.4911 GB, free: 8.477 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002509/0.1484, allocations: 39.58 kB / 0.4911 GB, free: 8.438 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003399/0.1488, allocations: 87.2 kB / 0.4912 GB, free: 8.352 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003253/0.1491, allocations: 91.81 kB / 0.4913 GB, free: 8.262 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003807/0.1495, allocations: 334.5 kB / 0.4916 GB, free: 7.934 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002072/0.1497, allocations: 85.78 kB / 0.4917 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.1499, allocations: 127.5 kB / 0.4918 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001748/0.1501, allocations: 127.4 kB / 0.492 GB, free: 7.602 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.466e-05/0.1502, allocations: 24 kB / 0.492 GB, free: 7.578 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.096e-05/0.1502, allocations: 20 kB / 0.492 GB, free: 7.559 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.262e-05/0.1503, allocations: 59.75 kB / 0.4921 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.1504, allocations: 139.3 kB / 0.4922 GB, free: 7.363 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003443/0.1508, allocations: 310.8 kB / 0.4925 GB, free: 7.059 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.1508, allocations: 4 kB / 0.4925 GB, free: 7.055 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1508, allocations: 4 kB / 0.4925 GB, free: 7.051 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.1508, allocations: 0 / 0.4925 GB, free: 7.051 MB / 382.1 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.0009306/0.1517, allocations: 0.5769 MB / 0.4931 GB, free: 6.426 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.1518, allocations: 11.89 kB / 0.4931 GB, free: 6.414 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.073e-05/0.1519, allocations: 36.47 kB / 0.4931 GB, free: 6.379 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004336/0.1523, allocations: 271.6 kB / 0.4934 GB, free: 6.074 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.565e-05/0.1523, allocations: 20.94 kB / 0.4934 GB, free: 6.051 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.141e-05/0.1524, allocations: 28.28 kB / 0.4934 GB, free: 6.023 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004624/0.1529, allocations: 278.2 kB / 0.4937 GB, free: 5.727 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.278e-05/0.1529, allocations: 11.98 kB / 0.4937 GB, free: 5.715 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.288e-05/0.1529, allocations: 8 kB / 0.4937 GB, free: 5.707 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.1529, allocations: 4 kB / 0.4937 GB, free: 5.703 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003876/0.1533, allocations: 179.8 kB / 0.4939 GB, free: 5.527 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001775/0.1551, allocations: 1.313 MB / 0.4951 GB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004439/0.1556, allocations: 246.4 kB / 0.4954 GB, free: 3.828 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002028/0.1558, allocations: 111.5 kB / 0.4955 GB, free: 3.707 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.657e-05/0.1558, allocations: 0 / 0.4955 GB, free: 3.707 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.732e-05/0.1558, allocations: 34.56 kB / 0.4955 GB, free: 3.664 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.543e-06/0.1559, allocations: 0 / 0.4955 GB, free: 3.664 MB / 382.1 MB Notification: Performance of matching and sorting (n=32): time 0.00245/0.1583, allocations: 1.56 MB / 0.497 GB, free: 1.895 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.778e-05/0.1584, allocations: 132.5 kB / 0.4972 GB, free: 1.734 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002264/0.1586, allocations: 225 kB / 0.4974 GB, free: 1.504 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.285e-05/0.1587, allocations: 37.7 kB / 0.4974 GB, free: 1.461 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001889/0.1589, allocations: 180.1 kB / 0.4976 GB, free: 1.281 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001803/0.1591, allocations: 114.4 kB / 0.4977 GB, free: 1.168 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001163/0.1592, allocations: 67.36 kB / 0.4978 GB, free: 1.098 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002491/0.1594, allocations: 350.7 kB / 0.4981 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00026/0.1597, allocations: 96.81 kB / 0.4982 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003463/0.1601, allocations: 233.5 kB / 0.4984 GB, free: 372 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006822/0.1608, allocations: 373.1 kB / 0.4988 GB, free: 15.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.935e-06/0.1608, allocations: 3.984 kB / 0.4988 GB, free: 15.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000849/0.1616, allocations: 396.7 kB / 0.4992 GB, free: 15.54 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.382e-05/0.1617, allocations: 11.28 kB / 0.4992 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.1617, allocations: 4 kB / 0.4992 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.27e-05/0.1617, allocations: 8 kB / 0.4992 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003922/0.1621, allocations: 104.5 kB / 0.4993 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.685e-05/0.1622, allocations: 4 kB / 0.4993 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002383/0.1624, allocations: 39.91 kB / 0.4993 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.584e-05/0.1625, allocations: 16.78 kB / 0.4993 GB, free: 15.36 MB / 398.1 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 0.0001747/0.1626, allocations: 153.7 kB / 0.4995 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001107/0.1628, allocations: 27.66 kB / 0.4995 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001114/0.1629, allocations: 37.7 kB / 0.4995 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.1629, allocations: 4 kB / 0.4995 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.1629, allocations: 4 kB / 0.4995 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.1629, allocations: 0 / 0.4995 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001723/0.1646, allocations: 0.9854 MB / 0.5005 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.1647, allocations: 0 / 0.5005 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000349/0.165, allocations: 75.89 kB / 0.5006 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.533e-06/0.165, allocations: 0 / 0.5006 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.747e-05/0.1651, allocations: 15.92 kB / 0.5006 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.026e-05/0.1651, allocations: 7.938 kB / 0.5006 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.1651, allocations: 3.828 kB / 0.5006 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001125/0.1663, allocations: 0.7293 MB / 0.5013 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.601e-05/0.1664, allocations: 100.7 kB / 0.5014 GB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.775e-05/0.1664, allocations: 12 kB / 0.5014 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000281/0.1667, allocations: 15.98 kB / 0.5014 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.531e-05/0.1668, allocations: 23.97 kB / 0.5015 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.163e-05/0.1668, allocations: 19.98 kB / 0.5015 GB, free: 13.03 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001566/0.167, allocations: 156.5 kB / 0.5016 GB, free: 12.88 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.167, allocations: 0 / 0.5016 GB, free: 12.88 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005218/0.1675, allocations: 64 kB / 0.5017 GB, free: 12.81 MB / 398.1 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.0001672/0.1677, allocations: 111.1 kB / 0.5018 GB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000736/0.1685, allocations: 276.1 kB / 0.5021 GB, free: 12.43 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.1685, allocations: 0 / 0.5021 GB, free: 12.43 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003408/0.1688, allocations: 133.1 kB / 0.5022 GB, free: 12.3 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007761/0.1696, allocations: 56.7 kB / 0.5022 GB, free: 12.24 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00193/0.1716, allocations: 0.8595 MB / 0.5031 GB, free: 11.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005416/0.1721, allocations: 0.7681 MB / 0.5038 GB, free: 10.54 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001326/0.1723, allocations: 38.89 kB / 0.5039 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.819e-05/0.1724, allocations: 27.44 kB / 0.5039 GB, free: 10.48 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1724, allocations: 4.562 kB / 0.5039 GB, free: 10.48 MB / 398.1 MB Notification: Performance of Templates: time 0.006523/0.1789, allocations: 2.451 MB / 0.5063 GB, free: 8.035 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches