Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001494/0.001493, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.97/1.97, allocations: 205.2 MB / 219.4 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001053/0.001053, allocations: 78.73 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2779/0.2779, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.37e-05/3.379e-05, allocations: 4 kB / 425.3 MB, free: 23.36 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1126, allocations: 58.85 MB / 484.1 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4724/0.5851, allocations: 84 MB / 0.5548 GB, free: 3.531 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/0.5854, allocations: 73.94 kB / 0.5549 GB, free: 3.492 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003539/0.5889, allocations: 0.9006 MB / 0.5558 GB, free: 2.68 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.589, allocations: 4 kB / 0.5558 GB, free: 2.676 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.374e-05/0.589, allocations: 0 / 0.5558 GB, free: 2.676 MB / 362.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.0002144/0.5893, allocations: 325.8 kB / 0.5561 GB, free: 2.316 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.5893, allocations: 8.031 kB / 0.5561 GB, free: 2.309 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.641e-05/0.5894, allocations: 7.688 kB / 0.5561 GB, free: 2.305 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.587e-05/0.5894, allocations: 170.9 kB / 0.5563 GB, free: 2.098 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.5895, allocations: 4 kB / 0.5563 GB, free: 2.094 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.683e-05/0.5895, allocations: 0 / 0.5563 GB, free: 2.094 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001582/0.5897, allocations: 55.19 kB / 0.5563 GB, free: 2.043 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.5897, allocations: 7.984 kB / 0.5563 GB, free: 2.035 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.5897, allocations: 0 / 0.5563 GB, free: 2.035 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.5897, allocations: 4 kB / 0.5563 GB, free: 2.031 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001199/0.5899, allocations: 48.66 kB / 0.5564 GB, free: 1.992 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001761/0.59, allocations: 179.5 kB / 0.5565 GB, free: 1.777 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001492/0.5902, allocations: 73.48 kB / 0.5566 GB, free: 1.715 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.473e-05/0.5903, allocations: 23.3 kB / 0.5566 GB, free: 1.695 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003462/0.5906, allocations: 259.3 kB / 0.5569 GB, free: 1.387 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.5907, allocations: 37.97 kB / 0.5569 GB, free: 1.344 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 2.565e-06/0.5907, allocations: 0 / 0.5569 GB, free: 1.344 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002322/0.5909, allocations: 71 kB / 0.557 GB, free: 1.277 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.963e-05/0.591, allocations: 51.41 kB / 0.557 GB, free: 1.215 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.469e-05/0.591, allocations: 99.61 kB / 0.5571 GB, free: 1.117 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.31e-05/0.5911, allocations: 29.83 kB / 0.5572 GB, free: 1.082 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.568e-05/0.5911, allocations: 150.6 kB / 0.5573 GB, free: 0.9336 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.669e-05/0.5912, allocations: 37.98 kB / 0.5573 GB, free: 0.9023 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.721e-06/0.5912, allocations: 3.938 kB / 0.5573 GB, free: 0.8984 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.171e-05/0.5913, allocations: 317.8 kB / 0.5576 GB, free: 0.582 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.4e-05/0.5913, allocations: 11.19 kB / 0.5577 GB, free: 0.5742 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.375e-05/0.5914, allocations: 15.25 kB / 0.5577 GB, free: 0.5625 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.96e-05/0.5914, allocations: 26.62 kB / 0.5577 GB, free: 0.543 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.5914, allocations: 0 / 0.5577 GB, free: 0.543 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001676/0.5916, allocations: 83.5 kB / 0.5578 GB, free: 480 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.5917, allocations: 7.438 kB / 0.5578 GB, free: 476 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.5917, allocations: 0 / 0.5578 GB, free: 476 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.5917, allocations: 4 kB / 0.5578 GB, free: 472 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001634/0.5919, allocations: 19.36 kB / 0.5578 GB, free: 456 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.5919, allocations: 0 / 0.5578 GB, free: 456 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.128e-05/0.5919, allocations: 3.906 kB / 0.5578 GB, free: 452 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.158e-05/0.592, allocations: 4 kB / 0.5578 GB, free: 448 kB / 362.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.95e-05/0.592, allocations: 112.2 kB / 0.5579 GB, free: 332 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.535e-05/0.5921, allocations: 8 kB / 0.5579 GB, free: 324 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002392/0.5923, allocations: 98.38 kB / 0.558 GB, free: 236 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.5923, allocations: 4.375 kB / 0.558 GB, free: 232 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.5923, allocations: 0 / 0.558 GB, free: 232 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.5923, allocations: 0 / 0.558 GB, free: 232 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001206/0.5925, allocations: 175.6 kB / 0.5582 GB, free: 12 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.5925, allocations: 7.891 kB / 0.5582 GB, free: 4 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001475/0.5926, allocations: 16.23 kB / 0.5582 GB, free: 15.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.5927, allocations: 0 / 0.5582 GB, free: 15.99 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.5927, allocations: 0 / 0.5582 GB, free: 15.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.119e-06/0.5927, allocations: 8 kB / 0.5582 GB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.5927, allocations: 0 / 0.5582 GB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000209/0.5929, allocations: 107.2 kB / 0.5583 GB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.518e-05/0.593, allocations: 92.95 kB / 0.5584 GB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.657e-05/0.593, allocations: 224 / 0.5584 GB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.945e-05/0.5931, allocations: 0 / 0.5584 GB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.619e-05/0.5931, allocations: 14.98 kB / 0.5584 GB, free: 15.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.161e-05/0.5931, allocations: 5.812 kB / 0.5584 GB, free: 15.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.187e-05/0.5932, allocations: 79.28 kB / 0.5585 GB, free: 15.67 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5932, allocations: 0 / 0.5585 GB, free: 15.67 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002679/0.5935, allocations: 23.44 kB / 0.5585 GB, free: 15.65 MB / 378.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002184/0.5937, allocations: 107.2 kB / 0.5586 GB, free: 15.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001753/0.5939, allocations: 54.17 kB / 0.5587 GB, free: 15.49 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.5939, allocations: 0 / 0.5587 GB, free: 15.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.801e-05/0.594, allocations: 26.56 kB / 0.5587 GB, free: 15.47 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001266/0.5941, allocations: 13.11 kB / 0.5587 GB, free: 15.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003639/0.5945, allocations: 117 kB / 0.5588 GB, free: 15.33 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003055/0.5948, allocations: 0.6887 MB / 0.5595 GB, free: 14.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.575e-05/0.5949, allocations: 14.38 kB / 0.5595 GB, free: 14.61 MB / 378.7 MB Notification: Performance of SimCode: time 1.092e-06/0.5949, allocations: 0 / 0.5595 GB, free: 14.61 MB / 378.7 MB Notification: Performance of Templates: time 0.003103/0.598, allocations: 0.8267 MB / 0.5603 GB, free: 13.79 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches