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.001465/0.001465, allocations: 79.62 kB / 20.68 MB, free: 1.031 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.001484/0.001484, allocations: 165 kB / 23.95 MB, free: 4.156 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.479/1.479, allocations: 177.2 MB / 204.3 MB, free: 9.176 MB / 190.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.2193/0.2193, allocations: 34.28 MB / 294.9 MB, free: 14.57 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.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.653e-06/1.653e-06, allocations: 0 / 442.6 MB, free: 5.43 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.48e-05/2.645e-05, allocations: 6.219 kB / 442.6 MB, free: 5.422 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.00147/0.001496, allocations: 0.4928 MB / 443.1 MB, free: 4.934 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002171/0.003667, allocations: 1.352 MB / 444.5 MB, free: 3.574 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.865e-05/0.003696, allocations: 0 / 444.5 MB, free: 3.574 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.653e-05/0.003713, allocations: 0 / 444.5 MB, free: 3.574 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001872/0.0039, allocations: 8 kB / 444.5 MB, free: 3.566 MB / 366.1 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.001166/0.005065, allocations: 267 kB / 444.8 MB, free: 3.305 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 7.837e-05/0.005144, allocations: 7.938 kB / 444.8 MB, free: 3.297 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.041e-05/0.005194, allocations: 0 / 444.8 MB, free: 3.297 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.305e-05/0.005237, allocations: 4 kB / 444.8 MB, free: 3.293 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.041e-05/0.005298, allocations: 0 / 444.8 MB, free: 3.293 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.176e-05/0.005309, allocations: 0 / 444.8 MB, free: 3.293 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004347/0.009656, allocations: 0.7146 MB / 445.5 MB, free: 2.703 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.867e-06/0.009665, allocations: 3.938 kB / 445.5 MB, free: 2.699 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.189e-05/0.009687, allocations: 4 kB / 445.5 MB, free: 2.695 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003843/0.01007, allocations: 215.5 kB / 445.7 MB, free: 2.484 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.01008, allocations: 0 / 445.7 MB, free: 2.484 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.011e-06/0.01008, allocations: 0 / 445.7 MB, free: 2.484 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.01009, allocations: 4 kB / 445.7 MB, free: 2.48 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.0004249/0.01051, allocations: 311.7 kB / 446 MB, free: 2.141 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.01056, allocations: 8.031 kB / 446 MB, free: 2.133 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.118e-05/0.0106, allocations: 4.891 kB / 446 MB, free: 2.129 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000129/0.01073, allocations: 113.7 kB / 446.1 MB, free: 1.992 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.967e-06/0.01074, allocations: 384 / 446.1 MB, free: 1.992 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.275e-05/0.01075, allocations: 384 / 446.1 MB, free: 1.992 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001013/0.01085, allocations: 55.97 kB / 446.2 MB, free: 1.926 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.01086, allocations: 192 / 446.2 MB, free: 1.926 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.01087, allocations: 4.125 kB / 446.2 MB, free: 1.922 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.01087, allocations: 4 kB / 446.2 MB, free: 1.918 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.485e-05/0.01091, allocations: 37.62 kB / 446.2 MB, free: 1.875 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001341/0.01104, allocations: 97.33 kB / 446.3 MB, free: 1.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.847e-05/0.01111, allocations: 52.23 kB / 446.4 MB, free: 1.684 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.307e-05/0.01114, allocations: 34.62 kB / 446.4 MB, free: 1.641 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.104e-05/0.01116, allocations: 0 / 446.4 MB, free: 1.641 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.309e-05/0.01121, allocations: 56.27 kB / 446.5 MB, free: 1.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.01121, allocations: 0 / 446.5 MB, free: 1.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002374/0.01145, allocations: 122.8 kB / 446.6 MB, free: 1.426 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.613e-05/0.01151, allocations: 81.05 kB / 446.7 MB, free: 1.328 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.127e-05/0.0116, allocations: 105.9 kB / 446.8 MB, free: 1.215 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/0.01162, allocations: 29.7 kB / 446.8 MB, free: 1.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.605e-05/0.01167, allocations: 84.14 kB / 446.9 MB, free: 1.094 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.457e-05/0.01169, allocations: 3.938 kB / 446.9 MB, free: 1.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.403e-05/0.01172, allocations: 13.72 kB / 446.9 MB, free: 1.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.01187, allocations: 310.8 kB / 447.2 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.735e-05/0.0119, allocations: 25.7 kB / 447.2 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.053e-05/0.01192, allocations: 29.7 kB / 447.3 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.845e-05/0.01199, allocations: 72.25 kB / 447.3 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.01199, allocations: 4.188 kB / 447.3 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001022/0.01209, allocations: 85.11 kB / 447.4 MB, free: 0.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.694e-05/0.01213, allocations: 29.7 kB / 447.4 MB, free: 476 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.01213, allocations: 4 kB / 447.4 MB, free: 472 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.01215, allocations: 3.984 kB / 447.5 MB, free: 468 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.591e-06/0.01216, allocations: 3.938 kB / 447.5 MB, free: 464 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.01216, allocations: 3.938 kB / 447.5 MB, free: 460 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.446e-05/0.01218, allocations: 0 / 447.5 MB, free: 460 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.931e-06/0.01218, allocations: 0 / 447.5 MB, free: 460 kB / 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.0001214/0.0123, allocations: 139.5 kB / 447.6 MB, free: 304 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.122e-05/0.01231, allocations: 7.984 kB / 447.6 MB, free: 296 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.282e-05/0.01233, allocations: 3.156 kB / 447.6 MB, free: 292 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.01233, allocations: 4 kB / 447.6 MB, free: 288 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.01234, allocations: 3.938 kB / 447.6 MB, free: 284 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.01234, allocations: 0 / 447.6 MB, free: 284 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001002/0.01244, allocations: 97.31 kB / 447.7 MB, free: 156 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.01244, allocations: 0 / 447.7 MB, free: 156 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.52e-07/0.01244, allocations: 4 kB / 447.7 MB, free: 152 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.01244, allocations: 0 / 447.7 MB, free: 152 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.378e-06/0.01245, allocations: 0 / 447.7 MB, free: 152 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.01245, allocations: 0 / 447.7 MB, free: 152 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.01245, allocations: 4 kB / 447.7 MB, free: 148 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2064/0.2188, allocations: 121.1 kB / 447.8 MB, free: 19.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.791e-05/0.2189, allocations: 1.219 kB / 447.8 MB, free: 19.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.994e-05/0.2189, allocations: 4.938 kB / 447.8 MB, free: 19.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.798e-05/0.2189, allocations: 1 kB / 447.8 MB, free: 19.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.817e-05/0.2189, allocations: 7.25 kB / 447.9 MB, free: 19.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-06/0.2189, allocations: 2.953 kB / 447.9 MB, free: 19.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.722e-05/0.219, allocations: 80.47 kB / 447.9 MB, free: 19.19 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.219, allocations: 0.9688 kB / 447.9 MB, free: 19.19 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000407/0.2194, allocations: 66.08 kB / 448 MB, free: 19.19 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.000862/0.2202, allocations: 349.9 kB / 448.3 MB, free: 19.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001323/0.2204, allocations: 117.9 kB / 448.5 MB, free: 18.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2204, allocations: 0 / 448.5 MB, free: 18.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.084e-05/0.2204, allocations: 88.3 kB / 448.5 MB, free: 18.87 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001433/0.2206, allocations: 2.125 kB / 448.5 MB, free: 18.87 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001932/0.2207, allocations: 110.8 kB / 448.7 MB, free: 18.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.165e-05/0.2208, allocations: 60.91 kB / 448.7 MB, free: 18.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.2e-06/0.2208, allocations: 0 / 448.7 MB, free: 18.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.589e-05/0.2208, allocations: 11.77 kB / 448.7 MB, free: 18.67 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2208, allocations: 0 / 448.7 MB, free: 18.67 MB / 366.1 MB Notification: Performance of Templates: time 0.005175/0.226, allocations: 1.639 MB / 450.4 MB, free: 18.53 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.028944503515959]