Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.TestRegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|yRegStep|yRegStep_der",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|yRegStep|yRegStep_der",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008939/0.0008939, allocations: 99.19 kB / 17.35 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001003/0.001003, allocations: 201.1 kB / 18.28 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.8 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1902/0.1902, allocations: 46.19 MB / 345.2 MB, free: 11.4 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002659/0.000266, allocations: 11.98 kB / 419.5 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1103, allocations: 63.55 MB / 483.1 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegStep): time 0.0007256/0.1111, allocations: 226.8 kB / 483.3 MB, free: 3.941 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003759/0.1115, allocations: 102.4 kB / 483.4 MB, free: 3.844 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.371e-05/0.1115, allocations: 0 / 483.4 MB, free: 3.844 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.772e-05/0.1116, allocations: 0 / 483.4 MB, free: 3.844 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002047/0.1118, allocations: 23.91 kB / 483.4 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.702e-05/0.1118, allocations: 0 / 483.4 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.052e-05/0.1119, allocations: 4 kB / 483.4 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.615e-05/0.1119, allocations: 3.984 kB / 483.4 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.714e-05/0.1119, allocations: 0 / 483.4 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.377e-05/0.112, allocations: 11.94 kB / 483.4 MB, free: 3.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.053e-05/0.112, allocations: 4 kB / 483.4 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.377e-05/0.1121, allocations: 15.98 kB / 483.5 MB, free: 3.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.254e-05/0.1121, allocations: 4 kB / 483.5 MB, free: 3.777 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.032e-05/0.1121, allocations: 33.62 kB / 483.5 MB, free: 3.738 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.795e-05/0.1122, allocations: 19.91 kB / 483.5 MB, free: 3.719 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1122, allocations: 4 kB / 483.5 MB, free: 3.715 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1122, allocations: 3.938 kB / 483.5 MB, free: 3.711 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.477e-06/0.1123, allocations: 0 / 483.5 MB, free: 3.711 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003119/0.1126, allocations: 315.6 kB / 483.8 MB, free: 3.352 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.1126, allocations: 12.88 kB / 483.8 MB, free: 3.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.843e-05/0.1127, allocations: 0.9375 kB / 483.8 MB, free: 3.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001267/0.1128, allocations: 160.4 kB / 484 MB, free: 3.145 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.057e-06/0.1128, allocations: 384 / 484 MB, free: 3.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.723e-05/0.1128, allocations: 8.375 kB / 484 MB, free: 3.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.882e-05/0.1129, allocations: 34.25 kB / 484 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.113, allocations: 192 / 484 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.788e-06/0.113, allocations: 3.938 kB / 484 MB, free: 3.094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.113, allocations: 0 / 484 MB, free: 3.094 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.927e-05/0.113, allocations: 7.938 kB / 484.1 MB, free: 3.086 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001535/0.1132, allocations: 158 kB / 484.2 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001774/0.1134, allocations: 42.59 kB / 484.3 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.052e-05/0.1134, allocations: 12.86 kB / 484.3 MB, free: 2.816 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003705/0.1138, allocations: 125.2 kB / 484.4 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.291e-05/0.1138, allocations: 34.55 kB / 484.4 MB, free: 2.633 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.1138, allocations: 0 / 484.4 MB, free: 2.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.001363/0.1152, allocations: 229.2 kB / 484.6 MB, free: 2.402 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.349e-05/0.1153, allocations: 51.41 kB / 484.7 MB, free: 2.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.316e-05/0.1153, allocations: 93.86 kB / 484.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.1153, allocations: 25.7 kB / 484.8 MB, free: 2.207 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.968e-05/0.1154, allocations: 80.14 kB / 484.9 MB, free: 2.125 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.977e-05/0.1154, allocations: 11.81 kB / 484.9 MB, free: 2.113 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.876e-05/0.1155, allocations: 21.83 kB / 484.9 MB, free: 2.086 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.1156, allocations: 310.8 kB / 485.2 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.567e-05/0.1157, allocations: 27.92 kB / 485.3 MB, free: 1.746 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.964e-05/0.1158, allocations: 27.92 kB / 485.3 MB, free: 1.719 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001652/0.116, allocations: 52.83 kB / 485.3 MB, free: 1.664 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.51e-07/0.116, allocations: 0 / 485.3 MB, free: 1.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002347/0.1162, allocations: 81.66 kB / 485.4 MB, free: 1.578 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.1162, allocations: 11.94 kB / 485.4 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.1162, allocations: 4 kB / 485.4 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.1163, allocations: 0 / 485.4 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.1164, allocations: 19.92 kB / 485.4 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.1164, allocations: 0 / 485.4 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.437e-05/0.1165, allocations: 15.98 kB / 485.5 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-06/0.1165, allocations: 0 / 485.5 MB, free: 1.527 MB / 350.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 8.875e-05/0.1166, allocations: 109.8 kB / 485.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.539e-05/0.1167, allocations: 15.84 kB / 485.6 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002941/0.117, allocations: 93.2 kB / 485.7 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.117, allocations: 3.938 kB / 485.7 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.117, allocations: 0 / 485.7 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.117, allocations: 4 kB / 485.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008401/0.1178, allocations: 383.2 kB / 486.1 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1179, allocations: 0 / 486.1 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.673e-05/0.118, allocations: 15.98 kB / 486.1 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.118, allocations: 4.25 kB / 486.1 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.118, allocations: 0 / 486.1 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.118, allocations: 8 kB / 486.1 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.118, allocations: 0 / 486.1 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002683/0.1183, allocations: 188.3 kB / 486.3 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.008e-05/0.1183, allocations: 81.02 kB / 486.4 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.624e-05/0.1184, allocations: 4 kB / 486.4 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/0.1185, allocations: 7.984 kB / 486.4 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.627e-05/0.1185, allocations: 8 kB / 486.4 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-06/0.1185, allocations: 0 / 486.4 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.489e-05/0.1185, allocations: 79.28 kB / 486.4 MB, free: 444 kB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1186, allocations: 0 / 486.4 MB, free: 444 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.000234/0.1188, allocations: 8 kB / 486.5 MB, free: 436 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (5): * Single equations (assignments): 5 * 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.0001684/0.119, allocations: 107.6 kB / 486.6 MB, free: 316 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000237/0.1192, allocations: 63.94 kB / 486.6 MB, free: 252 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.363e-06/0.1192, allocations: 0 / 486.6 MB, free: 252 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.859e-05/0.1193, allocations: 31.91 kB / 486.7 MB, free: 220 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002556/0.1196, allocations: 8 kB / 486.7 MB, free: 212 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004724/0.1201, allocations: 139.6 kB / 486.8 MB, free: 40 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003785/0.1205, allocations: 0.6809 MB / 487.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.659e-05/0.1205, allocations: 8 kB / 487.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.844e-05/0.1206, allocations: 7.438 kB / 487.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of SimCode: time 8.11e-07/0.1206, allocations: 0 / 487.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of Templates: time 0.00368/0.1243, allocations: 0.6314 MB / 488.1 MB, free: 14.69 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegStep/TestRegStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches