Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/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_cpp_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001009/0.001008, allocations: 179.5 kB / 16.41 MB, free: 5.703 MB / 13.93 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.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008149/0.000815, allocations: 88.02 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3343/0.3343, allocations: 43.56 MB / 362.7 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003603/0.0003603, allocations: 12 kB / 431.4 MB, free: 6.176 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1174, allocations: 58.85 MB / 490.2 MB, free: 11.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.0005503/0.118, allocations: 220.4 kB / 490.4 MB, free: 11.03 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00164/0.1197, allocations: 1.193 MB / 491.6 MB, free: 9.832 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.827e-05/0.1197, allocations: 4 kB / 491.6 MB, free: 9.828 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.918e-06/0.1197, allocations: 0 / 491.6 MB, free: 9.828 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001335/0.1199, allocations: 11.92 kB / 491.7 MB, free: 9.816 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005572/0.1204, allocations: 183.6 kB / 491.8 MB, free: 9.637 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.897e-05/0.1205, allocations: 4 kB / 491.8 MB, free: 9.633 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.37e-05/0.1205, allocations: 0 / 491.8 MB, free: 9.633 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.944e-05/0.1205, allocations: 7.984 kB / 491.8 MB, free: 9.625 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.628e-05/0.1206, allocations: 7.984 kB / 491.8 MB, free: 9.617 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.248e-06/0.1206, allocations: 0 / 491.8 MB, free: 9.617 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007214/0.1214, allocations: 499.3 kB / 492.3 MB, free: 9.129 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.332e-06/0.1214, allocations: 4 kB / 492.3 MB, free: 9.125 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.658e-05/0.1214, allocations: 25.7 kB / 492.4 MB, free: 9.094 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001789/0.1216, allocations: 119.7 kB / 492.5 MB, free: 8.977 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.268e-06/0.1216, allocations: 4 kB / 492.5 MB, free: 8.973 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1216, allocations: 0 / 492.5 MB, free: 8.973 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.077e-06/0.1216, allocations: 3.938 kB / 492.5 MB, free: 8.969 MB / 378.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.0003529/0.122, allocations: 385.2 kB / 492.9 MB, free: 8.539 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.122, allocations: 12.03 kB / 492.9 MB, free: 8.527 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.94e-05/0.1221, allocations: 0 / 492.9 MB, free: 8.527 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001147/0.1222, allocations: 167 kB / 493 MB, free: 8.324 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.1222, allocations: 0 / 493 MB, free: 8.324 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.18e-05/0.1222, allocations: 7.938 kB / 493 MB, free: 8.316 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.525e-05/0.1223, allocations: 33.69 kB / 493.1 MB, free: 8.277 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.012e-06/0.1223, allocations: 0 / 493.1 MB, free: 8.277 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.1224, allocations: 3.984 kB / 493.1 MB, free: 8.273 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.1224, allocations: 0 / 493.1 MB, free: 8.273 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.689e-05/0.1224, allocations: 4 kB / 493.1 MB, free: 8.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001255/0.1225, allocations: 145.6 kB / 493.2 MB, free: 8.078 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.057e-05/0.1226, allocations: 26.61 kB / 493.3 MB, free: 8.043 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.549e-05/0.1226, allocations: 16.78 kB / 493.3 MB, free: 8.023 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.37e-06/0.1226, allocations: 0 / 493.3 MB, free: 8.023 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.212e-05/0.1227, allocations: 60.33 kB / 493.3 MB, free: 7.949 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1227, allocations: 0 / 493.3 MB, free: 7.949 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001568/0.1228, allocations: 59.41 kB / 493.4 MB, free: 7.879 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.503e-05/0.1229, allocations: 77.23 kB / 493.5 MB, free: 7.785 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.932e-05/0.123, allocations: 105.8 kB / 493.6 MB, free: 7.672 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.315e-05/0.123, allocations: 25.7 kB / 493.6 MB, free: 7.641 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.084e-05/0.123, allocations: 80.14 kB / 493.7 MB, free: 7.559 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.363e-05/0.123, allocations: 0 / 493.7 MB, free: 7.559 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.345e-06/0.1231, allocations: 0 / 493.7 MB, free: 7.559 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.1232, allocations: 318.8 kB / 494 MB, free: 7.238 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.426e-06/0.1232, allocations: 3.938 kB / 494 MB, free: 7.234 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.312e-06/0.1232, allocations: 4.125 kB / 494 MB, free: 7.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.492e-05/0.1232, allocations: 29.7 kB / 494 MB, free: 7.195 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.1232, allocations: 0 / 494 MB, free: 7.195 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.276e-05/0.1233, allocations: 67.39 kB / 494.1 MB, free: 7.117 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.021e-05/0.1233, allocations: 29.7 kB / 494.1 MB, free: 7.082 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.1234, allocations: 0 / 494.1 MB, free: 7.082 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.1234, allocations: 0 / 494.1 MB, free: 7.082 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.92e-07/0.1234, allocations: 0 / 494.1 MB, free: 7.082 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.1234, allocations: 4 kB / 494.1 MB, free: 7.078 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.747e-05/0.1234, allocations: 0 / 494.1 MB, free: 7.078 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.241e-06/0.1234, allocations: 8.031 kB / 494.1 MB, free: 7.07 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.598e-05/0.1235, allocations: 143.5 kB / 494.3 MB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.947e-06/0.1235, allocations: 7.906 kB / 494.3 MB, free: 6.906 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.193e-05/0.1235, allocations: 3.125 kB / 494.3 MB, free: 6.902 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.1236, allocations: 0 / 494.3 MB, free: 6.902 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1236, allocations: 3.938 kB / 494.3 MB, free: 6.898 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.1236, allocations: 3.938 kB / 494.3 MB, free: 6.895 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.592e-05/0.1237, allocations: 157.6 kB / 494.4 MB, free: 6.691 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.1237, allocations: 0 / 494.4 MB, free: 6.691 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.1237, allocations: 4 kB / 494.4 MB, free: 6.688 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/0.1237, allocations: 0 / 494.4 MB, free: 6.688 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.1237, allocations: 0 / 494.4 MB, free: 6.688 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.1237, allocations: 0 / 494.4 MB, free: 6.688 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.1237, allocations: 8 kB / 494.5 MB, free: 6.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001043/0.1238, allocations: 94.78 kB / 494.5 MB, free: 6.562 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.574e-05/0.1239, allocations: 77.11 kB / 494.6 MB, free: 6.469 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.471e-05/0.1239, allocations: 0 / 494.6 MB, free: 6.469 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.276e-05/0.1239, allocations: 4.031 kB / 494.6 MB, free: 6.465 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.938e-05/0.124, allocations: 0 / 494.6 MB, free: 6.465 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.712e-06/0.124, allocations: 4 kB / 494.6 MB, free: 6.461 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.261e-05/0.124, allocations: 75.28 kB / 494.7 MB, free: 6.387 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.124, allocations: 0 / 494.7 MB, free: 6.387 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003021/0.1243, allocations: 67.98 kB / 494.8 MB, free: 6.32 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005213/0.1249, allocations: 333.9 kB / 495.1 MB, free: 6.023 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.706e-05/0.125, allocations: 63.39 kB / 495.2 MB, free: 5.949 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.125, allocations: 0 / 495.2 MB, free: 5.949 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.277e-05/0.125, allocations: 55.41 kB / 495.2 MB, free: 5.883 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001174/0.1251, allocations: 4 kB / 495.2 MB, free: 5.879 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001501/0.1253, allocations: 112.5 kB / 495.3 MB, free: 5.734 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001997/0.1255, allocations: 0.677 MB / 496 MB, free: 5.031 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.594e-06/0.1255, allocations: 7.438 kB / 496 MB, free: 5.023 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.1255, allocations: 0 / 496 MB, free: 5.023 MB / 378.7 MB Notification: Performance of Templates: time 0.002871/0.1284, allocations: 1.67 MB / 497.7 MB, free: 3.352 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches