Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00136/0.00136, allocations: 109.9 kB / 17.33 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001321/0.001321, allocations: 213.8 kB / 18.27 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.54/1.54, allocations: 227.4 MB / 246.5 MB, free: 10.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2322/0.2322, allocations: 46.12 MB / 343.8 MB, free: 11.7 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002474/0.002475, allocations: 82.77 kB / 417.1 MB, free: 20.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1146, allocations: 62.44 MB / 479.6 MB, free: 5.559 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001813/0.1165, allocations: 0.5903 MB / 480.1 MB, free: 4.965 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004029/0.1169, allocations: 155.5 kB / 480.3 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.854e-05/0.1169, allocations: 0 / 480.3 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.641e-05/0.117, allocations: 3.938 kB / 480.3 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002513/0.1172, allocations: 35.89 kB / 480.3 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.326e-06/0.1173, allocations: 0 / 480.3 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.319e-05/0.1173, allocations: 23.86 kB / 480.4 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.343e-05/0.1174, allocations: 4 kB / 480.4 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.907e-05/0.1174, allocations: 11.92 kB / 480.4 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.094e-05/0.1174, allocations: 15.92 kB / 480.4 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.3e-05/0.1175, allocations: 4 kB / 480.4 MB, free: 4.715 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001173/0.1176, allocations: 51.95 kB / 480.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.047e-05/0.1176, allocations: 0 / 480.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.7e-05/0.1176, allocations: 19.84 kB / 480.5 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.639e-05/0.1177, allocations: 31.91 kB / 480.5 MB, free: 4.613 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.1177, allocations: 0 / 480.5 MB, free: 4.613 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.1178, allocations: 0 / 480.5 MB, free: 4.613 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.1178, allocations: 0 / 480.5 MB, free: 4.613 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.0003498/0.1181, allocations: 345.9 kB / 480.8 MB, free: 4.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.1182, allocations: 15.97 kB / 480.8 MB, free: 4.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.196e-05/0.1182, allocations: 4.844 kB / 480.9 MB, free: 4.207 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001278/0.1183, allocations: 168.3 kB / 481 MB, free: 4.004 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.376e-05/0.1184, allocations: 8.375 kB / 481 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.436e-05/0.1184, allocations: 4.375 kB / 481 MB, free: 3.992 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001422/0.1185, allocations: 62.11 kB / 481.1 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-06/0.1185, allocations: 192 / 481.1 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.1186, allocations: 11.94 kB / 481.1 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.1186, allocations: 4 kB / 481.1 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000105/0.1187, allocations: 47.95 kB / 481.2 MB, free: 3.863 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001936/0.1189, allocations: 169.7 kB / 481.3 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001507/0.119, allocations: 78.58 kB / 481.4 MB, free: 3.562 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.722e-05/0.1191, allocations: 36.84 kB / 481.4 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003546/0.1195, allocations: 247.3 kB / 481.7 MB, free: 3.227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.766e-05/0.1195, allocations: 34.56 kB / 481.7 MB, free: 3.184 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 3.196e-06/0.1195, allocations: 3.984 kB / 481.7 MB, free: 3.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002402/0.1198, allocations: 113.6 kB / 481.8 MB, free: 3.062 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.726e-05/0.1198, allocations: 51.41 kB / 481.9 MB, free: 3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.534e-05/0.1199, allocations: 93.86 kB / 482 MB, free: 2.898 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.1199, allocations: 25.7 kB / 482 MB, free: 2.867 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.878e-05/0.12, allocations: 88.12 kB / 482.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.787e-05/0.12, allocations: 31.69 kB / 482.1 MB, free: 2.746 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.069e-05/0.1201, allocations: 21.7 kB / 482.1 MB, free: 2.719 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.1202, allocations: 314.8 kB / 482.4 MB, free: 2.402 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.616e-05/0.1202, allocations: 23.92 kB / 482.5 MB, free: 2.379 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.241e-05/0.1203, allocations: 16 kB / 482.5 MB, free: 2.363 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.797e-05/0.1204, allocations: 57.34 kB / 482.5 MB, free: 2.305 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.1204, allocations: 4 kB / 482.5 MB, free: 2.301 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001362/0.1205, allocations: 81.62 kB / 482.6 MB, free: 2.215 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.1205, allocations: 8 kB / 482.6 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.1206, allocations: 7.938 kB / 482.6 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.1206, allocations: 0 / 482.6 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.1207, allocations: 15.98 kB / 482.6 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.1207, allocations: 3.984 kB / 482.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.935e-05/0.1207, allocations: 11.84 kB / 482.7 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.205e-06/0.1207, allocations: 0 / 482.7 MB, free: 2.168 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 8.706e-05/0.1208, allocations: 121.7 kB / 482.8 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.046e-05/0.1209, allocations: 0 / 482.8 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001965/0.1211, allocations: 109.5 kB / 482.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.1211, allocations: 0 / 482.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.1211, allocations: 0 / 482.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.1211, allocations: 3.984 kB / 482.9 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001472/0.1212, allocations: 173.6 kB / 483.1 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1212, allocations: 0 / 483.1 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.203e-05/0.1213, allocations: 19.98 kB / 483.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.664e-06/0.1213, allocations: 0 / 483.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.1213, allocations: 3.938 kB / 483.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1214, allocations: 0 / 483.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1214, allocations: 4 kB / 483.1 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001582/0.1215, allocations: 113.2 kB / 483.2 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.342e-05/0.1216, allocations: 85 kB / 483.3 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.437e-05/0.1216, allocations: 7.938 kB / 483.3 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.692e-05/0.1216, allocations: 4 kB / 483.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.11e-05/0.1217, allocations: 4 kB / 483.3 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-06/0.1217, allocations: 0 / 483.3 MB, free: 1.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.019e-05/0.1217, allocations: 87.27 kB / 483.4 MB, free: 1.344 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1217, allocations: 0 / 483.4 MB, free: 1.344 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002138/0.1219, allocations: 12 kB / 483.4 MB, free: 1.332 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 (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.0001371/0.1221, allocations: 111.1 kB / 483.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001464/0.1222, allocations: 59.91 kB / 483.6 MB, free: 1.156 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.1222, allocations: 4 kB / 483.6 MB, free: 1.152 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.644e-05/0.1223, allocations: 27.94 kB / 483.6 MB, free: 1.125 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001374/0.1224, allocations: 7.984 kB / 483.6 MB, free: 1.117 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003254/0.1228, allocations: 153 kB / 483.7 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002952/0.1231, allocations: 0.6834 MB / 484.4 MB, free: 240 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.94e-05/0.1231, allocations: 11.98 kB / 484.4 MB, free: 228 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.473e-05/0.1232, allocations: 11.44 kB / 484.5 MB, free: 216 kB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1232, allocations: 0 / 484.5 MB, free: 216 kB / 350.1 MB Notification: Performance of Templates: time 0.002998/0.1262, allocations: 0.6412 MB / 485.1 MB, free: 15.57 MB / 366.1 MB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.makefile (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.1.0-beta.om_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches