Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.00137/0.00137, allocations: 113 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.001574/0.001574, allocations: 217.4 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.524/1.524, allocations: 230.6 MB / 254.8 MB, free: 15.1 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.2501/0.2501, allocations: 46.92 MB / 357.8 MB, free: 10.32 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.TestSpeed,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_TestSpeed",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_TestSpeed",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003052/0.003052, allocations: 63.91 kB / 0.4916 GB, free: 7.988 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1328, allocations: 65.98 MB / 0.556 GB, free: 5.883 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004422/0.1372, allocations: 2.644 MB / 0.5586 GB, free: 3.223 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00156/0.1388, allocations: 0.7322 MB / 0.5593 GB, free: 2.484 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002026/0.139, allocations: 11.94 kB / 0.5593 GB, free: 2.473 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001853/0.1392, allocations: 43.47 kB / 0.5594 GB, free: 2.43 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000206/0.1394, allocations: 87.2 kB / 0.5595 GB, free: 2.344 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003757/0.1398, allocations: 107.8 kB / 0.5596 GB, free: 2.238 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004478/0.1402, allocations: 338.5 kB / 0.5599 GB, free: 1.906 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001871/0.1404, allocations: 57.95 kB / 0.5599 GB, free: 1.84 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002714/0.1407, allocations: 147.4 kB / 0.5601 GB, free: 1.695 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002011/0.1409, allocations: 135.3 kB / 0.5602 GB, free: 1.562 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.196e-05/0.1409, allocations: 20 kB / 0.5602 GB, free: 1.543 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.174e-05/0.141, allocations: 28 kB / 0.5603 GB, free: 1.516 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.493e-05/0.141, allocations: 51.83 kB / 0.5603 GB, free: 1.465 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001524/0.1412, allocations: 147.2 kB / 0.5605 GB, free: 1.32 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004586/0.1417, allocations: 306.6 kB / 0.5607 GB, free: 1.02 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1417, allocations: 0 / 0.5607 GB, free: 1.02 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1417, allocations: 4 kB / 0.5607 GB, free: 1.016 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.1417, allocations: 0 / 0.5607 GB, free: 1.016 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001101/0.1428, allocations: 0.6038 MB / 0.5613 GB, free: 372 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.1428, allocations: 12.03 kB / 0.5613 GB, free: 360 kB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.299e-05/0.1428, allocations: 8.75 kB / 0.5614 GB, free: 352 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.406e-05/0.1429, allocations: 62.72 kB / 0.5614 GB, free: 280 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002639/0.1432, allocations: 48.73 kB / 0.5615 GB, free: 232 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000497/0.1437, allocations: 276.9 kB / 0.5617 GB, free: 15.92 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.799e-05/0.1437, allocations: 20.88 kB / 0.5617 GB, free: 15.9 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.039e-05/0.1438, allocations: 40.25 kB / 0.5618 GB, free: 15.86 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005215/0.1443, allocations: 273.9 kB / 0.562 GB, free: 15.57 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.613e-05/0.1443, allocations: 11.95 kB / 0.5621 GB, free: 15.55 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.667e-05/0.1443, allocations: 11.94 kB / 0.5621 GB, free: 15.54 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.1443, allocations: 4 kB / 0.5621 GB, free: 15.54 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004556/0.1448, allocations: 191.7 kB / 0.5623 GB, free: 15.35 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001896/0.1467, allocations: 1.302 MB / 0.5635 GB, free: 13.95 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004775/0.1472, allocations: 238.3 kB / 0.5638 GB, free: 13.68 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002224/0.1474, allocations: 95.38 kB / 0.5638 GB, free: 13.57 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.187e-05/0.1474, allocations: 8 kB / 0.5639 GB, free: 13.56 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.632e-05/0.1475, allocations: 42.69 kB / 0.5639 GB, free: 13.51 MB / 430.1 MB Notification: Performance of pre-optimization done (n=26): time 2.634e-06/0.1475, allocations: 0 / 0.5639 GB, free: 13.51 MB / 430.1 MB Notification: Performance of matching and sorting (n=32): time 0.0031/0.1506, allocations: 1.582 MB / 0.5654 GB, free: 11.72 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.1507, allocations: 136.5 kB / 0.5656 GB, free: 11.56 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002856/0.151, allocations: 225 kB / 0.5658 GB, free: 11.33 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.273e-05/0.151, allocations: 29.7 kB / 0.5658 GB, free: 11.29 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001658/0.1512, allocations: 184.5 kB / 0.566 GB, free: 11.11 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/0.1513, allocations: 119 kB / 0.5661 GB, free: 10.99 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/0.1514, allocations: 66.12 kB / 0.5662 GB, free: 10.92 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001906/0.1516, allocations: 342.8 kB / 0.5665 GB, free: 10.58 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002926/0.1519, allocations: 104.9 kB / 0.5666 GB, free: 10.48 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004057/0.1523, allocations: 245.4 kB / 0.5668 GB, free: 10.18 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006949/0.153, allocations: 366.1 kB / 0.5672 GB, free: 9.758 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.153, allocations: 3.938 kB / 0.5672 GB, free: 9.754 MB / 430.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000883/0.1539, allocations: 401 kB / 0.5676 GB, free: 9.355 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.1539, allocations: 8.094 kB / 0.5676 GB, free: 9.348 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.1539, allocations: 7.938 kB / 0.5676 GB, free: 9.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.018e-05/0.1539, allocations: 4 kB / 0.5676 GB, free: 9.336 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004035/0.1544, allocations: 99.88 kB / 0.5677 GB, free: 9.238 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.522e-05/0.1544, allocations: 11.94 kB / 0.5677 GB, free: 9.227 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002369/0.1546, allocations: 19.98 kB / 0.5677 GB, free: 9.207 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.416e-05/0.1546, allocations: 28.2 kB / 0.5677 GB, free: 9.18 MB / 430.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.0001907/0.1548, allocations: 151.8 kB / 0.5679 GB, free: 9.023 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/0.1549, allocations: 31.81 kB / 0.5679 GB, free: 8.992 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.933e-05/0.155, allocations: 37.64 kB / 0.5679 GB, free: 8.953 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.155, allocations: 8 kB / 0.568 GB, free: 8.945 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.155, allocations: 0 / 0.568 GB, free: 8.945 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.155, allocations: 0 / 0.568 GB, free: 8.945 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001726/0.1568, allocations: 0.9817 MB / 0.5689 GB, free: 7.898 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.1568, allocations: 0 / 0.5689 GB, free: 7.898 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003812/0.1572, allocations: 83.95 kB / 0.569 GB, free: 7.816 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.234e-06/0.1572, allocations: 3.938 kB / 0.569 GB, free: 7.812 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.383e-05/0.1572, allocations: 8 kB / 0.569 GB, free: 7.805 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.747e-06/0.1572, allocations: 7.984 kB / 0.569 GB, free: 7.797 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/0.1572, allocations: 3.938 kB / 0.569 GB, free: 7.793 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001138/0.1583, allocations: 0.7333 MB / 0.5697 GB, free: 7.035 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.662e-05/0.1584, allocations: 100.9 kB / 0.5698 GB, free: 6.918 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.612e-05/0.1585, allocations: 16 kB / 0.5698 GB, free: 6.902 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002946/0.1588, allocations: 19.98 kB / 0.5699 GB, free: 6.883 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.743e-05/0.1589, allocations: 27.91 kB / 0.5699 GB, free: 6.855 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/0.1589, allocations: 11.98 kB / 0.5699 GB, free: 6.844 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001765/0.1591, allocations: 160.5 kB / 0.5701 GB, free: 6.688 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1591, allocations: 192 / 0.5701 GB, free: 6.688 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005314/0.1596, allocations: 64 kB / 0.5701 GB, free: 6.625 MB / 430.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.001517/0.1611, allocations: 1.278 MB / 0.5714 GB, free: 5.312 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0007695/0.1619, allocations: 264.3 kB / 0.5716 GB, free: 5.055 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.1619, allocations: 4 kB / 0.5716 GB, free: 5.051 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003077/0.1622, allocations: 128.5 kB / 0.5717 GB, free: 4.926 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007114/0.1629, allocations: 47.69 kB / 0.5718 GB, free: 4.883 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005249/0.1682, allocations: 3.515 MB / 0.5752 GB, free: 1.137 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004846/0.1686, allocations: 0.772 MB / 0.576 GB, free: 348 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001562/0.1688, allocations: 34.95 kB / 0.576 GB, free: 312 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001735/0.169, allocations: 95.34 kB / 0.5761 GB, free: 216 kB / 430.1 MB Notification: Performance of SimCode: time 6.51e-07/0.169, allocations: 0 / 0.5761 GB, free: 216 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02476/0.1937, allocations: 5.45 MB / 0.5814 GB, free: 10.87 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.057/9.251, allocations: 3.984 kB / 0.5814 GB, free: 10.86 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219824 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 12.859470992989372]