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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00112/0.00112, allocations: 88.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.004426/0.004426, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9529/0.9529, allocations: 177 MB / 205.2 MB, free: 5.039 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3177/0.3177, allocations: 34.86 MB / 296.6 MB, free: 468 kB / 266.7 MB " [Timeout remaining time 180] 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=5002,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=5002,variableFilter="time|x|sqrtx|sqrtx_a|x2|x2_a|x3|x3_a|sqrtxerr|x2err|x3err",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.013e-06/2.013e-06, allocations: 0 / 325.9 MB, free: 7.133 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.061e-05/2.262e-05, allocations: 2.312 kB / 325.9 MB, free: 7.129 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001246/0.001268, allocations: 0.5756 MB / 326.5 MB, free: 6.555 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003151/0.001584, allocations: 151.4 kB / 326.7 MB, free: 6.406 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.341e-05/0.001607, allocations: 0 / 326.7 MB, free: 6.406 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.291e-05/0.00162, allocations: 3.938 kB / 326.7 MB, free: 6.402 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002029/0.001823, allocations: 35.72 kB / 326.7 MB, free: 6.367 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.705e-06/0.001825, allocations: 4 kB / 326.7 MB, free: 6.363 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.192e-05/0.001867, allocations: 24.53 kB / 326.7 MB, free: 6.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.755e-05/0.001905, allocations: 0 / 326.7 MB, free: 6.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.413e-05/0.001939, allocations: 19.92 kB / 326.8 MB, free: 6.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.974e-05/0.001989, allocations: 3.984 kB / 326.8 MB, free: 6.316 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.07e-05/0.001999, allocations: 4 kB / 326.8 MB, free: 6.312 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001048/0.002104, allocations: 51.89 kB / 326.8 MB, free: 6.262 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.098e-05/0.002115, allocations: 15.91 kB / 326.8 MB, free: 6.246 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.094e-05/0.002126, allocations: 3.938 kB / 326.8 MB, free: 6.242 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.425e-05/0.00222, allocations: 43.88 kB / 326.9 MB, free: 6.199 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.002222, allocations: 0 / 326.9 MB, free: 6.199 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.002223, allocations: 4 kB / 326.9 MB, free: 6.195 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.002227, allocations: 4 kB / 326.9 MB, free: 6.191 MB / 298.7 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.0002015/0.002428, allocations: 238.3 kB / 327.1 MB, free: 5.934 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.002462, allocations: 8.031 kB / 327.1 MB, free: 5.926 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.734e-05/0.002489, allocations: 4.938 kB / 327.1 MB, free: 5.922 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.002604, allocations: 109.7 kB / 327.2 MB, free: 5.789 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.002619, allocations: 8.375 kB / 327.2 MB, free: 5.781 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.748e-06/0.002629, allocations: 8.375 kB / 327.2 MB, free: 5.773 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.402e-05/0.002703, allocations: 50.23 kB / 327.3 MB, free: 5.719 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.802e-06/0.00271, allocations: 4.125 kB / 327.3 MB, free: 5.715 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.763e-06/0.002717, allocations: 4.375 kB / 327.3 MB, free: 5.711 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.002722, allocations: 384 / 327.3 MB, free: 5.711 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.509e-05/0.002777, allocations: 39.83 kB / 327.3 MB, free: 5.672 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.643e-05/0.002863, allocations: 69.03 kB / 327.4 MB, free: 5.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.283e-05/0.002946, allocations: 59.31 kB / 327.5 MB, free: 5.523 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.207e-05/0.002968, allocations: 16.84 kB / 327.5 MB, free: 5.504 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000157/0.003125, allocations: 27.97 kB / 327.5 MB, free: 5.477 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.048e-05/0.003146, allocations: 34.84 kB / 327.5 MB, free: 5.434 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 8.51e-07/0.003146, allocations: 4 kB / 327.6 MB, free: 5.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001224/0.003269, allocations: 69.61 kB / 327.6 MB, free: 5.355 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.818e-05/0.003297, allocations: 55.41 kB / 327.7 MB, free: 5.289 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.971e-05/0.003347, allocations: 98.72 kB / 327.8 MB, free: 5.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.829e-06/0.003357, allocations: 29.64 kB / 327.8 MB, free: 5.145 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.983e-05/0.003376, allocations: 84.14 kB / 327.9 MB, free: 5.059 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.916e-05/0.003416, allocations: 43.61 kB / 327.9 MB, free: 5.016 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.593e-05/0.003441, allocations: 17.72 kB / 327.9 MB, free: 4.992 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.845e-05/0.00352, allocations: 326.8 kB / 328.3 MB, free: 4.664 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.115e-05/0.003531, allocations: 8 kB / 328.3 MB, free: 4.656 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.717e-05/0.003548, allocations: 12.12 kB / 328.3 MB, free: 4.645 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.232e-05/0.003591, allocations: 34.61 kB / 328.3 MB, free: 4.609 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.003592, allocations: 0 / 328.3 MB, free: 4.609 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 6.312e-05/0.003655, allocations: 61.62 kB / 328.4 MB, free: 4.543 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.003669, allocations: 9.25 kB / 328.4 MB, free: 4.535 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.003673, allocations: 0 / 328.4 MB, free: 4.535 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.007e-05/0.003683, allocations: 0 / 328.4 MB, free: 4.535 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.336e-05/0.003757, allocations: 15.98 kB / 328.4 MB, free: 4.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.968e-06/0.003761, allocations: 4 kB / 328.4 MB, free: 4.516 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.211e-05/0.003773, allocations: 3.938 kB / 328.4 MB, free: 4.512 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.638e-06/0.003778, allocations: 0 / 328.4 MB, free: 4.512 MB / 298.7 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 5.691e-05/0.003834, allocations: 121.8 kB / 328.5 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.905e-06/0.003842, allocations: 7.984 kB / 328.5 MB, free: 4.375 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001017/0.003944, allocations: 74.97 kB / 328.6 MB, free: 4.297 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.003946, allocations: 4 kB / 328.6 MB, free: 4.293 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-06/0.003948, allocations: 0 / 328.6 MB, free: 4.293 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.145e-06/0.003951, allocations: 3.938 kB / 328.6 MB, free: 4.289 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.802e-05/0.004019, allocations: 85.78 kB / 328.7 MB, free: 4.188 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.00402, allocations: 0 / 328.7 MB, free: 4.188 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.94e-05/0.00406, allocations: 23.98 kB / 328.7 MB, free: 4.164 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.004062, allocations: 4 kB / 328.7 MB, free: 4.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.449e-06/0.004066, allocations: 0 / 328.7 MB, free: 4.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.004067, allocations: 0 / 328.7 MB, free: 4.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.004069, allocations: 0 / 328.7 MB, free: 4.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.064e-05/0.004139, allocations: 96.98 kB / 328.8 MB, free: 4.047 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.931e-06/0.004145, allocations: 7.938 kB / 328.8 MB, free: 4.039 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.885e-06/0.004153, allocations: 0 / 328.8 MB, free: 4.039 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.081e-05/0.004164, allocations: 7.984 kB / 328.8 MB, free: 4.031 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.339e-05/0.004177, allocations: 4 kB / 328.8 MB, free: 4.027 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.00418, allocations: 0 / 328.8 MB, free: 4.027 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.916e-06/0.004189, allocations: 4.859 kB / 328.8 MB, free: 4.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004189, allocations: 4.094 kB / 328.8 MB, free: 4.016 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001093/0.004298, allocations: 19.98 kB / 328.9 MB, free: 3.996 MB / 298.7 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.0001701/0.004468, allocations: 88.34 kB / 329 MB, free: 3.902 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.871e-05/0.004547, allocations: 41.44 kB / 329 MB, free: 3.859 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.004549, allocations: 0 / 329 MB, free: 3.859 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.069e-05/0.00457, allocations: 33.53 kB / 329 MB, free: 3.824 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.197e-05/0.004632, allocations: 7.938 kB / 329 MB, free: 3.816 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002231/0.004855, allocations: 134.5 kB / 329.2 MB, free: 3.66 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.034e-05/0.004885, allocations: 59.36 kB / 329.2 MB, free: 3.582 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.941e-05/0.004915, allocations: 7.984 kB / 329.2 MB, free: 3.574 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.653e-05/0.004951, allocations: 55.38 kB / 329.3 MB, free: 3.52 MB / 298.7 MB Notification: Performance of SimCode: time 9.32e-07/0.004952, allocations: 3.938 kB / 329.3 MB, free: 3.516 MB / 298.7 MB Notification: Performance of Templates: time 0.002108/0.00706, allocations: 0.7233 MB / 330 MB, free: 2.797 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.makefile [Timeout 660] (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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8538126638159156]