Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001313/0.001313, allocations: 112.2 kB / 21.19 MB, free: 0.7578 MB / 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.00155/0.00155, allocations: 209.8 kB / 24.5 MB, free: 4.133 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.397/1.397, allocations: 230.6 MB / 258.3 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2217/0.2217, allocations: 46.94 MB / 361.6 MB, free: 4.258 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 67.88 kB / 0.4974 GB, free: 7.395 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3759/0.3778, allocations: 66.02 MB / 0.5618 GB, free: 4.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001686/0.3795, allocations: 487.9 kB / 0.5623 GB, free: 3.934 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007046/0.3802, allocations: 277.5 kB / 0.5626 GB, free: 3.664 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.552e-05/0.3803, allocations: 0 / 0.5626 GB, free: 3.664 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.96e-05/0.3803, allocations: 0 / 0.5626 GB, free: 3.664 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.534e-06/0.3803, allocations: 0 / 0.5626 GB, free: 3.664 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:398:3-453: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.0003843/0.3807, allocations: 47.83 kB / 0.5626 GB, free: 3.617 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.059e-05/0.3807, allocations: 7.984 kB / 0.5626 GB, free: 3.609 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.894e-05/0.3808, allocations: 0 / 0.5626 GB, free: 3.609 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.504e-05/0.3808, allocations: 4 kB / 0.5626 GB, free: 3.605 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.341e-05/0.3808, allocations: 0 / 0.5626 GB, free: 3.605 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.939e-06/0.3808, allocations: 0 / 0.5626 GB, free: 3.605 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001688/0.381, allocations: 63.95 kB / 0.5627 GB, free: 3.543 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.354e-06/0.381, allocations: 4 kB / 0.5627 GB, free: 3.539 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.356e-05/0.381, allocations: 0 / 0.5627 GB, free: 3.539 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001457/0.3812, allocations: 63.59 kB / 0.5628 GB, free: 3.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.3812, allocations: 0 / 0.5628 GB, free: 3.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3812, allocations: 0 / 0.5628 GB, free: 3.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.25e-05/0.3812, allocations: 0 / 0.5628 GB, free: 3.48 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003752/0.3816, allocations: 282.5 kB / 0.563 GB, free: 3.172 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.3816, allocations: 12.03 kB / 0.563 GB, free: 3.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.318e-05/0.3817, allocations: 0.9375 kB / 0.563 GB, free: 3.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001003/0.3818, allocations: 106.5 kB / 0.5631 GB, free: 3.031 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.3818, allocations: 4.375 kB / 0.5631 GB, free: 3.027 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.084e-05/0.3818, allocations: 16.3 kB / 0.5632 GB, free: 3.012 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.911e-05/0.3819, allocations: 30.27 kB / 0.5632 GB, free: 2.977 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.3819, allocations: 192 / 0.5632 GB, free: 2.977 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.3819, allocations: 3.938 kB / 0.5632 GB, free: 2.973 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.3819, allocations: 0 / 0.5632 GB, free: 2.973 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.833e-05/0.3819, allocations: 4 kB / 0.5632 GB, free: 2.969 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001533/0.3821, allocations: 112.8 kB / 0.5633 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.989e-05/0.3821, allocations: 26.59 kB / 0.5633 GB, free: 2.781 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.219e-05/0.3822, allocations: 8.797 kB / 0.5633 GB, free: 2.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.036e-05/0.3822, allocations: 0 / 0.5633 GB, free: 2.77 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.072e-05/0.3822, allocations: 64.2 kB / 0.5634 GB, free: 2.691 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.3822, allocations: 0 / 0.5634 GB, free: 2.691 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001924/0.3824, allocations: 63.41 kB / 0.5635 GB, free: 2.617 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.694e-05/0.3825, allocations: 85.09 kB / 0.5635 GB, free: 2.516 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.61e-05/0.3826, allocations: 97.94 kB / 0.5636 GB, free: 2.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.3826, allocations: 25.7 kB / 0.5637 GB, free: 2.379 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.483e-05/0.3826, allocations: 80.14 kB / 0.5637 GB, free: 2.297 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.766e-05/0.3827, allocations: 0 / 0.5637 GB, free: 2.297 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.257e-05/0.3827, allocations: 17.72 kB / 0.5638 GB, free: 2.273 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.3828, allocations: 310.8 kB / 0.5641 GB, free: 1.961 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.271e-05/0.3829, allocations: 3.938 kB / 0.5641 GB, free: 1.957 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.029e-06/0.3829, allocations: 0 / 0.5641 GB, free: 1.957 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.164e-05/0.3829, allocations: 64.33 kB / 0.5641 GB, free: 1.879 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.3829, allocations: 0 / 0.5641 GB, free: 1.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.665e-05/0.383, allocations: 67.39 kB / 0.5642 GB, free: 1.801 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.884e-05/0.383, allocations: 32.52 kB / 0.5642 GB, free: 1.766 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.383, allocations: 0 / 0.5642 GB, free: 1.766 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.3831, allocations: 3.938 kB / 0.5642 GB, free: 1.762 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.71e-07/0.3831, allocations: 4 kB / 0.5642 GB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/0.3831, allocations: 0 / 0.5642 GB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.545e-05/0.3831, allocations: 0 / 0.5642 GB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.3831, allocations: 0 / 0.5642 GB, free: 1.758 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: 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.0001074/0.3832, allocations: 151.4 kB / 0.5644 GB, free: 1.594 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.414e-06/0.3832, allocations: 3.938 kB / 0.5644 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.36e-05/0.3832, allocations: 6.938 kB / 0.5644 GB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.3832, allocations: 0 / 0.5644 GB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.3832, allocations: 0 / 0.5644 GB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.3832, allocations: 0 / 0.5644 GB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001045/0.3833, allocations: 124.8 kB / 0.5645 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.3833, allocations: 0 / 0.5645 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.3833, allocations: 0 / 0.5645 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.3833, allocations: 4 kB / 0.5645 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.3833, allocations: 3.938 kB / 0.5645 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.3833, allocations: 0 / 0.5645 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3833, allocations: 4 kB / 0.5645 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001144/0.3835, allocations: 86.83 kB / 0.5646 GB, free: 1.297 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.807e-06/0.3835, allocations: 7.938 kB / 0.5646 GB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.559e-05/0.3835, allocations: 7.938 kB / 0.5646 GB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.09e-05/0.3835, allocations: 4.031 kB / 0.5646 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.462e-05/0.3835, allocations: 0 / 0.5646 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.3835, allocations: 0 / 0.5646 GB, free: 1.277 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.083e-05/0.3836, allocations: 79.22 kB / 0.5647 GB, free: 1.199 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3836, allocations: 4 kB / 0.5647 GB, free: 1.195 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002468/0.3838, allocations: 23.92 kB / 0.5647 GB, free: 1.172 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: 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.0006937/0.3845, allocations: 277.9 kB / 0.565 GB, free: 0.957 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001161/0.3846, allocations: 55.41 kB / 0.565 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3846, allocations: 4.062 kB / 0.565 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.967e-05/0.3847, allocations: 55.41 kB / 0.5651 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001296/0.3848, allocations: 4 kB / 0.5651 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002246/0.385, allocations: 114.6 kB / 0.5652 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003116/0.3853, allocations: 0.669 MB / 0.5658 GB, free: 15.98 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.413e-05/0.3853, allocations: 11.44 kB / 0.5659 GB, free: 15.96 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3853, allocations: 0 / 0.5659 GB, free: 15.96 MB / 414.1 MB Notification: Performance of Templates: time 0.002722/0.3881, allocations: 0.9638 MB / 0.5668 GB, free: 15 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 7.092078136978671]