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.0009836/0.0009836, allocations: 80.31 kB / 22.21 MB, free: 2.285 MB / 18.57 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.0009797/0.0009797, allocations: 168.4 kB / 25.61 MB, free: 8.883 MB / 18.57 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 0.966/0.966, allocations: 177.1 MB / 206.1 MB, free: 4.523 MB / 186.7 MB " [Timeout remaining time 179] 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.1564/0.1564, allocations: 32.79 MB / 295.4 MB, free: 15.4 MB / 282.7 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: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 377.2 MB, free: 25.65 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.532e-05/1.66e-05, allocations: 5.547 kB / 377.2 MB, free: 25.64 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.00101/0.001027, allocations: 493 kB / 377.7 MB, free: 25.16 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004257/0.001452, allocations: 255.3 kB / 378 MB, free: 24.91 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.568e-05/0.001478, allocations: 4 kB / 378 MB, free: 24.91 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.548e-05/0.001493, allocations: 0 / 378 MB, free: 24.91 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 5.65e-06/0.001499, allocations: 0 / 378 MB, free: 24.91 MB / 314.7 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.0002953/0.001794, allocations: 51.7 kB / 378 MB, free: 24.86 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.74e-05/0.001842, allocations: 0 / 378 MB, free: 24.86 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.702e-05/0.001879, allocations: 7.984 kB / 378 MB, free: 24.85 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.588e-05/0.001905, allocations: 7.984 kB / 378 MB, free: 24.84 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.671e-05/0.001931, allocations: 0 / 378 MB, free: 24.84 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.808e-06/0.001941, allocations: 0 / 378 MB, free: 24.84 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001143/0.002055, allocations: 71.83 kB / 378.1 MB, free: 24.77 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 7.965e-06/0.002063, allocations: 0 / 378.1 MB, free: 24.77 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.655e-05/0.00208, allocations: 4 kB / 378.1 MB, free: 24.77 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000102/0.002182, allocations: 71.78 kB / 378.2 MB, free: 24.7 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.514e-06/0.002184, allocations: 0 / 378.2 MB, free: 24.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.51e-07/0.002185, allocations: 0 / 378.2 MB, free: 24.7 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.002189, allocations: 0 / 378.2 MB, free: 24.7 MB / 314.7 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.0002111/0.0024, allocations: 385.9 kB / 378.6 MB, free: 24.27 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.002434, allocations: 15.98 kB / 378.6 MB, free: 24.26 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.696e-05/0.00246, allocations: 0.9375 kB / 378.6 MB, free: 24.26 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.7e-05/0.002517, allocations: 108.6 kB / 378.7 MB, free: 24.12 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.002529, allocations: 384 / 378.7 MB, free: 24.12 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.003e-06/0.002536, allocations: 4.375 kB / 378.7 MB, free: 24.12 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.466e-05/0.0026, allocations: 59.89 kB / 378.7 MB, free: 24.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.002609, allocations: 192 / 378.7 MB, free: 24.05 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.632e-06/0.002615, allocations: 4.375 kB / 378.7 MB, free: 24.05 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.002621, allocations: 384 / 378.7 MB, free: 24.05 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.277e-05/0.002634, allocations: 37.62 kB / 378.8 MB, free: 24 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.163e-05/0.002696, allocations: 93.27 kB / 378.9 MB, free: 23.89 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.375e-05/0.002729, allocations: 48.77 kB / 378.9 MB, free: 23.82 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.264e-05/0.002742, allocations: 41.48 kB / 379 MB, free: 23.77 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.637e-06/0.002746, allocations: 4 kB / 379 MB, free: 23.77 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.477e-05/0.00277, allocations: 63.03 kB / 379 MB, free: 23.69 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 7.11e-07/0.002771, allocations: 0 / 379 MB, free: 23.69 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001295/0.002901, allocations: 118.8 kB / 379.1 MB, free: 23.55 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.291e-05/0.002924, allocations: 77.11 kB / 379.2 MB, free: 23.45 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.153e-05/0.002945, allocations: 146.2 kB / 379.4 MB, free: 23.3 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.01e-06/0.00295, allocations: 29.83 kB / 379.4 MB, free: 23.26 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.24e-05/0.002962, allocations: 126.9 kB / 379.5 MB, free: 23.13 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.533e-05/0.002978, allocations: 0 / 379.5 MB, free: 23.13 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.053e-05/0.002998, allocations: 27.34 kB / 379.5 MB, free: 23.1 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.041e-05/0.003049, allocations: 496.1 kB / 380 MB, free: 22.6 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.795e-06/0.003057, allocations: 25.7 kB / 380.1 MB, free: 22.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.223e-06/0.003064, allocations: 29.7 kB / 380.1 MB, free: 22.54 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.999e-05/0.003094, allocations: 67.03 kB / 380.1 MB, free: 22.45 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.003095, allocations: 0 / 380.1 MB, free: 22.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.236e-05/0.003137, allocations: 93.16 kB / 380.2 MB, free: 22.34 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.003158, allocations: 33.7 kB / 380.3 MB, free: 22.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.003162, allocations: 0 / 380.3 MB, free: 22.3 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.985e-06/0.00317, allocations: 3.938 kB / 380.3 MB, free: 22.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.192e-06/0.003171, allocations: 0 / 380.3 MB, free: 22.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.565e-06/0.003174, allocations: 0 / 380.3 MB, free: 22.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.355e-06/0.003182, allocations: 0 / 380.3 MB, free: 22.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-06/0.003189, allocations: 4 kB / 380.3 MB, free: 22.3 MB / 314.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: 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 4.788e-05/0.003236, allocations: 186.2 kB / 380.5 MB, free: 22.1 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.36e-06/0.003242, allocations: 4.344 kB / 380.5 MB, free: 22.09 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.055e-06/0.00325, allocations: 10.97 kB / 380.5 MB, free: 22.09 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.31e-07/0.003251, allocations: 0 / 380.5 MB, free: 22.09 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.003252, allocations: 0 / 380.5 MB, free: 22.09 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.003255, allocations: 0 / 380.5 MB, free: 22.09 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.519e-05/0.00329, allocations: 93.2 kB / 380.6 MB, free: 21.97 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.41e-07/0.00329, allocations: 4 kB / 380.6 MB, free: 21.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.7e-07/0.003291, allocations: 0 / 380.6 MB, free: 21.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.01e-07/0.003291, allocations: 0 / 380.6 MB, free: 21.96 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.659e-06/0.003296, allocations: 4 kB / 380.6 MB, free: 21.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.003297, allocations: 4 kB / 380.6 MB, free: 21.96 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.003298, allocations: 0 / 380.6 MB, free: 21.96 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.093e-05/0.003359, allocations: 135.7 kB / 380.7 MB, free: 21.79 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.4e-06/0.003364, allocations: 4 kB / 380.7 MB, free: 21.79 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.023e-05/0.003374, allocations: 3.984 kB / 380.7 MB, free: 21.78 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.088e-06/0.003378, allocations: 0 / 380.7 MB, free: 21.78 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.117e-06/0.003388, allocations: 0 / 380.7 MB, free: 21.78 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-06/0.00339, allocations: 4 kB / 380.7 MB, free: 21.78 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.494e-05/0.003405, allocations: 119.2 kB / 380.8 MB, free: 21.66 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003405, allocations: 3.938 kB / 380.8 MB, free: 21.66 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000148/0.003553, allocations: 23.94 kB / 380.9 MB, free: 21.63 MB / 314.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: 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.0004712/0.004024, allocations: 317.8 kB / 381.2 MB, free: 21.4 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 7.782e-05/0.004102, allocations: 122.5 kB / 381.3 MB, free: 21.25 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.004104, allocations: 0 / 381.3 MB, free: 21.25 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.547e-05/0.004119, allocations: 88.8 kB / 381.4 MB, free: 21.14 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.363e-05/0.004203, allocations: 7.938 kB / 381.4 MB, free: 21.14 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001376/0.004341, allocations: 107.6 kB / 381.5 MB, free: 21 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.795e-05/0.004359, allocations: 55.22 kB / 381.6 MB, free: 20.92 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.3e-06/0.004364, allocations: 0 / 381.6 MB, free: 20.92 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.71e-05/0.004391, allocations: 70.2 kB / 381.6 MB, free: 20.85 MB / 314.7 MB Notification: Performance of SimCode: time 6.01e-07/0.004392, allocations: 4.125 kB / 381.6 MB, free: 20.85 MB / 314.7 MB Notification: Performance of Templates: time 0.002183/0.006574, allocations: 0.938 MB / 382.6 MB, free: 19.91 MB / 314.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1066195662133396]