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.0009674/0.0009674, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.005915/0.005915, allocations: 160.4 kB / 24.7 MB, free: 9.43 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.933/0.933, allocations: 177.1 MB / 205 MB, free: 5.754 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.2505/0.2505, allocations: 32.79 MB / 294.2 MB, free: 1.199 MB / 266.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.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 3.677e-06/3.677e-06, allocations: 0 / 440.8 MB, free: 3.77 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 5.319e-05/5.687e-05, allocations: 6.219 kB / 440.8 MB, free: 3.762 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.00165/0.001707, allocations: 499.3 kB / 441.3 MB, free: 3.277 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001964/0.00367, allocations: 1.348 MB / 442.7 MB, free: 1.922 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.364e-05/0.003704, allocations: 8 kB / 442.7 MB, free: 1.914 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.038e-05/0.003724, allocations: 0 / 442.7 MB, free: 1.914 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000252/0.003976, allocations: 0 / 442.7 MB, free: 1.914 MB / 410.7 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.001376/0.005352, allocations: 266.6 kB / 442.9 MB, free: 1.656 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001035/0.005456, allocations: 7.984 kB / 442.9 MB, free: 1.648 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.891e-05/0.005504, allocations: 0 / 442.9 MB, free: 1.648 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.728e-05/0.005542, allocations: 4 kB / 442.9 MB, free: 1.645 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.722e-05/0.005589, allocations: 7.922 kB / 442.9 MB, free: 1.637 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.136e-05/0.0056, allocations: 0 / 442.9 MB, free: 1.637 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001713/0.007313, allocations: 0.7121 MB / 443.7 MB, free: 1.047 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.06e-05/0.007324, allocations: 0 / 443.7 MB, free: 1.047 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.227e-05/0.007346, allocations: 4 kB / 443.7 MB, free: 1.043 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003464/0.007692, allocations: 211.5 kB / 443.9 MB, free: 0.8359 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.007697, allocations: 4 kB / 443.9 MB, free: 0.832 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.007699, allocations: 4 kB / 443.9 MB, free: 0.8281 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.007704, allocations: 0 / 443.9 MB, free: 0.8281 MB / 410.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.000369/0.008073, allocations: 311.7 kB / 444.2 MB, free: 500 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.008115, allocations: 11.97 kB / 444.2 MB, free: 488 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.001e-05/0.008155, allocations: 4.938 kB / 444.2 MB, free: 484 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.76e-05/0.008243, allocations: 105.8 kB / 444.3 MB, free: 352 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.008258, allocations: 8.297 kB / 444.3 MB, free: 344 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.462e-05/0.008273, allocations: 384 / 444.3 MB, free: 344 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000105/0.008378, allocations: 55.97 kB / 444.4 MB, free: 276 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.008386, allocations: 4.188 kB / 444.4 MB, free: 272 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.008396, allocations: 4.125 kB / 444.4 MB, free: 268 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.008402, allocations: 4 kB / 444.4 MB, free: 264 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.627e-05/0.008429, allocations: 29.69 kB / 444.4 MB, free: 228 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000107/0.008536, allocations: 105.3 kB / 444.5 MB, free: 92 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.93e-05/0.008585, allocations: 40.28 kB / 444.5 MB, free: 36 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2092/0.2178, allocations: 38.56 kB / 444.6 MB, free: 46.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.114e-05/0.2178, allocations: 0 / 444.6 MB, free: 46.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.715e-05/0.2178, allocations: 56.27 kB / 444.6 MB, free: 46.63 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 2.796e-06/0.2178, allocations: 0 / 444.6 MB, free: 46.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002922/0.2181, allocations: 121 kB / 444.8 MB, free: 46.51 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.12e-05/0.2182, allocations: 82.59 kB / 444.8 MB, free: 46.41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.489e-05/0.2182, allocations: 94.8 kB / 444.9 MB, free: 46.32 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.346e-06/0.2182, allocations: 27.61 kB / 445 MB, free: 46.29 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.714e-05/0.2183, allocations: 85.14 kB / 445 MB, free: 46.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.973e-05/0.2183, allocations: 0 / 445 MB, free: 46.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.301e-05/0.2183, allocations: 12.66 kB / 445 MB, free: 46.19 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.441e-05/0.2183, allocations: 316.8 kB / 445.4 MB, free: 45.88 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.626e-05/0.2184, allocations: 35.8 kB / 445.4 MB, free: 45.84 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.247e-05/0.2184, allocations: 25.7 kB / 445.4 MB, free: 45.81 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.601e-05/0.2184, allocations: 59.92 kB / 445.5 MB, free: 45.74 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.2184, allocations: 4.125 kB / 445.5 MB, free: 45.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.021e-05/0.2185, allocations: 100.8 kB / 445.6 MB, free: 45.65 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.63e-05/0.2185, allocations: 31.23 kB / 445.6 MB, free: 45.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.2185, allocations: 3 kB / 445.6 MB, free: 45.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.2185, allocations: 0 / 445.6 MB, free: 45.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.262e-06/0.2185, allocations: 0 / 445.6 MB, free: 45.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.852e-06/0.2185, allocations: 0 / 445.6 MB, free: 45.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.325e-05/0.2186, allocations: 0 / 445.6 MB, free: 45.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.017e-05/0.2186, allocations: 2.969 kB / 445.6 MB, free: 45.62 MB / 410.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 5.062e-05/0.2186, allocations: 147.2 kB / 445.8 MB, free: 45.47 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.01e-06/0.2186, allocations: 5.281 kB / 445.8 MB, free: 45.47 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.492e-05/0.2186, allocations: 3.156 kB / 445.8 MB, free: 45.46 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.676e-06/0.2187, allocations: 0 / 445.8 MB, free: 45.46 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.2187, allocations: 0 / 445.8 MB, free: 45.46 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.2187, allocations: 2.906 kB / 445.8 MB, free: 45.46 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.023e-05/0.2187, allocations: 96.52 kB / 445.9 MB, free: 45.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.2187, allocations: 13 kB / 445.9 MB, free: 45.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.81e-07/0.2187, allocations: 0 / 445.9 MB, free: 45.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.2187, allocations: 0 / 445.9 MB, free: 45.34 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.2187, allocations: 2.75 kB / 445.9 MB, free: 45.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.11e-07/0.2187, allocations: 0 / 445.9 MB, free: 45.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.2187, allocations: 0 / 445.9 MB, free: 45.34 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.859e-05/0.2188, allocations: 115.2 kB / 446 MB, free: 45.21 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.454e-06/0.2188, allocations: 7.844 kB / 446 MB, free: 45.21 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.297e-05/0.2188, allocations: 5.234 kB / 446 MB, free: 45.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.083e-06/0.2188, allocations: 11.09 kB / 446 MB, free: 45.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.42e-05/0.2188, allocations: 0 / 446 MB, free: 45.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.876e-06/0.2188, allocations: 0 / 446 MB, free: 45.21 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.604e-05/0.2189, allocations: 78.88 kB / 446.1 MB, free: 45.14 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2189, allocations: 0 / 446.1 MB, free: 45.14 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002805/0.2191, allocations: 66.3 kB / 446.2 MB, free: 45.14 MB / 410.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.0005816/0.2197, allocations: 349.7 kB / 446.5 MB, free: 45.04 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001081/0.2198, allocations: 118.7 kB / 446.6 MB, free: 44.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2198, allocations: 0 / 446.6 MB, free: 44.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.711e-05/0.2198, allocations: 88.12 kB / 446.7 MB, free: 44.82 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001171/0.22, allocations: 7.156 kB / 446.7 MB, free: 44.82 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002101/0.2202, allocations: 132 kB / 446.8 MB, free: 44.67 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.174e-05/0.2202, allocations: 58.61 kB / 446.9 MB, free: 44.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.26e-05/0.2202, allocations: 8.5 kB / 446.9 MB, free: 44.59 MB / 410.7 MB Notification: Performance of SimCode: time 9.12e-07/0.2202, allocations: 2.906 kB / 446.9 MB, free: 44.59 MB / 410.7 MB Notification: Performance of Templates: time 0.002955/0.2232, allocations: 1.699 MB / 448.6 MB, free: 44.43 MB / 410.7 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: 5.16038454324007]