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.001886/0.001886, allocations: 115.9 kB / 20.43 MB, free: 1.449 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.002047/0.002047, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.537/1.537, allocations: 230.6 MB / 257.5 MB, free: 8.012 MB / 206.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.2428/0.2428, allocations: 46.93 MB / 360.8 MB, free: 4.262 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 0.002143/0.002143, allocations: 71.88 kB / 0.4966 GB, free: 7.414 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3372, allocations: 66.04 MB / 0.5611 GB, free: 4.375 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001746/0.339, allocations: 489 kB / 0.5616 GB, free: 3.895 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002408/0.3414, allocations: 1.362 MB / 0.5629 GB, free: 2.527 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.952e-05/0.3414, allocations: 4 kB / 0.5629 GB, free: 2.523 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.268e-05/0.3414, allocations: 3.938 kB / 0.5629 GB, free: 2.52 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001696/0.3416, allocations: 11.98 kB / 0.5629 GB, free: 2.508 MB / 398.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.001107/0.3427, allocations: 261 kB / 0.5632 GB, free: 2.258 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.369e-05/0.3428, allocations: 7.938 kB / 0.5632 GB, free: 2.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.404e-05/0.3428, allocations: 7.969 kB / 0.5632 GB, free: 2.242 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.236e-05/0.3428, allocations: 3.984 kB / 0.5632 GB, free: 2.238 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001031/0.3429, allocations: 15.94 kB / 0.5632 GB, free: 2.223 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.995e-06/0.3429, allocations: 0 / 0.5632 GB, free: 2.223 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004117/0.347, allocations: 0.737 MB / 0.5639 GB, free: 1.613 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.021e-05/0.3471, allocations: 0 / 0.5639 GB, free: 1.613 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.999e-05/0.3471, allocations: 0 / 0.5639 GB, free: 1.613 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003157/0.3474, allocations: 190.1 kB / 0.5641 GB, free: 1.434 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3474, allocations: 0 / 0.5641 GB, free: 1.434 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3474, allocations: 0 / 0.5641 GB, free: 1.434 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.469e-06/0.3474, allocations: 4 kB / 0.5641 GB, free: 1.43 MB / 398.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.0004206/0.3478, allocations: 307.7 kB / 0.5644 GB, free: 1.094 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.3479, allocations: 12.02 kB / 0.5644 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.484e-05/0.3479, allocations: 0.9375 kB / 0.5644 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.348, allocations: 110.5 kB / 0.5645 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.787e-06/0.348, allocations: 4.312 kB / 0.5645 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.109e-05/0.348, allocations: 4.375 kB / 0.5645 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.915e-05/0.3481, allocations: 33.83 kB / 0.5646 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.3481, allocations: 0 / 0.5646 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-06/0.3481, allocations: 0 / 0.5646 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.868e-06/0.3481, allocations: 0 / 0.5646 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.81e-05/0.3482, allocations: 7.938 kB / 0.5646 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001381/0.3483, allocations: 120.8 kB / 0.5647 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.439e-05/0.3483, allocations: 18.61 kB / 0.5647 GB, free: 0.707 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.553e-05/0.3484, allocations: 8.859 kB / 0.5647 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.857e-06/0.3484, allocations: 0 / 0.5647 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.106e-05/0.3484, allocations: 60.2 kB / 0.5648 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.3484, allocations: 0 / 0.5648 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002468/0.3487, allocations: 75.39 kB / 0.5648 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.024e-05/0.3487, allocations: 77.11 kB / 0.5649 GB, free: 452 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.131e-05/0.3488, allocations: 94.08 kB / 0.565 GB, free: 348 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/0.3488, allocations: 33.73 kB / 0.565 GB, free: 308 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.94e-05/0.3489, allocations: 84.12 kB / 0.5651 GB, free: 220 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.42e-05/0.3489, allocations: 0 / 0.5651 GB, free: 220 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3e-05/0.3489, allocations: 13.72 kB / 0.5651 GB, free: 200 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002246/0.3491, allocations: 310.8 kB / 0.5654 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.186e-05/0.3492, allocations: 0 / 0.5654 GB, free: 15.88 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.647e-06/0.3492, allocations: 4 kB / 0.5654 GB, free: 15.88 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.587e-05/0.3492, allocations: 64.33 kB / 0.5655 GB, free: 15.8 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.3492, allocations: 4 kB / 0.5655 GB, free: 15.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.035e-05/0.3493, allocations: 75.22 kB / 0.5656 GB, free: 15.71 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.869e-05/0.3493, allocations: 33.64 kB / 0.5656 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.3493, allocations: 4 kB / 0.5656 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.3494, allocations: 0 / 0.5656 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-07/0.3494, allocations: 0 / 0.5656 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.3494, allocations: 0 / 0.5656 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.728e-05/0.3494, allocations: 4 kB / 0.5656 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.3494, allocations: 0 / 0.5656 GB, free: 15.66 MB / 414.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 9.451e-05/0.3495, allocations: 143.5 kB / 0.5657 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.17e-05/0.3495, allocations: 7.938 kB / 0.5658 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.322e-05/0.3495, allocations: 7.156 kB / 0.5658 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-06/0.3495, allocations: 3.938 kB / 0.5658 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.3495, allocations: 0 / 0.5658 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.103e-06/0.3495, allocations: 0 / 0.5658 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001217/0.3496, allocations: 120.8 kB / 0.5659 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.3496, allocations: 0 / 0.5659 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.435e-06/0.3496, allocations: 3.938 kB / 0.5659 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-06/0.3496, allocations: 4 kB / 0.5659 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.07e-06/0.3496, allocations: 0 / 0.5659 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.3497, allocations: 0 / 0.5659 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3497, allocations: 4 kB / 0.5659 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001104/0.3498, allocations: 98.75 kB / 0.566 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.492e-06/0.3498, allocations: 3.938 kB / 0.566 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.155e-05/0.3498, allocations: 0 / 0.566 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.042e-05/0.3498, allocations: 4 kB / 0.566 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.698e-06/0.3498, allocations: 4.031 kB / 0.566 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.544e-06/0.3498, allocations: 0 / 0.566 GB, free: 15.18 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.938e-05/0.3498, allocations: 79.28 kB / 0.5661 GB, free: 15.1 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3498, allocations: 0 / 0.5661 GB, free: 15.1 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002785/0.3501, allocations: 63.86 kB / 0.5661 GB, free: 15.04 MB / 414.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.0007719/0.3509, allocations: 334.2 kB / 0.5665 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001121/0.351, allocations: 59.39 kB / 0.5665 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.351, allocations: 4.062 kB / 0.5665 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.834e-05/0.351, allocations: 59.34 kB / 0.5666 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001185/0.3512, allocations: 0 / 0.5666 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001869/0.3514, allocations: 89 kB / 0.5667 GB, free: 14.51 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.3517, allocations: 0.6729 MB / 0.5673 GB, free: 13.81 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.573e-06/0.3517, allocations: 0 / 0.5673 GB, free: 13.81 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.516e-05/0.3517, allocations: 11.44 kB / 0.5673 GB, free: 13.8 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3517, allocations: 0 / 0.5673 GB, free: 13.8 MB / 414.1 MB Notification: Performance of Templates: time 0.005525/0.3572, allocations: 1.596 MB / 0.5689 GB, free: 12.21 MB / 414.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.393488452071324]