Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001055/0.001055, allocations: 81.95 kB / 19.87 MB, free: 4.621 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.0009905/0.0009905, allocations: 169.7 kB / 23.28 MB, free: 1.223 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.051/1.051, allocations: 177.2 MB / 203.7 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.502/2.502, allocations: 438.1 MB / 0.682 GB, free: 14.2 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|pri1.x.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.465e-06/2.465e-06, allocations: 3.938 kB / 0.8897 GB, free: 9.816 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.151e-05/2.398e-05, allocations: 2.312 kB / 0.8897 GB, free: 9.812 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002149/0.002173, allocations: 1.64 MB / 0.8913 GB, free: 8.168 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001078/0.003251, allocations: 0.744 MB / 0.892 GB, free: 7.418 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.657e-05/0.003308, allocations: 4 kB / 0.892 GB, free: 7.414 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0001106/0.003419, allocations: 11.81 kB / 0.8921 GB, free: 7.402 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 4.739e-05/0.003466, allocations: 27.72 kB / 0.8921 GB, free: 7.375 MB / 0.8542 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.0004235/0.003889, allocations: 107.7 kB / 0.8922 GB, free: 7.27 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0001706/0.00406, allocations: 143.5 kB / 0.8923 GB, free: 7.129 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.004181, allocations: 29.22 kB / 0.8924 GB, free: 7.102 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001126/0.004294, allocations: 75.8 kB / 0.8924 GB, free: 7.027 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 7.769e-05/0.004372, allocations: 55.86 kB / 0.8925 GB, free: 6.973 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 2.209e-05/0.004394, allocations: 12 kB / 0.8925 GB, free: 6.961 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001088/0.004503, allocations: 39.98 kB / 0.8925 GB, free: 6.922 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 5.329e-05/0.004556, allocations: 35.89 kB / 0.8926 GB, free: 6.887 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 4.674e-05/0.004603, allocations: 43.83 kB / 0.8926 GB, free: 6.844 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0001876/0.00479, allocations: 151.5 kB / 0.8927 GB, free: 6.695 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.004792, allocations: 4 kB / 0.8928 GB, free: 6.691 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.072e-06/0.004793, allocations: 0 / 0.8928 GB, free: 6.691 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.077e-06/0.004797, allocations: 0 / 0.8928 GB, free: 6.691 MB / 0.8542 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.0005725/0.00537, allocations: 0.5634 MB / 0.8933 GB, free: 6.074 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.005413, allocations: 12.62 kB / 0.8933 GB, free: 6.062 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.938e-05/0.005462, allocations: 36.77 kB / 0.8934 GB, free: 6.027 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001521/0.005614, allocations: 168.3 kB / 0.8935 GB, free: 5.836 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.005625, allocations: 4.375 kB / 0.8935 GB, free: 5.832 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/0.005644, allocations: 16.36 kB / 0.8935 GB, free: 5.816 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001558/0.0058, allocations: 102.3 kB / 0.8936 GB, free: 5.699 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.005807, allocations: 192 / 0.8936 GB, free: 5.699 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.005822, allocations: 4.375 kB / 0.8936 GB, free: 5.695 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.005829, allocations: 3.938 kB / 0.8936 GB, free: 5.691 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.193e-05/0.005861, allocations: 19.92 kB / 0.8937 GB, free: 5.672 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006571/0.006518, allocations: 447.2 kB / 0.8941 GB, free: 5.203 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 7.033e-05/0.006588, allocations: 66.11 kB / 0.8941 GB, free: 5.113 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.909e-05/0.006617, allocations: 27.44 kB / 0.8942 GB, free: 5.078 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.373e-05/0.006641, allocations: 7.984 kB / 0.8942 GB, free: 5.07 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001219/0.006763, allocations: 108.4 kB / 0.8943 GB, free: 4.941 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=12): time 1.202e-06/0.006764, allocations: 3.938 kB / 0.8943 GB, free: 4.938 MB / 0.8542 GB Notification: Performance of matching and sorting (n=12): time 0.0002017/0.006966, allocations: 117.5 kB / 0.8944 GB, free: 4.816 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.564e-05/0.007001, allocations: 81.05 kB / 0.8945 GB, free: 4.719 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.007104, allocations: 224.1 kB / 0.8947 GB, free: 4.484 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.688e-05/0.007121, allocations: 33.7 kB / 0.8947 GB, free: 4.445 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 6.759e-05/0.007189, allocations: 159 kB / 0.8949 GB, free: 4.281 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.084e-05/0.00722, allocations: 31.83 kB / 0.8949 GB, free: 4.25 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.97e-05/0.007259, allocations: 35.36 kB / 0.8949 GB, free: 4.207 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.007377, allocations: 0.5001 MB / 0.8954 GB, free: 3.695 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.718e-05/0.007395, allocations: 4 kB / 0.8954 GB, free: 3.691 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.403e-05/0.007489, allocations: 205.3 kB / 0.8956 GB, free: 3.422 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.657e-05/0.007575, allocations: 121 kB / 0.8957 GB, free: 3.266 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.007578, allocations: 0 / 0.8957 GB, free: 3.266 MB / 0.8542 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001348/0.007712, allocations: 129.5 kB / 0.8959 GB, free: 3.133 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.007725, allocations: 4 kB / 0.8959 GB, free: 3.129 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.007732, allocations: 4 kB / 0.8959 GB, free: 3.125 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.007744, allocations: 0 / 0.8959 GB, free: 3.125 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.617e-05/0.00781, allocations: 15.98 kB / 0.8959 GB, free: 3.109 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.106e-06/0.007814, allocations: 0 / 0.8959 GB, free: 3.109 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.386e-05/0.007857, allocations: 19.88 kB / 0.8959 GB, free: 3.09 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.168e-06/0.007867, allocations: 8 kB / 0.8959 GB, free: 3.082 MB / 0.8542 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 8.707e-05/0.007954, allocations: 172.5 kB / 0.8961 GB, free: 2.902 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.968e-05/0.007973, allocations: 19.89 kB / 0.8961 GB, free: 2.883 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.272e-05/0.008016, allocations: 25.48 kB / 0.8961 GB, free: 2.852 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.008018, allocations: 0 / 0.8961 GB, free: 2.852 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-06/0.008019, allocations: 0 / 0.8961 GB, free: 2.852 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.008025, allocations: 4 kB / 0.8961 GB, free: 2.848 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003332/0.008358, allocations: 497 kB / 0.8966 GB, free: 2.328 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.008362, allocations: 4 kB / 0.8966 GB, free: 2.324 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.409e-05/0.008396, allocations: 11.98 kB / 0.8966 GB, free: 2.312 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.008399, allocations: 0 / 0.8966 GB, free: 2.312 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.122e-06/0.008405, allocations: 3.938 kB / 0.8966 GB, free: 2.309 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.008408, allocations: 4 kB / 0.8966 GB, free: 2.305 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.008409, allocations: 7.938 kB / 0.8966 GB, free: 2.297 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001795/0.008589, allocations: 378.9 kB / 0.897 GB, free: 1.906 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.33e-05/0.008602, allocations: 11.91 kB / 0.897 GB, free: 1.895 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.275e-05/0.008615, allocations: 0 / 0.897 GB, free: 1.895 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.315e-05/0.008698, allocations: 15.98 kB / 0.897 GB, free: 1.879 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.43e-05/0.008732, allocations: 7.984 kB / 0.897 GB, free: 1.871 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-05/0.008758, allocations: 11.98 kB / 0.897 GB, free: 1.859 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 5.434e-05/0.008813, allocations: 155.4 kB / 0.8972 GB, free: 1.707 MB / 0.8542 GB Notification: Performance of sort global known variables: time 4e-08/0.008813, allocations: 0 / 0.8972 GB, free: 1.707 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002206/0.009033, allocations: 35.94 kB / 0.8972 GB, free: 1.672 MB / 0.8542 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.0003582/0.009391, allocations: 207.1 kB / 0.8974 GB, free: 1.5 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001134/0.009505, allocations: 63.45 kB / 0.8975 GB, free: 1.434 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.009507, allocations: 0 / 0.8975 GB, free: 1.434 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.201e-05/0.009549, allocations: 39.61 kB / 0.8975 GB, free: 1.391 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002574/0.009806, allocations: 28.09 kB / 0.8975 GB, free: 1.363 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003464/0.01015, allocations: 254.6 kB / 0.8978 GB, free: 1.09 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.273e-05/0.01021, allocations: 79.28 kB / 0.8979 GB, free: 0.9922 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.542e-05/0.01025, allocations: 20.56 kB / 0.8979 GB, free: 0.9688 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.104e-05/0.01032, allocations: 94.17 kB / 0.898 GB, free: 0.875 MB / 0.8542 GB Notification: Performance of SimCode: time 8.01e-07/0.01032, allocations: 0 / 0.898 GB, free: 0.875 MB / 0.8542 GB Notification: Performance of Templates: time 0.004259/0.01458, allocations: 1.936 MB / 0.8999 GB, free: 14.97 MB / 0.8698 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_Printer.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.58401489071548]