Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 105.4 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00179/0.00179, allocations: 197.9 kB / 18.77 MB, free: 4.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.487/2.487, allocations: 222.9 MB / 242.5 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4206/0.4206, allocations: 44.17 MB / 336.8 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002095/0.002095, allocations: 59.75 kB / 408.3 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2227/0.2249, allocations: 60.84 MB / 469.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.003191/0.2281, allocations: 0.5294 MB / 469.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000968/0.2291, allocations: 257.7 kB / 470 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.758e-05/0.2292, allocations: 0 / 470 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.583e-05/0.2292, allocations: 0 / 470 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.328e-05/0.2292, allocations: 0 / 470 MB, free: 14.03 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.Internal‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0003711/0.2296, allocations: 51.83 kB / 470 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.54e-05/0.2297, allocations: 0 / 470 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.593e-05/0.2298, allocations: 0 / 470 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.605e-05/0.2298, allocations: 3.984 kB / 470 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.586e-05/0.2298, allocations: 0 / 470 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.241e-05/0.2298, allocations: 4 kB / 470 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001821/0.23, allocations: 59.95 kB / 470.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.084e-05/0.2301, allocations: 0 / 470.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.54e-05/0.2301, allocations: 7.984 kB / 470.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001383/0.2302, allocations: 31.95 kB / 470.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.2303, allocations: 0 / 470.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.2303, allocations: 4 kB / 470.1 MB, free: 13.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.2303, allocations: 0 / 470.1 MB, free: 13.87 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004789/0.2308, allocations: 361.2 kB / 470.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.2308, allocations: 12.03 kB / 470.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.006e-05/0.2309, allocations: 4.938 kB / 470.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.231, allocations: 164.3 kB / 470.6 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.2311, allocations: 8.344 kB / 470.7 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.919e-06/0.2311, allocations: 384 / 470.7 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001178/0.2312, allocations: 34.27 kB / 470.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.2312, allocations: 192 / 470.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.2313, allocations: 3.938 kB / 470.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.2313, allocations: 0 / 470.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.993e-05/0.2313, allocations: 8 kB / 470.7 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001972/0.2315, allocations: 141.7 kB / 470.8 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.869e-05/0.2316, allocations: 22.5 kB / 470.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.474e-05/0.2316, allocations: 8.953 kB / 470.9 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.267e-06/0.2316, allocations: 4 kB / 470.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.814e-05/0.2317, allocations: 60.27 kB / 470.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.302e-06/0.2317, allocations: 0 / 470.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002437/0.232, allocations: 63.34 kB / 471 MB, free: 12.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.862e-05/0.2321, allocations: 81.09 kB / 471.1 MB, free: 12.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.893e-05/0.2322, allocations: 89.86 kB / 471.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.374e-05/0.2322, allocations: 29.64 kB / 471.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.662e-05/0.2323, allocations: 88.2 kB / 471.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.957e-05/0.2323, allocations: 4 kB / 471.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.734e-05/0.2324, allocations: 13.72 kB / 471.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002281/0.2326, allocations: 310.8 kB / 471.6 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.366e-05/0.2326, allocations: 4 kB / 471.6 MB, free: 12.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.146e-06/0.2327, allocations: 0 / 471.6 MB, free: 12.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.821e-05/0.2327, allocations: 60.27 kB / 471.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2328, allocations: 3.938 kB / 471.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001172/0.2329, allocations: 71.45 kB / 471.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.831e-05/0.2329, allocations: 29.7 kB / 471.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.233, allocations: 0 / 471.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.233, allocations: 3.938 kB / 471.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.389e-06/0.233, allocations: 3.938 kB / 471.8 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.233, allocations: 0 / 471.8 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.716e-05/0.2331, allocations: 4 kB / 471.8 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.297e-06/0.2331, allocations: 0 / 471.8 MB, free: 11.94 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001533/0.2332, allocations: 135.5 kB / 471.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.537e-05/0.2333, allocations: 8.031 kB / 471.9 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.656e-05/0.2333, allocations: 11.02 kB / 471.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.2333, allocations: 0 / 471.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.2333, allocations: 0 / 471.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.2333, allocations: 0 / 471.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000178/0.2335, allocations: 145.7 kB / 472.1 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2335, allocations: 0 / 472.1 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.22e-07/0.2336, allocations: 4 kB / 472.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-06/0.2336, allocations: 0 / 472.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.543e-05/0.2336, allocations: 3.938 kB / 472.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.2336, allocations: 0 / 472.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.2336, allocations: 4 kB / 472.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001913/0.2338, allocations: 94.83 kB / 472.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.874e-05/0.2339, allocations: 81.11 kB / 472.3 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.247e-05/0.2339, allocations: 7.875 kB / 472.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.377e-05/0.234, allocations: 0 / 472.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.936e-05/0.234, allocations: 4 kB / 472.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.907e-06/0.234, allocations: 0 / 472.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.171e-05/0.2341, allocations: 79.31 kB / 472.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2341, allocations: 0 / 472.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003906/0.2345, allocations: 23.98 kB / 472.4 MB, free: 11.24 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0008967/0.2354, allocations: 289.5 kB / 472.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001331/0.2356, allocations: 55.41 kB / 472.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2356, allocations: 0 / 472.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.491e-05/0.2356, allocations: 55.41 kB / 472.8 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002052/0.2358, allocations: 7.984 kB / 472.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002728/0.2361, allocations: 104.5 kB / 472.9 MB, free: 10.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003478/0.2365, allocations: 0.677 MB / 473.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.378e-05/0.2365, allocations: 7.438 kB / 473.5 MB, free: 10.03 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2365, allocations: 0 / 473.5 MB, free: 10.03 MB / 350.1 MB Notification: Performance of Templates: time 0.004341/0.2409, allocations: 0.9636 MB / 474.5 MB, free: 9.066 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches