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.001347/0.001351, allocations: 117.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001514/0.001514, allocations: 203.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2054/0.2054, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.0015, allocations: 83.88 kB / 481.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3219, allocations: 62.43 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001501/0.3235, allocations: 0.5202 MB / 0.5315 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003915/0.3239, allocations: 160 kB / 0.5316 GB, free: 13.08 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.447e-05/0.3239, allocations: 0 / 0.5316 GB, free: 13.08 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.354e-05/0.324, allocations: 1.188 kB / 0.5316 GB, free: 13.08 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002408/0.3242, allocations: 32.22 kB / 0.5317 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.54e-06/0.3242, allocations: 1.094 kB / 0.5317 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.375e-05/0.3243, allocations: 32.66 kB / 0.5317 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.701e-05/0.3244, allocations: 6.375 kB / 0.5317 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.291e-05/0.3244, allocations: 11.64 kB / 0.5317 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.999e-05/0.3245, allocations: 18.67 kB / 0.5317 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.198e-05/0.3245, allocations: 1.531 kB / 0.5317 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001145/0.3246, allocations: 52.48 kB / 0.5318 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.498e-06/0.3246, allocations: 5.281 kB / 0.5318 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.985e-05/0.3246, allocations: 17.81 kB / 0.5318 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001142/0.3248, allocations: 34.8 kB / 0.5318 GB, free: 12.95 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3248, allocations: 0 / 0.5318 GB, free: 12.95 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.975e-06/0.3248, allocations: 0 / 0.5318 GB, free: 12.95 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.3248, allocations: 3.938 kB / 0.5319 GB, free: 12.94 MB / 398.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.0003257/0.3251, allocations: 343.8 kB / 0.5322 GB, free: 12.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.3252, allocations: 12.91 kB / 0.5322 GB, free: 12.56 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.387e-05/0.3252, allocations: 8.219 kB / 0.5322 GB, free: 12.56 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001166/0.3253, allocations: 164.4 kB / 0.5324 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.3253, allocations: 6.438 kB / 0.5324 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.503e-05/0.3254, allocations: 8.641 kB / 0.5324 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001324/0.3255, allocations: 56.42 kB / 0.5324 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.3255, allocations: 192 / 0.5324 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.3255, allocations: 7.938 kB / 0.5324 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.3255, allocations: 5.438 kB / 0.5324 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001041/0.3257, allocations: 49.45 kB / 0.5325 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001802/0.3258, allocations: 175.2 kB / 0.5327 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001424/0.326, allocations: 80.05 kB / 0.5327 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.057e-05/0.326, allocations: 32.12 kB / 0.5328 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003383/0.3264, allocations: 252.6 kB / 0.533 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.969e-05/0.3264, allocations: 32.31 kB / 0.533 GB, free: 11.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.242e-06/0.3264, allocations: 4 kB / 0.533 GB, free: 11.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002085/0.3266, allocations: 106.6 kB / 0.5331 GB, free: 11.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.13e-05/0.3267, allocations: 51.78 kB / 0.5332 GB, free: 11.53 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.212e-05/0.3267, allocations: 95.64 kB / 0.5333 GB, free: 11.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.352e-05/0.3268, allocations: 27.64 kB / 0.5333 GB, free: 11.4 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.588e-05/0.3268, allocations: 84.12 kB / 0.5334 GB, free: 11.31 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.14e-05/0.3268, allocations: 36.14 kB / 0.5334 GB, free: 11.28 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.633e-05/0.3269, allocations: 22.61 kB / 0.5334 GB, free: 11.26 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.967e-05/0.327, allocations: 320.3 kB / 0.5337 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.484e-05/0.327, allocations: 18.39 kB / 0.5338 GB, free: 10.93 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.803e-05/0.3271, allocations: 15.72 kB / 0.5338 GB, free: 10.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.556e-05/0.3271, allocations: 57.03 kB / 0.5338 GB, free: 10.89 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3271, allocations: 0 / 0.5338 GB, free: 10.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001205/0.3273, allocations: 87.11 kB / 0.5339 GB, free: 10.83 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.3273, allocations: 5.5 kB / 0.5339 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.758e-06/0.3273, allocations: 7.875 kB / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.3273, allocations: 1.375 kB / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.504e-05/0.3274, allocations: 16.36 kB / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.3274, allocations: 5.375 kB / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.549e-05/0.3275, allocations: 5.312 kB / 0.534 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.422e-06/0.3275, allocations: 1.375 kB / 0.534 GB, free: 10.81 MB / 398.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 6.772e-05/0.3275, allocations: 112.6 kB / 0.5341 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.212e-05/0.3276, allocations: 5.328 kB / 0.5341 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001784/0.3277, allocations: 108.2 kB / 0.5342 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.3278, allocations: 1.469 kB / 0.5342 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3278, allocations: 7.938 kB / 0.5342 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.3278, allocations: 5.359 kB / 0.5342 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001168/0.3279, allocations: 168.7 kB / 0.5343 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.3279, allocations: 0 / 0.5343 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.746e-05/0.328, allocations: 21.67 kB / 0.5344 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.328, allocations: 0 / 0.5344 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.268e-06/0.328, allocations: 5.312 kB / 0.5344 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.328, allocations: 0 / 0.5344 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.328, allocations: 1.375 kB / 0.5344 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001358/0.3281, allocations: 115.4 kB / 0.5345 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.164e-05/0.3282, allocations: 86.41 kB / 0.5346 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.238e-05/0.3282, allocations: 5.312 kB / 0.5346 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.491e-05/0.3282, allocations: 5.375 kB / 0.5346 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.065e-05/0.3283, allocations: 2.75 kB / 0.5346 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.21e-06/0.3283, allocations: 2.75 kB / 0.5346 GB, free: 10.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.176e-05/0.3283, allocations: 79.27 kB / 0.5347 GB, free: 10.1 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3283, allocations: 1.375 kB / 0.5347 GB, free: 10.1 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0001963/0.3285, allocations: 15 kB / 0.5347 GB, free: 10.1 MB / 398.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.0001253/0.3287, allocations: 106.5 kB / 0.5348 GB, free: 10 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001309/0.3288, allocations: 56.91 kB / 0.5348 GB, free: 9.98 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3288, allocations: 1.375 kB / 0.5348 GB, free: 9.98 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.595e-05/0.3289, allocations: 31.19 kB / 0.5349 GB, free: 9.969 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001464/0.329, allocations: 7.609 kB / 0.5349 GB, free: 9.965 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002981/0.3293, allocations: 138.4 kB / 0.535 GB, free: 9.836 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002011/0.3295, allocations: 0.6848 MB / 0.5357 GB, free: 9.133 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.589e-05/0.3296, allocations: 15.88 kB / 0.5357 GB, free: 9.121 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.298e-05/0.3296, allocations: 15.5 kB / 0.5357 GB, free: 9.109 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3296, allocations: 0 / 0.5357 GB, free: 9.109 MB / 398.1 MB Notification: Performance of Templates: time 0.00263/0.3322, allocations: 0.6494 MB / 0.5363 GB, free: 8.773 MB / 398.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