Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001369/0.001369, allocations: 85.72 kB / 20.68 MB, free: 1.023 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.001427/0.001427, allocations: 166.3 kB / 23.96 MB, free: 4.141 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.468/1.468, allocations: 177.1 MB / 204.3 MB, free: 9.172 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.2008/0.2008, allocations: 32.82 MB / 293.5 MB, free: 20 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.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.954e-06/1.954e-06, allocations: 0 / 440.1 MB, free: 8.184 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.726e-05/2.922e-05, allocations: 2.281 kB / 440.1 MB, free: 8.18 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001589/0.001618, allocations: 497.3 kB / 440.5 MB, free: 7.695 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002586/0.004204, allocations: 1.348 MB / 441.9 MB, free: 6.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.898e-05/0.004233, allocations: 4 kB / 441.9 MB, free: 6.336 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.675e-05/0.004249, allocations: 0 / 441.9 MB, free: 6.336 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002506/0.0045, allocations: 3.984 kB / 441.9 MB, free: 6.332 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488: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.001331/0.005831, allocations: 278 kB / 442.2 MB, free: 6.062 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 7.491e-05/0.005906, allocations: 4 kB / 442.2 MB, free: 6.059 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.756e-05/0.005954, allocations: 0 / 442.2 MB, free: 6.059 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.472e-05/0.005999, allocations: 15.97 kB / 442.2 MB, free: 6.043 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.042e-05/0.006059, allocations: 0 / 442.2 MB, free: 6.043 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.168e-05/0.006071, allocations: 0 / 442.2 MB, free: 6.043 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004365/0.01044, allocations: 0.7117 MB / 442.9 MB, free: 5.453 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.854e-05/0.01045, allocations: 8 kB / 442.9 MB, free: 5.445 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.304e-05/0.01049, allocations: 0 / 442.9 MB, free: 5.445 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000504/0.01099, allocations: 211.4 kB / 443.1 MB, free: 5.238 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.024e-05/0.011, allocations: 7.984 kB / 443.1 MB, free: 5.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.011, allocations: 0 / 443.1 MB, free: 5.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.01101, allocations: 0 / 443.1 MB, free: 5.23 MB / 366.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.0005195/0.01153, allocations: 303.7 kB / 443.4 MB, free: 4.898 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.01157, allocations: 8.031 kB / 443.4 MB, free: 4.891 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.249e-05/0.01162, allocations: 8.891 kB / 443.4 MB, free: 4.883 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001257/0.01174, allocations: 105.7 kB / 443.5 MB, free: 4.754 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.01176, allocations: 4.375 kB / 443.5 MB, free: 4.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.487e-05/0.01177, allocations: 8.312 kB / 443.5 MB, free: 4.742 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001276/0.0119, allocations: 55.95 kB / 443.6 MB, free: 4.676 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.01191, allocations: 192 / 443.6 MB, free: 4.676 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.01192, allocations: 4.125 kB / 443.6 MB, free: 4.672 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.01193, allocations: 4 kB / 443.6 MB, free: 4.668 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.769e-05/0.01197, allocations: 25.7 kB / 443.6 MB, free: 4.637 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001396/0.0121, allocations: 101.3 kB / 443.7 MB, free: 4.508 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.93e-05/0.01218, allocations: 52.14 kB / 443.8 MB, free: 4.441 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.836e-05/0.01222, allocations: 34.66 kB / 443.8 MB, free: 4.398 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.366e-06/0.01223, allocations: 4 kB / 443.8 MB, free: 4.395 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.971e-05/0.0123, allocations: 56.27 kB / 443.9 MB, free: 4.324 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.633e-06/0.0123, allocations: 0 / 443.9 MB, free: 4.324 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002452/0.01255, allocations: 122.8 kB / 444 MB, free: 4.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001341/0.01268, allocations: 84.98 kB / 444.1 MB, free: 4.078 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.325e-05/0.01277, allocations: 97.86 kB / 444.2 MB, free: 3.973 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.01279, allocations: 25.7 kB / 444.2 MB, free: 3.941 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.874e-05/0.01284, allocations: 88.12 kB / 444.3 MB, free: 3.852 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.695e-05/0.01286, allocations: 0 / 444.3 MB, free: 3.852 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.217e-05/0.01289, allocations: 13.97 kB / 444.3 MB, free: 3.832 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.01303, allocations: 318.8 kB / 444.6 MB, free: 3.512 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.935e-05/0.01306, allocations: 29.7 kB / 444.6 MB, free: 3.477 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.312e-05/0.01309, allocations: 29.7 kB / 444.7 MB, free: 3.441 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.601e-05/0.01314, allocations: 60.27 kB / 444.7 MB, free: 3.367 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.01315, allocations: 0 / 444.7 MB, free: 3.367 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.876e-05/0.01324, allocations: 97.02 kB / 444.8 MB, free: 3.254 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.901e-05/0.01328, allocations: 33.7 kB / 444.9 MB, free: 3.215 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.01329, allocations: 0 / 444.9 MB, free: 3.215 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.0133, allocations: 0 / 444.9 MB, free: 3.215 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.507e-06/0.0133, allocations: 8.031 kB / 444.9 MB, free: 3.207 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.127e-06/0.01331, allocations: 0 / 444.9 MB, free: 3.207 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.8e-05/0.01333, allocations: 4 kB / 444.9 MB, free: 3.203 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.398e-06/0.01334, allocations: 4 kB / 444.9 MB, free: 3.199 MB / 366.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.0001069/0.01344, allocations: 135.5 kB / 445 MB, free: 3.051 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.209e-05/0.01345, allocations: 7.953 kB / 445 MB, free: 3.043 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.319e-05/0.01347, allocations: 3.156 kB / 445 MB, free: 3.039 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.01347, allocations: 0 / 445 MB, free: 3.039 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.01348, allocations: 7.875 kB / 445 MB, free: 3.031 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.01348, allocations: 4 kB / 445 MB, free: 3.027 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.16e-05/0.01356, allocations: 101.3 kB / 445.1 MB, free: 2.898 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.01356, allocations: 0 / 445.1 MB, free: 2.898 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.01356, allocations: 0 / 445.1 MB, free: 2.898 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.06e-06/0.01357, allocations: 3.984 kB / 445.1 MB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.712e-06/0.01358, allocations: 0 / 445.1 MB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.01358, allocations: 0 / 445.1 MB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.01358, allocations: 0 / 445.1 MB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001395/0.01372, allocations: 128.4 kB / 445.3 MB, free: 2.738 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.268e-06/0.01372, allocations: 0 / 445.3 MB, free: 2.738 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.129e-05/0.01373, allocations: 0 / 445.3 MB, free: 2.738 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.094e-05/0.01374, allocations: 4 kB / 445.3 MB, free: 2.734 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.172e-05/0.01376, allocations: 15.91 kB / 445.3 MB, free: 2.719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-06/0.01377, allocations: 0 / 445.3 MB, free: 2.719 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.073e-05/0.01382, allocations: 79.28 kB / 445.4 MB, free: 2.641 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01382, allocations: 0 / 445.4 MB, free: 2.641 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003211/0.01414, allocations: 59.86 kB / 445.4 MB, free: 2.582 MB / 366.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.0009185/0.01506, allocations: 352.4 kB / 445.8 MB, free: 2.309 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001409/0.0152, allocations: 118.8 kB / 445.9 MB, free: 2.168 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.984e-06/0.01521, allocations: 0 / 445.9 MB, free: 2.168 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.129e-05/0.01526, allocations: 77.17 kB / 445.9 MB, free: 2.074 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001391/0.0154, allocations: 8.062 kB / 446 MB, free: 2.066 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002487/0.01564, allocations: 122.4 kB / 446.1 MB, free: 1.914 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.261e-05/0.0157, allocations: 55.36 kB / 446.1 MB, free: 1.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.773e-06/0.0157, allocations: 0 / 446.1 MB, free: 1.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.771e-05/0.01572, allocations: 12.5 kB / 446.1 MB, free: 1.828 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.01572, allocations: 0 / 446.1 MB, free: 1.828 MB / 366.1 MB Notification: Performance of Templates: time 0.005367/0.02109, allocations: 1.635 MB / 447.8 MB, free: 208 kB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.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.8867080099880695]