Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.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.TestRegFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|sqrtx|sqrtx_a|x2|x2_a|x3|x3_a|sqrtxerr|x2err|x3err",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|sqrtx|sqrtx_a|x2|x2_a|x3|x3_a|sqrtxerr|x2err|x3err",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001026/0.001026, allocations: 97.36 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001323/0.001323, allocations: 201 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.7 MB / 246.8 MB, free: 11.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2222/0.2222, allocations: 46.19 MB / 345.2 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002538/0.0002538, allocations: 7.984 kB / 419.5 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1127, allocations: 63.56 MB / 483.1 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.000682/0.1134, allocations: 257.4 kB / 483.3 MB, free: 3.926 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004521/0.1139, allocations: 159.5 kB / 483.5 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.968e-05/0.1139, allocations: 0 / 483.5 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.028e-05/0.114, allocations: 3.938 kB / 483.5 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002273/0.1142, allocations: 35.89 kB / 483.5 MB, free: 3.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.935e-06/0.1142, allocations: 0 / 483.5 MB, free: 3.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.362e-05/0.1143, allocations: 27.86 kB / 483.6 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.551e-05/0.1143, allocations: 0 / 483.6 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.946e-05/0.1143, allocations: 7.938 kB / 483.6 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.03e-05/0.1144, allocations: 15.92 kB / 483.6 MB, free: 3.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.579e-05/0.1144, allocations: 3.984 kB / 483.6 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001191/0.1146, allocations: 55.94 kB / 483.6 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.208e-06/0.1146, allocations: 0 / 483.6 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.358e-05/0.1146, allocations: 37.58 kB / 483.7 MB, free: 3.578 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001289/0.1147, allocations: 47.88 kB / 483.7 MB, free: 3.531 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1148, allocations: 3.938 kB / 483.7 MB, free: 3.527 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1148, allocations: 4 kB / 483.7 MB, free: 3.523 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.1148, allocations: 0 / 483.7 MB, free: 3.523 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003053/0.1151, allocations: 323.9 kB / 484 MB, free: 3.156 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.1151, allocations: 12.03 kB / 484.1 MB, free: 3.145 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.461e-05/0.1152, allocations: 8.781 kB / 484.1 MB, free: 3.137 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001235/0.1153, allocations: 172.3 kB / 484.2 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.418e-05/0.1153, allocations: 384 / 484.2 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.226e-05/0.1153, allocations: 8.375 kB / 484.2 MB, free: 2.922 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001455/0.1155, allocations: 58.19 kB / 484.3 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.1155, allocations: 192 / 484.3 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.1155, allocations: 7.938 kB / 484.3 MB, free: 2.852 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.1155, allocations: 3.984 kB / 484.3 MB, free: 2.848 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001073/0.1157, allocations: 51.95 kB / 484.4 MB, free: 2.797 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001746/0.1158, allocations: 165.7 kB / 484.5 MB, free: 2.586 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001354/0.116, allocations: 82.58 kB / 484.6 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.619e-05/0.116, allocations: 32.86 kB / 484.6 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003372/0.1164, allocations: 251.3 kB / 484.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.159e-05/0.1164, allocations: 34.56 kB / 484.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 2.465e-06/0.1164, allocations: 3.984 kB / 484.9 MB, free: 2.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002282/0.1167, allocations: 113.6 kB / 485 MB, free: 1.996 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.028e-05/0.1167, allocations: 51.41 kB / 485.1 MB, free: 1.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.55e-05/0.1168, allocations: 93.86 kB / 485.2 MB, free: 1.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.1168, allocations: 29.7 kB / 485.2 MB, free: 1.797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.461e-05/0.1168, allocations: 80.52 kB / 485.3 MB, free: 1.715 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.959e-05/0.1169, allocations: 31.55 kB / 485.3 MB, free: 1.684 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.616e-05/0.1169, allocations: 13.72 kB / 485.3 MB, free: 1.664 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.117, allocations: 322.8 kB / 485.6 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.36e-05/0.1171, allocations: 15.94 kB / 485.7 MB, free: 1.324 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.155e-05/0.1171, allocations: 23.92 kB / 485.7 MB, free: 1.301 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.955e-05/0.1172, allocations: 48.98 kB / 485.7 MB, free: 1.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.1172, allocations: 0 / 485.7 MB, free: 1.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001487/0.1174, allocations: 85.61 kB / 485.8 MB, free: 1.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.1174, allocations: 8 kB / 485.8 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.1174, allocations: 3.938 kB / 485.8 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.1174, allocations: 0 / 485.8 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.1175, allocations: 12 kB / 485.8 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.084e-06/0.1175, allocations: 4 kB / 485.8 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.957e-05/0.1176, allocations: 11.84 kB / 485.8 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.605e-06/0.1176, allocations: 3.984 kB / 485.9 MB, free: 1.117 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 (10): * Single equations (assignments): 10 * 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.296e-05/0.1177, allocations: 125.8 kB / 486 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.408e-06/0.1177, allocations: 3.938 kB / 486 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000187/0.1179, allocations: 105.5 kB / 486.1 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.1179, allocations: 384 / 486.1 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1179, allocations: 0 / 486.1 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.1179, allocations: 4 kB / 486.1 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001258/0.118, allocations: 177.5 kB / 486.3 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.118, allocations: 3.938 kB / 486.3 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.75e-05/0.1181, allocations: 20 kB / 486.3 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.1181, allocations: 0 / 486.3 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.1181, allocations: 3.938 kB / 486.3 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1181, allocations: 0 / 486.3 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1181, allocations: 0 / 486.3 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000138/0.1183, allocations: 113 kB / 486.4 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.986e-05/0.1183, allocations: 85.02 kB / 486.5 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.385e-05/0.1184, allocations: 3.938 kB / 486.5 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.601e-05/0.1184, allocations: 4 kB / 486.5 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.979e-05/0.1184, allocations: 7.984 kB / 486.5 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.1184, allocations: 4 kB / 486.5 MB, free: 376 kB / 350.1 MB Notification: Performance of sorting global known variables: time 2.917e-05/0.1185, allocations: 79.28 kB / 486.6 MB, free: 296 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1185, allocations: 0 / 486.6 MB, free: 296 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002074/0.1187, allocations: 16 kB / 486.6 MB, free: 280 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 (10): * Single equations (assignments): 10 * 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.0001367/0.1188, allocations: 111.1 kB / 486.7 MB, free: 160 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001252/0.119, allocations: 51.98 kB / 486.8 MB, free: 108 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.119, allocations: 4.094 kB / 486.8 MB, free: 104 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.312e-05/0.119, allocations: 35.92 kB / 486.8 MB, free: 68 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001411/0.1192, allocations: 2.344 kB / 486.8 MB, free: 68 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003206/0.1195, allocations: 146.7 kB / 486.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002267/0.1197, allocations: 0.6852 MB / 487.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.574e-05/0.1198, allocations: 8 kB / 487.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.313e-05/0.1198, allocations: 11.44 kB / 487.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1198, allocations: 0 / 487.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of Templates: time 0.002921/0.1227, allocations: 0.6291 MB / 488.3 MB, free: 14.54 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches