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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001662/0.001662, allocations: 75.73 kB / 21.24 MB, free: 400 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 169.6 kB / 24.5 MB, free: 3.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.478/1.478, allocations: 177.2 MB / 204.9 MB, free: 9.039 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2068/0.2068, allocations: 32.81 MB / 294.1 MB, free: 64 kB / 270.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002131/0.002131, allocations: 67.91 kB / 440.5 MB, free: 9.512 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3763/0.3785, allocations: 65.44 MB / 0.4941 GB, free: 31.46 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001518/0.38, allocations: 0.4925 MB / 0.4946 GB, free: 31.16 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005628/0.3805, allocations: 259.7 kB / 0.4948 GB, free: 31.02 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.419e-05/0.3806, allocations: 3.031 kB / 0.4949 GB, free: 31.02 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.679e-05/0.3806, allocations: 3.938 kB / 0.4949 GB, free: 31.02 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.3e-06/0.3806, allocations: 0 / 0.4949 GB, free: 31.02 MB / 446.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.0003081/0.3809, allocations: 45.88 kB / 0.4949 GB, free: 30.99 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.264e-05/0.3809, allocations: 7.156 kB / 0.4949 GB, free: 30.99 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.969e-05/0.381, allocations: 3.422 kB / 0.4949 GB, free: 30.99 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.534e-05/0.381, allocations: 7.922 kB / 0.4949 GB, free: 30.98 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.456e-05/0.381, allocations: 4 kB / 0.4949 GB, free: 30.98 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.205e-06/0.381, allocations: 0 / 0.4949 GB, free: 30.98 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001298/0.3812, allocations: 60.61 kB / 0.495 GB, free: 30.96 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.454e-06/0.3812, allocations: 0 / 0.495 GB, free: 30.96 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.068e-05/0.3812, allocations: 3.469 kB / 0.495 GB, free: 30.96 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001167/0.3813, allocations: 58.33 kB / 0.495 GB, free: 30.94 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.3813, allocations: 0 / 0.495 GB, free: 30.94 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3813, allocations: 0 / 0.495 GB, free: 30.94 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.3813, allocations: 0 / 0.495 GB, free: 30.94 MB / 446.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.0002697/0.3816, allocations: 280.6 kB / 0.4953 GB, free: 30.64 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.171e-05/0.3816, allocations: 9.438 kB / 0.4953 GB, free: 30.64 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.869e-05/0.3816, allocations: 4.938 kB / 0.4953 GB, free: 30.64 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.452e-05/0.3817, allocations: 109.7 kB / 0.4954 GB, free: 30.51 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.033e-06/0.3817, allocations: 384 / 0.4954 GB, free: 30.51 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.155e-05/0.3817, allocations: 3.797 kB / 0.4954 GB, free: 30.51 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.978e-05/0.3818, allocations: 59 kB / 0.4955 GB, free: 30.44 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.3818, allocations: 192 / 0.4955 GB, free: 30.44 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.3818, allocations: 3.938 kB / 0.4955 GB, free: 30.44 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.3818, allocations: 0 / 0.4955 GB, free: 30.44 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.258e-05/0.3819, allocations: 28.61 kB / 0.4955 GB, free: 30.41 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.885e-05/0.3819, allocations: 99.78 kB / 0.4956 GB, free: 30.29 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.165e-05/0.382, allocations: 51.56 kB / 0.4957 GB, free: 30.22 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.738e-05/0.382, allocations: 30.56 kB / 0.4957 GB, free: 30.18 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.308e-06/0.382, allocations: 0 / 0.4957 GB, free: 30.18 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.382, allocations: 63.42 kB / 0.4957 GB, free: 30.11 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.382, allocations: 0 / 0.4957 GB, free: 30.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001604/0.3822, allocations: 123.9 kB / 0.4959 GB, free: 29.97 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.526e-05/0.3822, allocations: 80.33 kB / 0.4959 GB, free: 29.88 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.057e-05/0.3822, allocations: 93.81 kB / 0.496 GB, free: 29.78 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.122e-06/0.3822, allocations: 25.7 kB / 0.4961 GB, free: 29.75 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.305e-06/0.3822, allocations: 80.14 kB / 0.4961 GB, free: 29.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.827e-05/0.3823, allocations: 4.125 kB / 0.4961 GB, free: 29.66 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.333e-05/0.3823, allocations: 16.31 kB / 0.4962 GB, free: 29.64 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.368e-05/0.3823, allocations: 313.8 kB / 0.4965 GB, free: 29.33 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.393e-05/0.3823, allocations: 29.7 kB / 0.4965 GB, free: 29.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.145e-05/0.3824, allocations: 32.73 kB / 0.4965 GB, free: 29.26 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.788e-05/0.3824, allocations: 59.2 kB / 0.4966 GB, free: 29.19 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.3824, allocations: 0 / 0.4966 GB, free: 29.19 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.618e-05/0.3825, allocations: 90.64 kB / 0.4967 GB, free: 29.09 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.3825, allocations: 35.8 kB / 0.4967 GB, free: 29.06 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.3825, allocations: 96 / 0.4967 GB, free: 29.06 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.3825, allocations: 4 kB / 0.4967 GB, free: 29.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.673e-06/0.3825, allocations: 3.938 kB / 0.4967 GB, free: 29.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.3825, allocations: 6.422 kB / 0.4967 GB, free: 29.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.535e-05/0.3825, allocations: 0 / 0.4967 GB, free: 29.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.785e-06/0.3825, allocations: 0 / 0.4967 GB, free: 29.05 MB / 446.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 5.145e-05/0.3826, allocations: 134.6 kB / 0.4968 GB, free: 28.91 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.413e-06/0.3826, allocations: 0 / 0.4968 GB, free: 28.91 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.267e-06/0.3826, allocations: 3 kB / 0.4968 GB, free: 28.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3826, allocations: 6.969 kB / 0.4968 GB, free: 28.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.3826, allocations: 3.938 kB / 0.4968 GB, free: 28.89 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.3826, allocations: 4 kB / 0.4968 GB, free: 28.89 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.092e-05/0.3826, allocations: 96.75 kB / 0.4969 GB, free: 28.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3826, allocations: 7.125 kB / 0.4969 GB, free: 28.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.81e-07/0.3826, allocations: 0 / 0.4969 GB, free: 28.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.3827, allocations: 0 / 0.4969 GB, free: 28.77 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.831e-06/0.3827, allocations: 0 / 0.4969 GB, free: 28.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.3827, allocations: 0 / 0.4969 GB, free: 28.77 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3827, allocations: 3.938 kB / 0.497 GB, free: 28.76 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.164e-05/0.3827, allocations: 116.7 kB / 0.4971 GB, free: 28.63 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.538e-06/0.3827, allocations: 4 kB / 0.4971 GB, free: 28.63 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.092e-05/0.3827, allocations: 7.125 kB / 0.4971 GB, free: 28.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.167e-06/0.3828, allocations: 3.562 kB / 0.4971 GB, free: 28.62 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.094e-05/0.3828, allocations: 3.938 kB / 0.4971 GB, free: 28.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-06/0.3828, allocations: 7.016 kB / 0.4971 GB, free: 28.62 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.281e-05/0.3828, allocations: 75.28 kB / 0.4972 GB, free: 28.54 MB / 446.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3828, allocations: 0 / 0.4972 GB, free: 28.54 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002296/0.383, allocations: 19.91 kB / 0.4972 GB, free: 28.54 MB / 446.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.0006453/0.3837, allocations: 302.9 kB / 0.4975 GB, free: 28.38 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 9.071e-05/0.3837, allocations: 109.1 kB / 0.4976 GB, free: 28.25 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3837, allocations: 64 / 0.4976 GB, free: 28.25 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.441e-05/0.3838, allocations: 87.59 kB / 0.4977 GB, free: 28.16 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001236/0.3839, allocations: 3.125 kB / 0.4977 GB, free: 28.16 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000193/0.3841, allocations: 110.5 kB / 0.4978 GB, free: 28.02 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.805e-05/0.3841, allocations: 57.64 kB / 0.4978 GB, free: 27.95 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.982e-06/0.3841, allocations: 0 / 0.4978 GB, free: 27.95 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.291e-05/0.3841, allocations: 8.5 kB / 0.4978 GB, free: 27.94 MB / 446.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3841, allocations: 3 kB / 0.4978 GB, free: 27.94 MB / 446.1 MB Notification: Performance of Templates: time 0.003342/0.3875, allocations: 0.8073 MB / 0.4986 GB, free: 27.8 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (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 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.984053289983422]