Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.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.001836/0.001836, allocations: 83.69 kB / 20.23 MB, free: 4.188 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.00197/0.00197, allocations: 165.3 kB / 23.55 MB, free: 0.8711 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 1.566/1.566, allocations: 177.1 MB / 203.9 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.898/2.898, allocations: 359 MB / 0.6048 GB, free: 10.93 MB / 0.573 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.664e-06/1.664e-06, allocations: 0 / 0.7863 GB, free: 11.72 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.802e-05/2.969e-05, allocations: 5.125 kB / 0.7864 GB, free: 11.71 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003019/0.003049, allocations: 1.612 MB / 0.7879 GB, free: 10.11 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001608/0.004657, allocations: 0.7378 MB / 0.7886 GB, free: 9.363 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.063e-05/0.004707, allocations: 1.031 kB / 0.7886 GB, free: 9.363 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.0001116/0.004819, allocations: 11.81 kB / 0.7887 GB, free: 9.352 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 6.045e-05/0.004879, allocations: 24.59 kB / 0.7887 GB, free: 9.328 MB / 0.698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/Utilities/IO/Files/BaseClasses/printRealArray.mo:2:1-45:19:writable] Warning: Pure function 'Buildings.Utilities.IO.Files.BaseClasses.printRealArray' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0004877/0.005367, allocations: 116.1 kB / 0.7888 GB, free: 9.215 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0002208/0.005588, allocations: 147.5 kB / 0.7889 GB, free: 9.07 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001167/0.005705, allocations: 22.06 kB / 0.789 GB, free: 9.051 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001416/0.005846, allocations: 75.86 kB / 0.789 GB, free: 8.977 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001024/0.005949, allocations: 57.27 kB / 0.7891 GB, free: 8.922 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.853e-05/0.005977, allocations: 8 kB / 0.7891 GB, free: 8.914 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001294/0.006107, allocations: 51.91 kB / 0.7891 GB, free: 8.863 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 6.352e-05/0.00617, allocations: 31 kB / 0.7892 GB, free: 8.836 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 8.187e-05/0.006252, allocations: 47.84 kB / 0.7892 GB, free: 8.789 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0003058/0.006558, allocations: 191.4 kB / 0.7894 GB, free: 8.602 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.006561, allocations: 0 / 0.7894 GB, free: 8.602 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.112e-06/0.006562, allocations: 0 / 0.7894 GB, free: 8.602 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5e-06/0.006567, allocations: 0 / 0.7894 GB, free: 8.602 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009643/0.007531, allocations: 0.568 MB / 0.7899 GB, free: 7.98 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.007569, allocations: 12.62 kB / 0.79 GB, free: 7.969 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.56e-05/0.007644, allocations: 20.83 kB / 0.79 GB, free: 7.949 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002458/0.00789, allocations: 165.6 kB / 0.7901 GB, free: 7.762 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.856e-05/0.007909, allocations: 8.359 kB / 0.7901 GB, free: 7.754 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.677e-05/0.007935, allocations: 12.38 kB / 0.7902 GB, free: 7.742 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000295/0.00823, allocations: 114.2 kB / 0.7903 GB, free: 7.617 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.008241, allocations: 5.5 kB / 0.7903 GB, free: 7.613 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.008254, allocations: 384 / 0.7903 GB, free: 7.613 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.008261, allocations: 3.938 kB / 0.7903 GB, free: 7.609 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001829/0.008444, allocations: 57.64 kB / 0.7903 GB, free: 7.555 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008299/0.009274, allocations: 486.4 kB / 0.7908 GB, free: 7.039 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002108/0.009485, allocations: 99.56 kB / 0.7909 GB, free: 6.918 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001097/0.009594, allocations: 39.48 kB / 0.7909 GB, free: 6.871 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.932e-05/0.009624, allocations: 8 kB / 0.7909 GB, free: 6.863 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000285/0.009909, allocations: 138 kB / 0.7911 GB, free: 6.707 MB / 0.698 GB Notification: Performance of pre-optimization done (n=12): time 1.082e-06/0.00991, allocations: 0 / 0.7911 GB, free: 6.707 MB / 0.698 GB Notification: Performance of matching and sorting (n=12): time 0.0005383/0.01045, allocations: 175.6 kB / 0.7912 GB, free: 6.531 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.527e-05/0.01051, allocations: 81.11 kB / 0.7913 GB, free: 6.434 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002223/0.01074, allocations: 239.6 kB / 0.7915 GB, free: 6.184 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.637e-05/0.01077, allocations: 33.7 kB / 0.7916 GB, free: 6.145 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.01089, allocations: 159.1 kB / 0.7917 GB, free: 5.98 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 5.709e-05/0.01095, allocations: 32.27 kB / 0.7918 GB, free: 5.949 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.001e-05/0.01103, allocations: 47.36 kB / 0.7918 GB, free: 5.895 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0002741/0.0113, allocations: 0.5047 MB / 0.7923 GB, free: 5.379 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/0.0114, allocations: 28.48 kB / 0.7923 GB, free: 5.352 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002601/0.01166, allocations: 226.9 kB / 0.7925 GB, free: 5.062 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002819/0.01195, allocations: 159.6 kB / 0.7927 GB, free: 4.871 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.01195, allocations: 0 / 0.7927 GB, free: 4.871 MB / 0.698 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003459/0.01229, allocations: 155.8 kB / 0.7928 GB, free: 4.715 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.01231, allocations: 4.844 kB / 0.7928 GB, free: 4.711 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.01232, allocations: 4 kB / 0.7928 GB, free: 4.707 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.01234, allocations: 5.969 kB / 0.7929 GB, free: 4.703 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.01244, allocations: 19.92 kB / 0.7929 GB, free: 4.684 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.01244, allocations: 4 kB / 0.7929 GB, free: 4.68 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.051e-05/0.01252, allocations: 7.984 kB / 0.7929 GB, free: 4.672 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.746e-05/0.01254, allocations: 8 kB / 0.7929 GB, free: 4.664 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 13 (pri2.firstTrigger,$PRE.pri2.firstTrigger,pri1.firstTrigger,$PRE.pri1.firstTrigger,$whenCondition4,pri1.sampleTrigger,$whenCondition2,pri2.sampleTrigger,$whenCondition3,pri3.firstTrigger,$PRE.pri3.firstTrigger,pri3.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * 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.0001507/0.01269, allocations: 177.1 kB / 0.7931 GB, free: 4.48 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.067e-05/0.01273, allocations: 26.34 kB / 0.7931 GB, free: 4.457 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.177e-05/0.01279, allocations: 17.45 kB / 0.7931 GB, free: 4.441 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.01279, allocations: 0 / 0.7931 GB, free: 4.441 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.01279, allocations: 0 / 0.7931 GB, free: 4.441 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.0128, allocations: 4 kB / 0.7931 GB, free: 4.438 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007708/0.01357, allocations: 0.5646 MB / 0.7937 GB, free: 3.832 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.01357, allocations: 0 / 0.7937 GB, free: 3.832 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.007e-05/0.01363, allocations: 8 kB / 0.7937 GB, free: 3.824 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.01363, allocations: 0 / 0.7937 GB, free: 3.824 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.628e-05/0.01365, allocations: 3.984 kB / 0.7937 GB, free: 3.82 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.01365, allocations: 4.531 kB / 0.7937 GB, free: 3.816 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.01365, allocations: 0.5625 kB / 0.7937 GB, free: 3.816 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004944/0.01415, allocations: 412.9 kB / 0.7941 GB, free: 3.395 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.784e-05/0.01418, allocations: 15.89 kB / 0.7941 GB, free: 3.379 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.355e-05/0.0142, allocations: 4 kB / 0.7941 GB, free: 3.375 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.01437, allocations: 16.61 kB / 0.7941 GB, free: 3.359 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.258e-05/0.01442, allocations: 11.97 kB / 0.7941 GB, free: 3.348 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.714e-05/0.01445, allocations: 8.656 kB / 0.7941 GB, free: 3.34 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001346/0.01459, allocations: 172.2 kB / 0.7943 GB, free: 3.172 MB / 0.698 GB Notification: Performance of sort global known variables: time 8e-08/0.01459, allocations: 5.094 kB / 0.7943 GB, free: 3.168 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003564/0.01495, allocations: 39.92 kB / 0.7943 GB, free: 3.129 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 (pri3.sampleTrigger,$whenCondition1,pri3.firstTrigger,pri2.sampleTrigger,pri1.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,pri1.firstTrigger,pri2.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0006407/0.01559, allocations: 200.8 kB / 0.7945 GB, free: 2.965 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0003341/0.01592, allocations: 100.8 kB / 0.7946 GB, free: 2.863 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.01592, allocations: 0 / 0.7946 GB, free: 2.863 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001469/0.01607, allocations: 60.62 kB / 0.7947 GB, free: 2.801 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003688/0.01644, allocations: 25.03 kB / 0.7947 GB, free: 2.777 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006017/0.01704, allocations: 258.4 kB / 0.7949 GB, free: 2.492 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001265/0.01717, allocations: 104.5 kB / 0.795 GB, free: 2.367 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 7.342e-05/0.01724, allocations: 25.25 kB / 0.7951 GB, free: 2.344 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.554e-05/0.01729, allocations: 24.44 kB / 0.7951 GB, free: 2.32 MB / 0.698 GB Notification: Performance of SimCode: time 5.71e-07/0.01729, allocations: 4 kB / 0.7951 GB, free: 2.316 MB / 0.698 GB Notification: Performance of Templates: time 0.006219/0.02351, allocations: 1.78 MB / 0.7968 GB, free: 0.582 MB / 0.698 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.010772773995996]