Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Fluid.TestUtilities.TestRegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|yRegStep|yRegStep_der",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|yRegStep|yRegStep_der",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 110.9 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001855/0.001855, allocations: 193.3 kB / 18.25 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2/0.2, allocations: 44.18 MB / 336.2 MB, free: 2.965 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 69.06 kB / 407.9 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1127, allocations: 60.83 MB / 468.7 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegStep): time 0.001727/0.1145, allocations: 0.5519 MB / 469.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003152/0.1148, allocations: 110.1 kB / 469.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.505e-05/0.1148, allocations: 4 kB / 469.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.737e-05/0.1148, allocations: 0 / 469.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002102/0.1151, allocations: 15.94 kB / 469.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.675e-05/0.1151, allocations: 0 / 469.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.572e-05/0.1152, allocations: 7.984 kB / 469.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.44e-05/0.1152, allocations: 0 / 469.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.362e-05/0.1152, allocations: 4 kB / 469.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.29e-05/0.1153, allocations: 0 / 469.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.207e-05/0.1153, allocations: 7.875 kB / 469.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.995e-05/0.1154, allocations: 27.97 kB / 469.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.234e-05/0.1154, allocations: 7.984 kB / 469.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.709e-05/0.1154, allocations: 0 / 469.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.238e-05/0.1155, allocations: 19.86 kB / 469.5 MB, free: 14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.1155, allocations: 4 kB / 469.5 MB, free: 14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.1155, allocations: 0 / 469.5 MB, free: 14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.69e-06/0.1155, allocations: 0 / 469.5 MB, free: 14 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.0003171/0.1159, allocations: 315.6 kB / 469.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.1159, allocations: 12.03 kB / 469.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.755e-05/0.1159, allocations: 0.9375 kB / 469.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001004/0.1161, allocations: 160.4 kB / 469.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.909e-06/0.1161, allocations: 4.375 kB / 470 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.168e-05/0.1161, allocations: 8.375 kB / 470 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.611e-05/0.1162, allocations: 34.25 kB / 470 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.1162, allocations: 192 / 470 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.1162, allocations: 3.938 kB / 470 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.1162, allocations: 0 / 470 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.408e-05/0.1163, allocations: 7.938 kB / 470 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001456/0.1164, allocations: 154 kB / 470.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001636/0.1166, allocations: 38.61 kB / 470.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.379e-05/0.1166, allocations: 16.86 kB / 470.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003677/0.117, allocations: 113.1 kB / 470.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.28e-05/0.1171, allocations: 30.56 kB / 470.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.113e-06/0.1171, allocations: 4 kB / 470.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.001322/0.1184, allocations: 189.2 kB / 470.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.882e-05/0.1185, allocations: 51.41 kB / 470.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.226e-05/0.1185, allocations: 97.86 kB / 470.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.1185, allocations: 25.7 kB / 470.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.637e-05/0.1186, allocations: 80.14 kB / 470.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.131e-05/0.1186, allocations: 19.78 kB / 470.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.773e-05/0.1187, allocations: 17.72 kB / 470.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.1188, allocations: 318.8 kB / 471.1 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.082e-05/0.1189, allocations: 23.91 kB / 471.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.9e-05/0.1189, allocations: 16.11 kB / 471.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001438/0.1191, allocations: 48.83 kB / 471.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.42e-07/0.1191, allocations: 0 / 471.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002032/0.1193, allocations: 81.56 kB / 471.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.1193, allocations: 18.38 kB / 471.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.1193, allocations: 0 / 471.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.1194, allocations: 0 / 471.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.1195, allocations: 16.23 kB / 471.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.1195, allocations: 11.88 kB / 471.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.985e-05/0.1196, allocations: 8 kB / 471.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.218e-06/0.1196, allocations: 3.984 kB / 471.4 MB, free: 11.87 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.074e-05/0.1197, allocations: 110.4 kB / 471.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.371e-05/0.1197, allocations: 7.938 kB / 471.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002531/0.12, allocations: 89.2 kB / 471.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.12, allocations: 0 / 471.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.12, allocations: 0 / 471.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.12, allocations: 288 / 471.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007153/0.1207, allocations: 355.3 kB / 471.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1208, allocations: 4.031 kB / 471.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000102/0.1209, allocations: 15.98 kB / 471.9 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.1209, allocations: 0 / 471.9 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.1209, allocations: 0 / 471.9 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.1209, allocations: 11.92 kB / 471.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1209, allocations: 0 / 471.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002357/0.1211, allocations: 180.3 kB / 472.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.289e-05/0.1212, allocations: 81.02 kB / 472.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.583e-05/0.1212, allocations: 4 kB / 472.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.1213, allocations: 8 kB / 472.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.315e-05/0.1213, allocations: 3.984 kB / 472.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.1214, allocations: 4 kB / 472.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.706e-05/0.1214, allocations: 75.28 kB / 472.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1214, allocations: 0 / 472.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002302/0.1216, allocations: 12.09 kB / 472.3 MB, free: 10.81 MB / 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.0001229/0.1218, allocations: 103.1 kB / 472.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002215/0.122, allocations: 55.89 kB / 472.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.122, allocations: 0 / 472.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.183e-05/0.1221, allocations: 31.91 kB / 472.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.1223, allocations: 7.938 kB / 472.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004169/0.1228, allocations: 141.8 kB / 472.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.123, allocations: 0.6729 MB / 473.3 MB, free: 9.742 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.254e-05/0.1231, allocations: 16.23 kB / 473.3 MB, free: 9.727 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.533e-05/0.1231, allocations: 11.44 kB / 473.3 MB, free: 9.715 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1231, allocations: 0 / 473.3 MB, free: 9.715 MB / 350.1 MB Notification: Performance of Templates: time 0.002639/0.1258, allocations: 0.6492 MB / 474 MB, free: 9.066 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches