Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001357/0.001357, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001515/0.001515, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 246.3 MB, free: 9.141 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.228/0.228, allocations: 46.13 MB / 343.7 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002038/0.002038, allocations: 80.52 kB / 416.9 MB, free: 20.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1137, allocations: 62.46 MB / 479.4 MB, free: 5.668 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001526/0.1153, allocations: 0.5475 MB / 479.9 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001914/0.1172, allocations: 1.452 MB / 481.4 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.124e-06/0.1172, allocations: 0 / 481.4 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.015e-05/0.1173, allocations: 0 / 481.4 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.39e-05/0.1173, allocations: 0 / 481.4 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004307/0.1177, allocations: 158.8 kB / 481.5 MB, free: 3.492 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.71e-05/0.1178, allocations: 15.88 kB / 481.6 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.316e-05/0.1178, allocations: 4 kB / 481.6 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.689e-06/0.1178, allocations: 3.984 kB / 481.6 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.318e-05/0.1178, allocations: 4 kB / 481.6 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.184e-06/0.1178, allocations: 0 / 481.6 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000387/0.1182, allocations: 271.6 kB / 481.8 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.416e-05/0.1183, allocations: 11.97 kB / 481.9 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.178e-05/0.1183, allocations: 3.938 kB / 481.9 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002001/0.1185, allocations: 139.7 kB / 482 MB, free: 3.047 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.1185, allocations: 4 kB / 482 MB, free: 3.043 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.71e-07/0.1185, allocations: 0 / 482 MB, free: 3.043 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.595e-06/0.1185, allocations: 0 / 482 MB, free: 3.043 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.0003513/0.1189, allocations: 335.6 kB / 482.3 MB, free: 2.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.1189, allocations: 8.875 kB / 482.3 MB, free: 2.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.313e-05/0.1189, allocations: 4.938 kB / 482.3 MB, free: 2.656 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.1191, allocations: 172.2 kB / 482.5 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.1191, allocations: 384 / 482.5 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.935e-06/0.1191, allocations: 384 / 482.5 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.983e-05/0.1192, allocations: 50 kB / 482.6 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.442e-06/0.1192, allocations: 0 / 482.6 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.1192, allocations: 3.984 kB / 482.6 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.1192, allocations: 0 / 482.6 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.145e-05/0.1193, allocations: 12 kB / 482.6 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003455/0.1196, allocations: 244.9 kB / 482.8 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.404e-05/0.1197, allocations: 18.58 kB / 482.8 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.16e-05/0.1197, allocations: 12.86 kB / 482.8 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.511e-06/0.1197, allocations: 0 / 482.8 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/0.1197, allocations: 30.56 kB / 482.9 MB, free: 2.008 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.494e-06/0.1197, allocations: 0 / 482.9 MB, free: 2.008 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 9.862e-05/0.1198, allocations: 41.64 kB / 482.9 MB, free: 1.961 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/0.1199, allocations: 59.33 kB / 483 MB, free: 1.891 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.318e-05/0.12, allocations: 97.77 kB / 483.1 MB, free: 1.785 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.445e-05/0.12, allocations: 29.95 kB / 483.1 MB, free: 1.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.414e-05/0.12, allocations: 88.36 kB / 483.2 MB, free: 1.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.631e-06/0.1201, allocations: 3.906 kB / 483.2 MB, free: 1.656 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/0.1201, allocations: 13.72 kB / 483.2 MB, free: 1.637 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.1202, allocations: 322.8 kB / 483.5 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.02e-05/0.1202, allocations: 4 kB / 483.5 MB, free: 1.309 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.726e-05/0.1203, allocations: 22.58 kB / 483.5 MB, free: 1.277 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.366e-05/0.1203, allocations: 30.52 kB / 483.6 MB, free: 1.238 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.81e-07/0.1203, allocations: 0 / 483.6 MB, free: 1.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.246e-05/0.1204, allocations: 45.62 kB / 483.6 MB, free: 1.188 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/0.1204, allocations: 10.34 kB / 483.6 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.495e-06/0.1204, allocations: 0 / 483.6 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.314e-06/0.1204, allocations: 0 / 483.6 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.642e-05/0.1205, allocations: 8.094 kB / 483.6 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.685e-06/0.1205, allocations: 4 kB / 483.6 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.869e-05/0.1205, allocations: 7.984 kB / 483.6 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.67e-06/0.1205, allocations: 4 kB / 483.6 MB, free: 1.156 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * 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.596e-05/0.1206, allocations: 109.8 kB / 483.8 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.166e-05/0.1206, allocations: 0 / 483.8 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.22e-05/0.1207, allocations: 52.75 kB / 483.8 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1207, allocations: 0 / 483.8 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.874e-06/0.1207, allocations: 0 / 483.8 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.212e-06/0.1208, allocations: 4 kB / 483.8 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001476/0.1209, allocations: 145.6 kB / 484 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.1209, allocations: 0 / 484 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.274e-06/0.1209, allocations: 7.938 kB / 484 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.1209, allocations: 0 / 484 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.14e-06/0.1209, allocations: 3.984 kB / 484 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-06/0.1209, allocations: 0 / 484 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.92e-07/0.1209, allocations: 0 / 484 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001037/0.1211, allocations: 139.4 kB / 484.1 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.018e-05/0.1211, allocations: 81.05 kB / 484.2 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.041e-05/0.1211, allocations: 4 kB / 484.2 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.694e-05/0.1212, allocations: 11.92 kB / 484.2 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.272e-06/0.1212, allocations: 0 / 484.2 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.376e-06/0.1212, allocations: 0 / 484.2 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.407e-05/0.1213, allocations: 83.31 kB / 484.3 MB, free: 440 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1213, allocations: 0 / 484.3 MB, free: 440 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002758/0.1215, allocations: 44 kB / 484.3 MB, free: 396 kB / 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.0002536/0.1218, allocations: 131.2 kB / 484.4 MB, free: 252 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.048e-05/0.1219, allocations: 8 kB / 484.5 MB, free: 244 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.1219, allocations: 0 / 484.5 MB, free: 244 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.656e-05/0.1219, allocations: 37.64 kB / 484.5 MB, free: 200 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001786/0.1221, allocations: 4.375 kB / 484.5 MB, free: 196 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001575/0.1223, allocations: 90.75 kB / 484.6 MB, free: 76 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.1226, allocations: 0.6692 MB / 485.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.48e-05/0.1226, allocations: 7.984 kB / 485.3 MB, free: 15.37 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.355e-05/0.1226, allocations: 11.42 kB / 485.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.1226, allocations: 0 / 485.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of Templates: time 0.003294/0.1259, allocations: 1.081 MB / 486.4 MB, free: 14.28 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches