Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.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.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001107/0.001106, allocations: 92.83 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001453/0.001453, allocations: 204.5 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.8 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2187/0.2187, allocations: 46.17 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000386/0.000386, allocations: 8.328 kB / 419.5 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1227, allocations: 63.56 MB / 483.1 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0005797/0.1233, allocations: 218.9 kB / 483.3 MB, free: 3.938 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00174/0.1251, allocations: 1.45 MB / 484.7 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.23e-05/0.1251, allocations: 3.938 kB / 484.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.159e-05/0.1251, allocations: 0 / 484.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.37e-05/0.1252, allocations: 4 kB / 484.8 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005177/0.1257, allocations: 158.3 kB / 484.9 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.508e-05/0.1257, allocations: 7.938 kB / 484.9 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.377e-05/0.1258, allocations: 0 / 484.9 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.924e-05/0.1258, allocations: 7.984 kB / 484.9 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.963e-05/0.1258, allocations: 0 / 484.9 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.329e-05/0.1259, allocations: 0 / 484.9 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004097/0.1263, allocations: 279.6 kB / 485.2 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.132e-05/0.1263, allocations: 3.984 kB / 485.2 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.86e-05/0.1263, allocations: 33.64 kB / 485.2 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002039/0.1265, allocations: 143.7 kB / 485.4 MB, free: 1.844 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1266, allocations: 0 / 485.4 MB, free: 1.844 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1266, allocations: 0 / 485.4 MB, free: 1.844 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.946e-06/0.1266, allocations: 0 / 485.4 MB, free: 1.844 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.00031/0.1269, allocations: 335.6 kB / 485.7 MB, free: 1.469 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.1269, allocations: 8.875 kB / 485.7 MB, free: 1.461 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.541e-05/0.127, allocations: 0.9375 kB / 485.7 MB, free: 1.461 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000103/0.1271, allocations: 168.4 kB / 485.9 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.789e-06/0.1271, allocations: 384 / 485.9 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.588e-06/0.1271, allocations: 4.375 kB / 485.9 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.774e-05/0.1272, allocations: 41.94 kB / 485.9 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.47e-06/0.1272, allocations: 0 / 485.9 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.999e-06/0.1272, allocations: 0 / 485.9 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.1272, allocations: 0 / 485.9 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.15e-05/0.1273, allocations: 7.938 kB / 485.9 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001452/0.1274, allocations: 149.7 kB / 486.1 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.578e-05/0.1275, allocations: 18.61 kB / 486.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.693e-05/0.1275, allocations: 12.86 kB / 486.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.915e-06/0.1275, allocations: 0 / 486.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.275e-05/0.1275, allocations: 34.5 kB / 486.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.113e-06/0.1275, allocations: 0 / 486.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001199/0.1277, allocations: 49.53 kB / 486.2 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.203e-05/0.1277, allocations: 51.41 kB / 486.2 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.704e-05/0.1278, allocations: 94.08 kB / 486.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.341e-05/0.1278, allocations: 33.73 kB / 486.4 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.818e-05/0.1278, allocations: 80.14 kB / 486.4 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.982e-05/0.1279, allocations: 0 / 486.4 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.017e-05/0.1279, allocations: 9.719 kB / 486.4 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.128, allocations: 318.8 kB / 486.8 MB, free: 248 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.067e-06/0.1281, allocations: 0 / 486.8 MB, free: 248 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.891e-06/0.1281, allocations: 0 / 486.8 MB, free: 248 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.426e-05/0.1281, allocations: 12.92 kB / 486.8 MB, free: 232 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1281, allocations: 4 kB / 486.8 MB, free: 228 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.43e-05/0.1282, allocations: 37.64 kB / 486.8 MB, free: 184 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.1282, allocations: 7.938 kB / 486.8 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-06/0.1282, allocations: 0 / 486.8 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.726e-06/0.1282, allocations: 0 / 486.8 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.588e-05/0.1283, allocations: 4 kB / 486.8 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.104e-06/0.1283, allocations: 7.969 kB / 486.8 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.233e-05/0.1283, allocations: 0 / 486.8 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.641e-06/0.1283, allocations: 0 / 486.8 MB, free: 164 kB / 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 6.666e-05/0.1284, allocations: 114.2 kB / 486.9 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.057e-06/0.1284, allocations: 3.938 kB / 486.9 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000167/0.1286, allocations: 52.75 kB / 487 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.1286, allocations: 0 / 487 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.1286, allocations: 0 / 487 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.913e-06/0.1286, allocations: 0 / 487 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001599/0.1288, allocations: 153.7 kB / 487.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.1288, allocations: 3.984 kB / 487.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.1288, allocations: 0 / 487.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.1288, allocations: 3.938 kB / 487.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.341e-06/0.1288, allocations: 4 kB / 487.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.1288, allocations: 3.938 kB / 487.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.1288, allocations: 0 / 487.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.048e-05/0.1289, allocations: 57.14 kB / 487.2 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.408e-05/0.1289, allocations: 92.97 kB / 487.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.061e-05/0.129, allocations: 0 / 487.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.622e-05/0.129, allocations: 7.938 kB / 487.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.949e-06/0.129, allocations: 0 / 487.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.646e-06/0.129, allocations: 0 / 487.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.093e-05/0.1291, allocations: 83.28 kB / 487.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1291, allocations: 3.938 kB / 487.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002388/0.1293, allocations: 43.98 kB / 487.4 MB, free: 15.45 MB / 366.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.0002582/0.1296, allocations: 135.3 kB / 487.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 5.744e-05/0.1297, allocations: 4 kB / 487.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1297, allocations: 0 / 487.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.122e-05/0.1297, allocations: 33.7 kB / 487.6 MB, free: 15.26 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001429/0.1299, allocations: 7.984 kB / 487.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001929/0.1301, allocations: 82.7 kB / 487.7 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002162/0.1303, allocations: 0.6731 MB / 488.4 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.643e-05/0.1303, allocations: 8.125 kB / 488.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.135e-05/0.1303, allocations: 7.438 kB / 488.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1303, allocations: 0 / 488.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of Templates: time 0.003146/0.1335, allocations: 1.091 MB / 489.5 MB, free: 13.34 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches