Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009176/0.0009176, allocations: 180 kB / 16.08 MB, free: 5.523 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.564/1.564, allocations: 205.6 MB / 222.4 MB, free: 13.68 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008267/0.0008269, allocations: 94.25 kB / 270.8 MB, free: 13.2 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2404/0.2404, allocations: 43.68 MB / 362.7 MB, free: 11.07 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003955/0.0003955, allocations: 12 kB / 432.3 MB, free: 19.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1453/0.1457, allocations: 58.86 MB / 491.2 MB, free: 8.148 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.0007156/0.1465, allocations: 224.7 kB / 491.4 MB, free: 7.926 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002551/0.1491, allocations: 2.096 MB / 493.5 MB, free: 5.621 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.528e-05/0.1491, allocations: 0 / 493.5 MB, free: 5.621 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 2.202e-05/0.1491, allocations: 0 / 493.5 MB, free: 5.621 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002304/0.1494, allocations: 0 / 493.5 MB, free: 5.621 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001445/0.1508, allocations: 195.5 kB / 493.7 MB, free: 5.43 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 4.497e-05/0.1509, allocations: 11.94 kB / 493.7 MB, free: 5.418 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.954e-05/0.151, allocations: 3.984 kB / 493.7 MB, free: 5.414 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.607e-05/0.151, allocations: 3.938 kB / 493.7 MB, free: 5.41 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.673e-05/0.1511, allocations: 11.98 kB / 493.7 MB, free: 5.398 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.897e-06/0.1511, allocations: 0 / 493.7 MB, free: 5.398 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002987/0.1541, allocations: 0.6028 MB / 494.3 MB, free: 4.828 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 1.136e-05/0.1541, allocations: 4 kB / 494.3 MB, free: 4.824 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 3.657e-05/0.1542, allocations: 25.7 kB / 494.3 MB, free: 4.793 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002888/0.1544, allocations: 179.6 kB / 494.5 MB, free: 4.617 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1545, allocations: 4 kB / 494.5 MB, free: 4.613 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1545, allocations: 0 / 494.5 MB, free: 4.613 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.1545, allocations: 0 / 494.5 MB, free: 4.613 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004215/0.1549, allocations: 389.1 kB / 494.9 MB, free: 4.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.155, allocations: 12.03 kB / 494.9 MB, free: 4.168 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.411e-05/0.155, allocations: 0.9375 kB / 494.9 MB, free: 4.168 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.1551, allocations: 160.4 kB / 495.1 MB, free: 3.973 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.648e-05/0.1552, allocations: 4.375 kB / 495.1 MB, free: 3.969 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.428e-06/0.1552, allocations: 4.375 kB / 495.1 MB, free: 3.965 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.725e-05/0.1553, allocations: 29.83 kB / 495.1 MB, free: 3.93 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.1553, allocations: 0 / 495.1 MB, free: 3.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.1553, allocations: 3.984 kB / 495.1 MB, free: 3.926 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.932e-06/0.1553, allocations: 8 kB / 495.1 MB, free: 3.918 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.976e-05/0.1553, allocations: 3.938 kB / 495.1 MB, free: 3.914 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001206/0.1555, allocations: 145.7 kB / 495.3 MB, free: 3.723 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.302e-05/0.1555, allocations: 18.61 kB / 495.3 MB, free: 3.695 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.341e-05/0.1555, allocations: 4.859 kB / 495.3 MB, free: 3.688 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.628e-06/0.1555, allocations: 0 / 495.3 MB, free: 3.688 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.028e-05/0.1556, allocations: 72.25 kB / 495.3 MB, free: 3.602 MB / 330.7 MB Notification: Performance of pre-optimization done (n=1): time 7.41e-07/0.1556, allocations: 0 / 495.3 MB, free: 3.602 MB / 330.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001818/0.1558, allocations: 71.33 kB / 495.4 MB, free: 3.52 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.175e-05/0.1559, allocations: 77.11 kB / 495.5 MB, free: 3.426 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.995e-05/0.1559, allocations: 97.84 kB / 495.6 MB, free: 3.32 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.1559, allocations: 25.7 kB / 495.6 MB, free: 3.289 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.965e-05/0.156, allocations: 80.14 kB / 495.7 MB, free: 3.207 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.973e-05/0.156, allocations: 3.906 kB / 495.7 MB, free: 3.203 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.945e-06/0.156, allocations: 4.25 kB / 495.7 MB, free: 3.199 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.1562, allocations: 318.8 kB / 496 MB, free: 2.879 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.101e-05/0.1562, allocations: 0 / 496 MB, free: 2.879 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.738e-06/0.1562, allocations: 3.938 kB / 496 MB, free: 2.875 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.635e-05/0.1563, allocations: 60.27 kB / 496.1 MB, free: 2.801 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.1563, allocations: 0 / 496.1 MB, free: 2.801 MB / 330.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.656e-05/0.1564, allocations: 71.27 kB / 496.1 MB, free: 2.719 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.038e-05/0.1564, allocations: 33.7 kB / 496.2 MB, free: 2.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.1564, allocations: 4.094 kB / 496.2 MB, free: 2.676 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.1565, allocations: 0 / 496.2 MB, free: 2.676 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.432e-06/0.1565, allocations: 0 / 496.2 MB, free: 2.676 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.1565, allocations: 0 / 496.2 MB, free: 2.676 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.704e-05/0.1565, allocations: 0 / 496.2 MB, free: 2.676 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.295e-06/0.1565, allocations: 0 / 496.2 MB, free: 2.676 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001169/0.1566, allocations: 146.4 kB / 496.3 MB, free: 2.52 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.127e-06/0.1566, allocations: 3.938 kB / 496.3 MB, free: 2.516 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.302e-05/0.1567, allocations: 3.125 kB / 496.3 MB, free: 2.512 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.1567, allocations: 8 kB / 496.3 MB, free: 2.504 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1567, allocations: 0 / 496.3 MB, free: 2.504 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.1567, allocations: 3.938 kB / 496.3 MB, free: 2.5 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001032/0.1568, allocations: 145.7 kB / 496.5 MB, free: 2.309 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.1568, allocations: 0 / 496.5 MB, free: 2.309 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.545e-06/0.1568, allocations: 3.938 kB / 496.5 MB, free: 2.305 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.143e-06/0.1568, allocations: 4 kB / 496.5 MB, free: 2.301 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-06/0.1568, allocations: 0 / 496.5 MB, free: 2.301 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.1568, allocations: 0 / 496.5 MB, free: 2.301 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1568, allocations: 0 / 496.5 MB, free: 2.301 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001138/0.157, allocations: 98.77 kB / 496.6 MB, free: 2.18 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.943e-05/0.157, allocations: 81.05 kB / 496.7 MB, free: 2.082 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.533e-05/0.157, allocations: 4 kB / 496.7 MB, free: 2.078 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.426e-05/0.1571, allocations: 4 kB / 496.7 MB, free: 2.074 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.339e-05/0.1571, allocations: 0 / 496.7 MB, free: 2.074 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.1571, allocations: 0 / 496.7 MB, free: 2.074 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.519e-05/0.1571, allocations: 79.28 kB / 496.8 MB, free: 1.996 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1571, allocations: 4.125 kB / 496.8 MB, free: 1.992 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002846/0.1574, allocations: 59.98 kB / 496.8 MB, free: 1.934 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0007614/0.1582, allocations: 379.2 kB / 497.2 MB, free: 1.629 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001126/0.1583, allocations: 67.33 kB / 497.3 MB, free: 1.551 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1583, allocations: 0 / 497.3 MB, free: 1.551 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.176e-05/0.1584, allocations: 55.41 kB / 497.3 MB, free: 1.484 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001428/0.1585, allocations: 11.94 kB / 497.3 MB, free: 1.473 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002188/0.1588, allocations: 78.75 kB / 497.4 MB, free: 1.367 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003183/0.1591, allocations: 0.6692 MB / 498.1 MB, free: 0.6719 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.811e-06/0.1591, allocations: 0 / 498.1 MB, free: 0.6719 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.409e-05/0.1591, allocations: 7.438 kB / 498.1 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1591, allocations: 12.06 kB / 498.1 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of Templates: time 0.004503/0.1636, allocations: 1.573 MB / 499.7 MB, free: 15.09 MB / 346.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestFiles/TestFiles.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches