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.00861/0.00861, allocations: 100 kB / 15.87 MB, free: 6.309 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.001567/0.001567, allocations: 193.3 kB / 16.79 MB, free: 6.238 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.632/1.632, allocations: 205.1 MB / 222.6 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4036/0.4036, allocations: 43.5 MB / 313.5 MB, free: 8.285 MB / 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.001439/0.001439, allocations: 66.56 kB / 382 MB, free: 8.523 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1415, allocations: 57.79 MB / 439.8 MB, free: 14.63 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004024/0.1456, allocations: 2.656 MB / 442.5 MB, free: 11.95 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.1468, allocations: 0.6826 MB / 443.1 MB, free: 11.26 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000148/0.147, allocations: 7.938 kB / 443.2 MB, free: 11.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001926/0.1472, allocations: 35.72 kB / 443.2 MB, free: 11.22 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001564/0.1474, allocations: 67.39 kB / 443.3 MB, free: 11.15 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002558/0.1476, allocations: 75.92 kB / 443.3 MB, free: 11.08 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003508/0.148, allocations: 318.5 kB / 443.6 MB, free: 10.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001805/0.1482, allocations: 78.08 kB / 443.7 MB, free: 10.69 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001797/0.1484, allocations: 119.5 kB / 443.8 MB, free: 10.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001478/0.1485, allocations: 127.4 kB / 444 MB, free: 10.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.64e-05/0.1486, allocations: 16 kB / 444 MB, free: 10.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.886e-05/0.1486, allocations: 15.94 kB / 444 MB, free: 10.42 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.761e-05/0.1487, allocations: 47.84 kB / 444 MB, free: 10.37 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001315/0.1488, allocations: 135.2 kB / 444.2 MB, free: 10.24 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002678/0.1491, allocations: 282.9 kB / 444.4 MB, free: 9.961 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1491, allocations: 0 / 444.4 MB, free: 9.961 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1491, allocations: 4 kB / 444.4 MB, free: 9.957 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.1491, allocations: 0 / 444.4 MB, free: 9.957 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.0008952/0.15, allocations: 0.5807 MB / 445 MB, free: 9.328 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.1501, allocations: 8.031 kB / 445 MB, free: 9.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.415e-05/0.1501, allocations: 36.47 kB / 445.1 MB, free: 9.285 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003139/0.1504, allocations: 263.7 kB / 445.3 MB, free: 8.988 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.1505, allocations: 16.94 kB / 445.3 MB, free: 8.973 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.213e-05/0.1505, allocations: 32.22 kB / 445.4 MB, free: 8.941 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000465/0.151, allocations: 294.2 kB / 445.7 MB, free: 8.629 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.374e-05/0.151, allocations: 11.98 kB / 445.7 MB, free: 8.617 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.333e-05/0.1511, allocations: 8 kB / 445.7 MB, free: 8.609 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.1511, allocations: 8 kB / 445.7 MB, free: 8.602 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004112/0.1515, allocations: 187.7 kB / 445.9 MB, free: 8.418 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00156/0.1531, allocations: 1.302 MB / 447.2 MB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003985/0.1535, allocations: 246.5 kB / 447.4 MB, free: 6.734 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001909/0.1537, allocations: 99.39 kB / 447.5 MB, free: 6.625 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.388e-05/0.1537, allocations: 4 kB / 447.5 MB, free: 6.621 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.61e-05/0.1537, allocations: 42.5 kB / 447.6 MB, free: 6.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.273e-06/0.1537, allocations: 0 / 447.6 MB, free: 6.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=32): time 0.002522/0.1563, allocations: 1.557 MB / 449.1 MB, free: 4.805 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.156e-05/0.1564, allocations: 140.5 kB / 449.3 MB, free: 4.637 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002302/0.1566, allocations: 221 kB / 449.5 MB, free: 4.406 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.613e-05/0.1566, allocations: 33.7 kB / 449.5 MB, free: 4.367 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.1568, allocations: 176.2 kB / 449.7 MB, free: 4.191 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.1569, allocations: 122.3 kB / 449.8 MB, free: 4.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.107e-05/0.157, allocations: 66.14 kB / 449.9 MB, free: 4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.1571, allocations: 342.8 kB / 450.2 MB, free: 3.656 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002428/0.1574, allocations: 100.8 kB / 450.3 MB, free: 3.559 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000315/0.1577, allocations: 233.5 kB / 450.5 MB, free: 3.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006161/0.1583, allocations: 377 kB / 450.9 MB, free: 2.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.1583, allocations: 0 / 450.9 MB, free: 2.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000745/0.1591, allocations: 393.4 kB / 451.3 MB, free: 2.449 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.1591, allocations: 8 kB / 451.3 MB, free: 2.441 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.1591, allocations: 4.406 kB / 451.3 MB, free: 2.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.429e-05/0.1591, allocations: 15.94 kB / 451.3 MB, free: 2.422 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003733/0.1595, allocations: 96.19 kB / 451.4 MB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.71e-05/0.1596, allocations: 12 kB / 451.4 MB, free: 2.316 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001965/0.1598, allocations: 31.98 kB / 451.4 MB, free: 2.285 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-05/0.1598, allocations: 19.98 kB / 451.5 MB, free: 2.266 MB / 382.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.0001445/0.16, allocations: 153.7 kB / 451.6 MB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.693e-05/0.1601, allocations: 27.66 kB / 451.6 MB, free: 2.078 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.498e-05/0.1601, allocations: 41.94 kB / 451.7 MB, free: 2.035 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.1602, allocations: 4 kB / 451.7 MB, free: 2.031 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.1602, allocations: 0 / 451.7 MB, free: 2.031 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.1602, allocations: 11.97 kB / 451.7 MB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001402/0.1616, allocations: 0.9855 MB / 452.7 MB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.1616, allocations: 4.062 kB / 452.7 MB, free: 0.9648 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003442/0.162, allocations: 75.89 kB / 452.8 MB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.162, allocations: 4 kB / 452.8 MB, free: 0.8867 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.823e-05/0.162, allocations: 15.92 kB / 452.8 MB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.162, allocations: 0 / 452.8 MB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.162, allocations: 4 kB / 452.8 MB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009548/0.163, allocations: 0.721 MB / 453.5 MB, free: 124 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.147e-05/0.1631, allocations: 104.7 kB / 453.6 MB, free: 0 / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.2501/0.4132, allocations: 9.797 kB / 453.6 MB, free: 48.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004738/0.4138, allocations: 20.78 kB / 453.6 MB, free: 48.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001665/0.4139, allocations: 26.78 kB / 453.7 MB, free: 48.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.917e-05/0.414, allocations: 11.02 kB / 453.7 MB, free: 48.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002293/0.4142, allocations: 159 kB / 453.8 MB, free: 48.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4142, allocations: 0 / 453.8 MB, free: 48.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000678/0.4149, allocations: 64.19 kB / 453.9 MB, free: 48.41 MB / 382.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.0001805/0.4151, allocations: 112.5 kB / 454 MB, free: 48.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007701/0.4159, allocations: 280.3 kB / 454.3 MB, free: 48.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4159, allocations: 0 / 454.3 MB, free: 48.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002691/0.4162, allocations: 131.3 kB / 454.4 MB, free: 48.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007391/0.4169, allocations: 43.12 kB / 454.4 MB, free: 48.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001392/0.4183, allocations: 0.9783 MB / 455.4 MB, free: 47.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002459/0.4186, allocations: 0.775 MB / 456.2 MB, free: 47.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001466/0.4187, allocations: 31.31 kB / 456.2 MB, free: 47.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.767e-05/0.4188, allocations: 27.53 kB / 456.3 MB, free: 47.04 MB / 382.1 MB Notification: Performance of SimCode: time 3.9e-07/0.4188, allocations: 4 kB / 456.3 MB, free: 47.03 MB / 382.1 MB Notification: Performance of Templates: time 0.00546/0.4243, allocations: 2.201 MB / 458.5 MB, free: 46.92 MB / 382.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","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches