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.001328/0.001328, allocations: 71.75 kB / 21.24 MB, free: 400 kB / 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.001404/0.001404, allocations: 164 kB / 24.49 MB, free: 3.453 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.447/1.447, allocations: 177.2 MB / 204.9 MB, free: 9.051 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.2066/0.2066, allocations: 34.28 MB / 295.5 MB, free: 14.61 MB / 286.1 MB " [Timeout remaining time 179] 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 0.002138/0.002138, allocations: 63.89 kB / 443.1 MB, free: 6.758 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3463, allocations: 66.01 MB / 0.4972 GB, free: 29.83 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001362/0.3477, allocations: 0.4922 MB / 0.4977 GB, free: 29.53 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001561/0.3492, allocations: 1.341 MB / 0.499 GB, free: 28.64 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.592e-05/0.3493, allocations: 0 / 0.499 GB, free: 28.64 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.139e-05/0.3493, allocations: 0 / 0.499 GB, free: 28.64 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001855/0.3495, allocations: 18.53 kB / 0.499 GB, free: 28.62 MB / 446.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.001/0.3505, allocations: 258.4 kB / 0.4993 GB, free: 28.52 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.959e-05/0.3505, allocations: 7.078 kB / 0.4993 GB, free: 28.51 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.401e-05/0.3505, allocations: 3.469 kB / 0.4993 GB, free: 28.51 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.735e-05/0.3506, allocations: 15.16 kB / 0.4993 GB, free: 28.5 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.071e-05/0.3506, allocations: 0 / 0.4993 GB, free: 28.5 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.625e-06/0.3506, allocations: 3.219 kB / 0.4993 GB, free: 28.5 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003882/0.3545, allocations: 0.7048 MB / 0.5 GB, free: 28.3 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.13e-05/0.3545, allocations: 4 kB / 0.5 GB, free: 28.29 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.245e-05/0.3545, allocations: 3.25 kB / 0.5 GB, free: 28.29 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003699/0.3549, allocations: 175 kB / 0.5001 GB, free: 28.25 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3549, allocations: 0 / 0.5001 GB, free: 28.25 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3549, allocations: 0 / 0.5001 GB, free: 28.25 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.3549, allocations: 0 / 0.5001 GB, free: 28.25 MB / 446.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.0003487/0.3553, allocations: 322.2 kB / 0.5005 GB, free: 27.93 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.3553, allocations: 6.812 kB / 0.5005 GB, free: 27.93 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.318e-05/0.3553, allocations: 4.094 kB / 0.5005 GB, free: 27.93 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.812e-05/0.3554, allocations: 102.5 kB / 0.5006 GB, free: 27.8 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.911e-05/0.3554, allocations: 4.375 kB / 0.5006 GB, free: 27.8 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.375e-06/0.3554, allocations: 3.594 kB / 0.5006 GB, free: 27.8 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.532e-05/0.3555, allocations: 70.12 kB / 0.5006 GB, free: 27.72 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.3555, allocations: 0 / 0.5006 GB, free: 27.72 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.3556, allocations: 0 / 0.5006 GB, free: 27.72 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.3556, allocations: 0 / 0.5006 GB, free: 27.72 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.472e-05/0.3556, allocations: 28.86 kB / 0.5007 GB, free: 27.69 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000101/0.3557, allocations: 93.33 kB / 0.5008 GB, free: 27.57 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.622e-05/0.3557, allocations: 51.12 kB / 0.5008 GB, free: 27.51 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.081e-05/0.3558, allocations: 33.97 kB / 0.5008 GB, free: 27.47 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.867e-06/0.3558, allocations: 4 kB / 0.5008 GB, free: 27.47 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.301e-05/0.3558, allocations: 60.2 kB / 0.5009 GB, free: 27.39 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.222e-06/0.3558, allocations: 0 / 0.5009 GB, free: 27.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001996/0.356, allocations: 127 kB / 0.501 GB, free: 27.26 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.059e-05/0.356, allocations: 77.11 kB / 0.5011 GB, free: 27.17 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.716e-05/0.3561, allocations: 93.27 kB / 0.5012 GB, free: 27.07 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.437e-06/0.3561, allocations: 25.7 kB / 0.5012 GB, free: 27.04 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.934e-05/0.3561, allocations: 80.14 kB / 0.5013 GB, free: 26.96 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.697e-05/0.3561, allocations: 0 / 0.5013 GB, free: 26.96 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.741e-05/0.3562, allocations: 20.64 kB / 0.5013 GB, free: 26.94 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.006e-05/0.3562, allocations: 318.1 kB / 0.5016 GB, free: 26.62 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.479e-05/0.3562, allocations: 25.7 kB / 0.5016 GB, free: 26.59 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.225e-05/0.3562, allocations: 28.92 kB / 0.5017 GB, free: 26.56 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.404e-05/0.3563, allocations: 71 kB / 0.5017 GB, free: 26.48 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3563, allocations: 0 / 0.5017 GB, free: 26.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.389e-05/0.3563, allocations: 87.75 kB / 0.5018 GB, free: 26.38 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.545e-05/0.3564, allocations: 43.73 kB / 0.5018 GB, free: 26.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.3564, allocations: 3.938 kB / 0.5019 GB, free: 26.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.3564, allocations: 0 / 0.5019 GB, free: 26.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.074e-06/0.3564, allocations: 10.61 kB / 0.5019 GB, free: 26.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.3564, allocations: 0 / 0.5019 GB, free: 26.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.503e-05/0.3564, allocations: 0 / 0.5019 GB, free: 26.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.651e-06/0.3564, allocations: 0 / 0.5019 GB, free: 26.34 MB / 446.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 5.508e-05/0.3565, allocations: 134.8 kB / 0.502 GB, free: 26.19 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.909e-06/0.3565, allocations: 3.938 kB / 0.502 GB, free: 26.19 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.219e-05/0.3565, allocations: 10.25 kB / 0.502 GB, free: 26.18 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.3565, allocations: 4 kB / 0.502 GB, free: 26.17 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.3565, allocations: 0 / 0.502 GB, free: 26.17 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.3565, allocations: 3.516 kB / 0.502 GB, free: 26.17 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.146e-05/0.3566, allocations: 104.5 kB / 0.5021 GB, free: 26.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3566, allocations: 0 / 0.5021 GB, free: 26.04 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.21e-07/0.3566, allocations: 0 / 0.5021 GB, free: 26.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.3566, allocations: 0 / 0.5021 GB, free: 26.04 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.3566, allocations: 7.25 kB / 0.5021 GB, free: 26.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.3566, allocations: 0 / 0.5021 GB, free: 26.04 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3566, allocations: 0 / 0.5021 GB, free: 26.04 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.82e-05/0.3566, allocations: 121.1 kB / 0.5022 GB, free: 25.91 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.431e-06/0.3567, allocations: 3.516 kB / 0.5022 GB, free: 25.91 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.573e-05/0.3567, allocations: 7 kB / 0.5022 GB, free: 25.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.009e-05/0.3567, allocations: 0 / 0.5022 GB, free: 25.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.68e-05/0.3567, allocations: 4.031 kB / 0.5022 GB, free: 25.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-06/0.3567, allocations: 3.031 kB / 0.5022 GB, free: 25.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.797e-05/0.3567, allocations: 79.28 kB / 0.5023 GB, free: 25.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3567, allocations: 0 / 0.5023 GB, free: 25.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002989/0.357, allocations: 61.78 kB / 0.5024 GB, free: 25.81 MB / 446.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.000773/0.3578, allocations: 347.7 kB / 0.5027 GB, free: 25.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 9.319e-05/0.3579, allocations: 112.9 kB / 0.5028 GB, free: 25.51 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.3579, allocations: 3 kB / 0.5028 GB, free: 25.51 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.866e-05/0.3579, allocations: 87.84 kB / 0.5029 GB, free: 25.41 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001323/0.358, allocations: 0 / 0.5029 GB, free: 25.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000209/0.3583, allocations: 114 kB / 0.503 GB, free: 25.28 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.21e-05/0.3583, allocations: 58.16 kB / 0.5031 GB, free: 25.21 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.997e-06/0.3583, allocations: 7.219 kB / 0.5031 GB, free: 25.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.371e-05/0.3583, allocations: 8.5 kB / 0.5031 GB, free: 25.2 MB / 446.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3583, allocations: 0 / 0.5031 GB, free: 25.2 MB / 446.1 MB Notification: Performance of Templates: time 0.004824/0.3631, allocations: 1.616 MB / 0.5047 GB, free: 24.99 MB / 446.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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/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.069200844038278]