Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.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.001116/0.001116, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001223/0.001223, allocations: 169 kB / 24.91 MB, free: 8.723 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.9781/0.9781, allocations: 177.1 MB / 205.3 MB, free: 4.492 MB / 186.7 MB " [Timeout remaining time 179] 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.1403/0.1403, allocations: 34.26 MB / 296.1 MB, free: 13.98 MB / 282.7 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.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 325.2 MB, free: 0.8164 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.468e-05/2.605e-05, allocations: 6.312 kB / 325.2 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001216/0.001242, allocations: 0.4918 MB / 325.7 MB, free: 324 kB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001516/0.002758, allocations: 1.403 MB / 327.1 MB, free: 14.91 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.402e-05/0.002782, allocations: 3.938 kB / 327.1 MB, free: 14.9 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.272e-05/0.002794, allocations: 0 / 327.1 MB, free: 14.9 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001854/0.00298, allocations: 7.984 kB / 327.1 MB, free: 14.89 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:455:3-487:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0009637/0.003943, allocations: 278.2 kB / 327.4 MB, free: 14.63 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.675e-05/0.00399, allocations: 7.938 kB / 327.4 MB, free: 14.62 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.354e-05/0.004024, allocations: 0 / 327.4 MB, free: 14.62 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.767e-05/0.004061, allocations: 3.984 kB / 327.4 MB, free: 14.62 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.269e-05/0.004104, allocations: 7.984 kB / 327.4 MB, free: 14.61 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.407e-06/0.004114, allocations: 0 / 327.4 MB, free: 14.61 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002252/0.006366, allocations: 0.9969 MB / 328.4 MB, free: 13.88 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.204e-05/0.006378, allocations: 3.938 kB / 328.4 MB, free: 13.88 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.389e-05/0.006392, allocations: 0 / 328.4 MB, free: 13.88 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002795/0.006671, allocations: 223.4 kB / 328.6 MB, free: 13.66 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.267e-06/0.006675, allocations: 0 / 328.6 MB, free: 13.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.006675, allocations: 0 / 328.6 MB, free: 13.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.286e-06/0.006679, allocations: 0 / 328.6 MB, free: 13.66 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.0002619/0.006941, allocations: 286.3 kB / 328.9 MB, free: 13.35 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.006975, allocations: 12.03 kB / 328.9 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.445e-05/0.006999, allocations: 0.9375 kB / 328.9 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.889e-05/0.007078, allocations: 113.7 kB / 329 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.406e-06/0.007087, allocations: 384 / 329 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.626e-06/0.007095, allocations: 384 / 329 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.586e-05/0.007161, allocations: 59.95 kB / 329.1 MB, free: 13.13 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.51e-06/0.007167, allocations: 192 / 329.1 MB, free: 13.13 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.713e-06/0.007173, allocations: 4.125 kB / 329.1 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.007177, allocations: 0 / 329.1 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.466e-05/0.007192, allocations: 33.64 kB / 329.1 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.896e-05/0.007251, allocations: 61.03 kB / 329.2 MB, free: 13.01 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.991e-05/0.007291, allocations: 48.31 kB / 329.2 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.55e-05/0.007306, allocations: 30.56 kB / 329.3 MB, free: 12.91 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.566e-06/0.00731, allocations: 4.062 kB / 329.3 MB, free: 12.91 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.007342, allocations: 60.27 kB / 329.3 MB, free: 12.83 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 7.61e-07/0.007343, allocations: 0 / 329.3 MB, free: 12.83 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001112/0.007454, allocations: 118.7 kB / 329.4 MB, free: 12.69 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.192e-05/0.007486, allocations: 77.11 kB / 329.5 MB, free: 12.6 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.666e-05/0.007553, allocations: 102.7 kB / 329.6 MB, free: 12.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.05e-05/0.007563, allocations: 29.95 kB / 329.6 MB, free: 12.45 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.769e-05/0.007591, allocations: 84.08 kB / 329.7 MB, free: 12.36 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.358e-05/0.007604, allocations: 0 / 329.7 MB, free: 12.36 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.427e-05/0.007629, allocations: 21.69 kB / 329.8 MB, free: 12.34 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.763e-05/0.007706, allocations: 310.8 kB / 330.1 MB, free: 12.02 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.663e-05/0.007723, allocations: 25.7 kB / 330.1 MB, free: 11.99 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.294e-05/0.007736, allocations: 29.7 kB / 330.1 MB, free: 11.96 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.321e-05/0.007769, allocations: 64.27 kB / 330.2 MB, free: 11.88 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.007771, allocations: 0 / 330.2 MB, free: 11.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.566e-05/0.007857, allocations: 89.12 kB / 330.3 MB, free: 11.77 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.664e-05/0.007883, allocations: 33.7 kB / 330.3 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.007887, allocations: 4 kB / 330.3 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.648e-06/0.007897, allocations: 0 / 330.3 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.795e-06/0.007899, allocations: 0 / 330.3 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.715e-06/0.007902, allocations: 0 / 330.3 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.942e-05/0.007922, allocations: 3.938 kB / 330.3 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.007927, allocations: 0 / 330.3 MB, free: 11.73 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 6.541e-05/0.007993, allocations: 139.5 kB / 330.4 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.219e-06/0.007998, allocations: 0 / 330.4 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.102e-05/0.008009, allocations: 7.156 kB / 330.4 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-06/0.00801, allocations: 4 kB / 330.4 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.943e-06/0.008012, allocations: 0 / 330.4 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.008016, allocations: 3.938 kB / 330.5 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.685e-05/0.008063, allocations: 61.91 kB / 330.5 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.008064, allocations: 0 / 330.5 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.12e-07/0.008065, allocations: 0 / 330.5 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.008066, allocations: 3.984 kB / 330.5 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.667e-06/0.00807, allocations: 0 / 330.5 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.008071, allocations: 4 kB / 330.5 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.008073, allocations: 0 / 330.5 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.69e-05/0.00815, allocations: 132.4 kB / 330.6 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.442e-06/0.008156, allocations: 4 kB / 330.7 MB, free: 11.31 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.037e-05/0.008166, allocations: 0 / 330.7 MB, free: 11.31 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.771e-06/0.008172, allocations: 0 / 330.7 MB, free: 11.31 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.147e-06/0.008181, allocations: 4 kB / 330.7 MB, free: 11.31 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.008184, allocations: 0 / 330.7 MB, free: 11.31 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.779e-06/0.008194, allocations: 8.844 kB / 330.7 MB, free: 11.3 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008194, allocations: 3.938 kB / 330.7 MB, free: 11.29 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002154/0.008409, allocations: 63.86 kB / 330.7 MB, free: 11.23 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.0006609/0.00907, allocations: 390.9 kB / 331.1 MB, free: 10.95 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001568/0.009227, allocations: 127.5 kB / 331.2 MB, free: 10.8 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.00923, allocations: 0 / 331.2 MB, free: 10.8 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.801e-05/0.009258, allocations: 89.97 kB / 331.3 MB, free: 10.69 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.133e-05/0.009329, allocations: 7.281 kB / 331.3 MB, free: 10.68 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001517/0.009481, allocations: 114.5 kB / 331.4 MB, free: 10.54 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.391e-05/0.009505, allocations: 51.36 kB / 331.5 MB, free: 10.47 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.488e-06/0.00951, allocations: 4 kB / 331.5 MB, free: 10.46 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.116e-05/0.009541, allocations: 51.38 kB / 331.5 MB, free: 10.41 MB / 314.7 MB Notification: Performance of SimCode: time 6.41e-07/0.009541, allocations: 4.125 kB / 331.6 MB, free: 10.41 MB / 314.7 MB Notification: Performance of Templates: time 0.003268/0.01281, allocations: 1.885 MB / 333.4 MB, free: 8.531 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.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.0914279678836465]