Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.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.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 110.5 kB / 17.86 MB, free: 5.504 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.001182/0.001182, allocations: 201.9 kB / 18.78 MB, free: 4.586 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.36/1.36, allocations: 222.9 MB / 242.4 MB, free: 15.34 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.2149/0.2149, allocations: 44.17 MB / 336.8 MB, free: 2.965 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 64.44 kB / 408.3 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.112, allocations: 60.83 MB / 469.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.002036/0.1141, allocations: 0.5411 MB / 469.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002109/0.1163, allocations: 1.407 MB / 471.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.973e-05/0.1163, allocations: 0 / 471.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.25e-05/0.1163, allocations: 0 / 471.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.935e-05/0.1164, allocations: 4 kB / 471.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006131/0.117, allocations: 162.2 kB / 471.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.715e-05/0.1171, allocations: 7.938 kB / 471.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.408e-05/0.1171, allocations: 0 / 471.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.16e-05/0.1172, allocations: 8 kB / 471.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.18e-05/0.1172, allocations: 7.969 kB / 471.3 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.318e-05/0.1172, allocations: 0 / 471.3 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004967/0.1177, allocations: 267.6 kB / 471.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.464e-05/0.1178, allocations: 4 kB / 471.6 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.177e-05/0.1178, allocations: 11.92 kB / 471.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001815/0.118, allocations: 83.83 kB / 471.7 MB, free: 12.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.118, allocations: 4 kB / 471.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.118, allocations: 0 / 471.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.371e-06/0.118, allocations: 0 / 471.7 MB, free: 12.3 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004094/0.1184, allocations: 323.6 kB / 472 MB, free: 11.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.1185, allocations: 12.03 kB / 472 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.633e-05/0.1185, allocations: 0.9375 kB / 472 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.1187, allocations: 164.4 kB / 472.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.905e-06/0.1187, allocations: 4.312 kB / 472.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.207e-05/0.1187, allocations: 8.375 kB / 472.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.932e-05/0.1188, allocations: 34.02 kB / 472.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.1188, allocations: 0 / 472.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.1188, allocations: 4 kB / 472.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.1188, allocations: 0 / 472.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.211e-05/0.1189, allocations: 3.938 kB / 472.2 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001655/0.119, allocations: 153.6 kB / 472.4 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.356e-05/0.1191, allocations: 22.58 kB / 472.4 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.083e-05/0.1191, allocations: 8.953 kB / 472.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.728e-06/0.1191, allocations: 0 / 472.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.701e-05/0.1192, allocations: 34.5 kB / 472.4 MB, free: 11.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.41e-07/0.1192, allocations: 0 / 472.4 MB, free: 11.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001426/0.1193, allocations: 41.62 kB / 472.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.507e-05/0.1194, allocations: 51.41 kB / 472.5 MB, free: 11.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.109e-05/0.1194, allocations: 102 kB / 472.6 MB, free: 11.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.417e-05/0.1195, allocations: 25.7 kB / 472.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.947e-05/0.1195, allocations: 80.14 kB / 472.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.275e-05/0.1195, allocations: 0 / 472.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.103e-05/0.1196, allocations: 13.72 kB / 472.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.1197, allocations: 318.8 kB / 473 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.294e-05/0.1197, allocations: 0 / 473 MB, free: 10.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.754e-06/0.1197, allocations: 3.938 kB / 473.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.778e-05/0.1198, allocations: 16.98 kB / 473.1 MB, free: 10.69 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1198, allocations: 0 / 473.1 MB, free: 10.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.129e-05/0.1198, allocations: 33.7 kB / 473.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.1199, allocations: 7.938 kB / 473.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.1199, allocations: 4 kB / 473.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.1199, allocations: 4 kB / 473.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.379e-05/0.12, allocations: 3.984 kB / 473.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.12, allocations: 0 / 473.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.488e-05/0.12, allocations: 0 / 473.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.12, allocations: 4.031 kB / 473.1 MB, free: 10.63 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 (1): * Single equations (assignments): 1 * 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 7.007e-05/0.1201, allocations: 114.1 kB / 473.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.329e-05/0.1201, allocations: 3.938 kB / 473.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001314/0.1202, allocations: 48.7 kB / 473.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.1203, allocations: 0 / 473.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1203, allocations: 0 / 473.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.1203, allocations: 8.031 kB / 473.3 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.966e-05/0.1204, allocations: 153.6 kB / 473.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.962e-06/0.1204, allocations: 0 / 473.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.1204, allocations: 0 / 473.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.1204, allocations: 11.88 kB / 473.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.851e-06/0.1204, allocations: 0 / 473.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.1204, allocations: 0 / 473.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-05/0.1204, allocations: 3.984 kB / 473.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.859e-05/0.1205, allocations: 65.03 kB / 473.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.695e-05/0.1206, allocations: 85.05 kB / 473.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.297e-05/0.1206, allocations: 0 / 473.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.783e-05/0.1207, allocations: 7.938 kB / 473.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.654e-05/0.1207, allocations: 0 / 473.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.1207, allocations: 0 / 473.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.51e-05/0.1208, allocations: 79.28 kB / 473.7 MB, free: 9.957 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1208, allocations: 0 / 473.7 MB, free: 9.957 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000272/0.121, allocations: 39.98 kB / 473.7 MB, free: 9.918 MB / 350.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: 0 () * Number of discrete states: 0 () * 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: 0 * Record equations: 1 * 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.0002772/0.1213, allocations: 143.9 kB / 473.9 MB, free: 9.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.32e-05/0.1214, allocations: 7.984 kB / 473.9 MB, free: 9.762 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.1214, allocations: 3.938 kB / 473.9 MB, free: 9.758 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.544e-05/0.1215, allocations: 29.7 kB / 473.9 MB, free: 9.723 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001618/0.1216, allocations: 0 / 473.9 MB, free: 9.723 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002436/0.1219, allocations: 112.7 kB / 474 MB, free: 9.578 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002662/0.1222, allocations: 0.6772 MB / 474.7 MB, free: 8.875 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.546e-05/0.1222, allocations: 15.38 kB / 474.7 MB, free: 8.859 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1222, allocations: 0 / 474.7 MB, free: 8.859 MB / 350.1 MB Notification: Performance of Templates: time 0.00263/0.1248, allocations: 0.8973 MB / 475.6 MB, free: 7.961 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches