Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.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.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 97.17 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 181.2 kB / 16.92 MB, free: 6.684 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.716/1.716, allocations: 205.4 MB / 223.1 MB, free: 5.234 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.3921/0.3921, allocations: 43.57 MB / 315 MB, free: 9.23 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.0005521/0.0005525, allocations: 18.64 kB / 384.6 MB, free: 7.875 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1389, allocations: 58.87 MB / 443.4 MB, free: 12.91 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.0007268/0.1397, allocations: 232.4 kB / 443.7 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002536/0.1422, allocations: 1.256 MB / 444.9 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.015e-05/0.1423, allocations: 0 / 444.9 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.704e-05/0.1423, allocations: 4 kB / 444.9 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002088/0.1425, allocations: 4 kB / 444.9 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001376/0.1439, allocations: 195.5 kB / 445.1 MB, free: 11.22 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.477e-05/0.144, allocations: 4 kB / 445.1 MB, free: 11.21 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.415e-05/0.144, allocations: 7.984 kB / 445.1 MB, free: 11.21 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.601e-05/0.1441, allocations: 3.938 kB / 445.1 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.812e-05/0.1441, allocations: 8 kB / 445.1 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.162e-05/0.1442, allocations: 0 / 445.1 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00325/0.1474, allocations: 0.6161 MB / 445.8 MB, free: 10.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.253e-05/0.1474, allocations: 0 / 445.8 MB, free: 10.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.242e-05/0.1475, allocations: 29.7 kB / 445.8 MB, free: 10.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004938/0.148, allocations: 175.6 kB / 446 MB, free: 10.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.148, allocations: 0 / 446 MB, free: 10.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.148, allocations: 0 / 446 MB, free: 10.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.331e-06/0.148, allocations: 4 kB / 446 MB, free: 10.41 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000499/0.1485, allocations: 385.1 kB / 446.3 MB, free: 9.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/0.1486, allocations: 16.03 kB / 446.4 MB, free: 9.965 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.943e-05/0.1487, allocations: 0.9375 kB / 446.4 MB, free: 9.965 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001374/0.1488, allocations: 164.4 kB / 446.5 MB, free: 9.766 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.1488, allocations: 384 / 446.5 MB, free: 9.766 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.445e-05/0.1488, allocations: 4.359 kB / 446.5 MB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001114/0.149, allocations: 37.81 kB / 446.6 MB, free: 9.719 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.216e-06/0.149, allocations: 3.938 kB / 446.6 MB, free: 9.715 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.149, allocations: 0 / 446.6 MB, free: 9.715 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.149, allocations: 0 / 446.6 MB, free: 9.715 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.021e-05/0.149, allocations: 4 kB / 446.6 MB, free: 9.711 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001645/0.1492, allocations: 149.7 kB / 446.7 MB, free: 9.516 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.229e-05/0.1492, allocations: 22.61 kB / 446.7 MB, free: 9.484 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.753e-05/0.1493, allocations: 4.859 kB / 446.7 MB, free: 9.477 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.086e-05/0.1493, allocations: 0 / 446.7 MB, free: 9.477 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.343e-05/0.1494, allocations: 64.27 kB / 446.8 MB, free: 9.398 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 3.096e-06/0.1494, allocations: 0 / 446.8 MB, free: 9.398 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002098/0.1496, allocations: 71.33 kB / 446.9 MB, free: 9.316 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.683e-05/0.1497, allocations: 81.11 kB / 446.9 MB, free: 9.219 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.05e-05/0.1498, allocations: 93.86 kB / 447 MB, free: 9.117 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.1498, allocations: 25.7 kB / 447.1 MB, free: 9.086 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.06e-05/0.1498, allocations: 80.14 kB / 447.1 MB, free: 9.004 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.136e-05/0.1499, allocations: 0 / 447.1 MB, free: 9.004 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.835e-05/0.1499, allocations: 13.7 kB / 447.2 MB, free: 8.984 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.15, allocations: 319.1 kB / 447.5 MB, free: 8.664 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.029e-05/0.15, allocations: 4 kB / 447.5 MB, free: 8.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.686e-06/0.15, allocations: 0 / 447.5 MB, free: 8.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.149e-05/0.1501, allocations: 68.14 kB / 447.5 MB, free: 8.578 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1501, allocations: 0 / 447.5 MB, free: 8.578 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.913e-05/0.1502, allocations: 67.33 kB / 447.6 MB, free: 8.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.791e-05/0.1503, allocations: 33.7 kB / 447.6 MB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.1503, allocations: 3.938 kB / 447.6 MB, free: 8.457 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.1503, allocations: 0 / 447.6 MB, free: 8.457 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.193e-06/0.1503, allocations: 4.094 kB / 447.6 MB, free: 8.453 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.1503, allocations: 0 / 447.6 MB, free: 8.453 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.551e-05/0.1503, allocations: 7.906 kB / 447.7 MB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.164e-06/0.1503, allocations: 0 / 447.7 MB, free: 8.445 MB / 382.1 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 8.744e-05/0.1504, allocations: 135.5 kB / 447.8 MB, free: 8.297 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.149e-05/0.1505, allocations: 7.922 kB / 447.8 MB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.22e-05/0.1505, allocations: 3.125 kB / 447.8 MB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.1505, allocations: 8 kB / 447.8 MB, free: 8.277 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.1505, allocations: 0 / 447.8 MB, free: 8.277 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.1505, allocations: 4 kB / 447.8 MB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001134/0.1506, allocations: 141.7 kB / 447.9 MB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.277e-06/0.1506, allocations: 3.984 kB / 448 MB, free: 8.082 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.081e-06/0.1506, allocations: 7.938 kB / 448 MB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.1506, allocations: 3.938 kB / 448 MB, free: 8.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.814e-06/0.1507, allocations: 0 / 448 MB, free: 8.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1507, allocations: 0 / 448 MB, free: 8.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1507, allocations: 0 / 448 MB, free: 8.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001222/0.1508, allocations: 94.83 kB / 448.1 MB, free: 7.953 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.303e-05/0.1509, allocations: 85.05 kB / 448.1 MB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.866e-05/0.1509, allocations: 4 kB / 448.1 MB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.131e-05/0.1509, allocations: 0 / 448.1 MB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.932e-05/0.1509, allocations: 0 / 448.1 MB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-06/0.1509, allocations: 0 / 448.1 MB, free: 7.848 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.425e-05/0.151, allocations: 79.28 kB / 448.2 MB, free: 7.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.151, allocations: 0 / 448.2 MB, free: 7.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003475/0.1513, allocations: 59.98 kB / 448.3 MB, free: 7.711 MB / 382.1 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.0007484/0.1521, allocations: 337.9 kB / 448.6 MB, free: 7.371 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001159/0.1522, allocations: 63.34 kB / 448.7 MB, free: 7.297 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.1522, allocations: 4.062 kB / 448.7 MB, free: 7.293 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001334/0.1524, allocations: 63.39 kB / 448.7 MB, free: 7.219 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001474/0.1525, allocations: 3.938 kB / 448.7 MB, free: 7.215 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000247/0.1528, allocations: 78.77 kB / 448.8 MB, free: 7.109 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004588/0.1532, allocations: 0.677 MB / 449.5 MB, free: 6.406 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.472e-06/0.1533, allocations: 0 / 449.5 MB, free: 6.406 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.413e-05/0.1533, allocations: 7.438 kB / 449.5 MB, free: 6.398 MB / 382.1 MB Notification: Performance of SimCode: time 3.507e-06/0.1533, allocations: 0 / 449.5 MB, free: 6.398 MB / 382.1 MB Notification: Performance of Templates: time 0.00514/0.1584, allocations: 1.585 MB / 451.1 MB, free: 4.812 MB / 382.1 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