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.0009832/0.0009832, allocations: 73.97 kB / 20.66 MB, free: 3.844 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.001081/0.001081, allocations: 169.4 kB / 24.06 MB, free: 456 kB / 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 0.9355/0.9355, allocations: 177.1 MB / 204.5 MB, free: 5.5 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.091/2.091, allocations: 429.5 MB / 0.6743 GB, free: 3.91 MB / 0.6355 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 1.103e-06/1.103e-06, allocations: 1.094 kB / 0.8794 GB, free: 6.059 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.267e-05/1.378e-05, allocations: 3.438 kB / 0.8794 GB, free: 6.055 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001806/0.00182, allocations: 1.641 MB / 0.881 GB, free: 4.43 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001003/0.002823, allocations: 0.7464 MB / 0.8817 GB, free: 3.68 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.301e-05/0.002876, allocations: 1.094 kB / 0.8817 GB, free: 3.68 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 9.984e-05/0.002976, allocations: 19.75 kB / 0.8817 GB, free: 3.66 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 4.799e-05/0.003024, allocations: 31.12 kB / 0.8817 GB, free: 3.633 MB / 0.8386 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.000377/0.003401, allocations: 103.7 kB / 0.8818 GB, free: 3.531 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001497/0.003551, allocations: 139.5 kB / 0.882 GB, free: 3.395 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.003659, allocations: 29.22 kB / 0.882 GB, free: 3.367 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 9.5e-05/0.003754, allocations: 79.8 kB / 0.8821 GB, free: 3.289 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 7.136e-05/0.003825, allocations: 51.86 kB / 0.8821 GB, free: 3.238 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.946e-05/0.003845, allocations: 8 kB / 0.8821 GB, free: 3.23 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 9.268e-05/0.003937, allocations: 51.91 kB / 0.8822 GB, free: 3.18 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 4.449e-05/0.003982, allocations: 32.5 kB / 0.8822 GB, free: 3.148 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.112e-05/0.004023, allocations: 43.83 kB / 0.8823 GB, free: 3.105 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.000173/0.004196, allocations: 156.9 kB / 0.8824 GB, free: 2.953 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.262e-06/0.004197, allocations: 0 / 0.8824 GB, free: 2.953 MB / 0.8386 GB Notification: Performance of FrontEnd: time 6.11e-07/0.004198, allocations: 0 / 0.8824 GB, free: 2.953 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.116e-06/0.004201, allocations: 0 / 0.8824 GB, free: 2.953 MB / 0.8386 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.0005191/0.00472, allocations: 0.5726 MB / 0.883 GB, free: 2.328 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/0.004751, allocations: 8.031 kB / 0.883 GB, free: 2.32 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.394e-05/0.004795, allocations: 28.83 kB / 0.883 GB, free: 2.293 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000137/0.004932, allocations: 157.4 kB / 0.8832 GB, free: 2.113 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.004943, allocations: 4.375 kB / 0.8832 GB, free: 2.109 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.726e-05/0.00496, allocations: 16.36 kB / 0.8832 GB, free: 2.094 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001408/0.005101, allocations: 106.2 kB / 0.8833 GB, free: 1.973 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.005108, allocations: 192 / 0.8833 GB, free: 1.973 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.005118, allocations: 4.375 kB / 0.8833 GB, free: 1.969 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.005125, allocations: 11.94 kB / 0.8833 GB, free: 1.957 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.802e-05/0.005153, allocations: 11.98 kB / 0.8833 GB, free: 1.945 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003438/0.005497, allocations: 447.1 kB / 0.8837 GB, free: 1.477 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.822e-05/0.005565, allocations: 70.09 kB / 0.8838 GB, free: 1.383 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.938e-05/0.005595, allocations: 31.42 kB / 0.8838 GB, free: 1.344 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.46e-05/0.005609, allocations: 4 kB / 0.8838 GB, free: 1.34 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001261/0.005735, allocations: 120.3 kB / 0.8839 GB, free: 1.199 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=12): time 9.92e-07/0.005736, allocations: 4 kB / 0.8839 GB, free: 1.195 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12): time 0.0001804/0.005917, allocations: 109.5 kB / 0.8841 GB, free: 1.082 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.671e-05/0.005953, allocations: 77.11 kB / 0.8841 GB, free: 0.9883 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.662e-05/0.00605, allocations: 226.3 kB / 0.8843 GB, free: 0.75 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.654e-05/0.006067, allocations: 29.7 kB / 0.8844 GB, free: 0.7148 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.878e-05/0.006125, allocations: 167 kB / 0.8845 GB, free: 0.543 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.715e-05/0.006152, allocations: 27.81 kB / 0.8846 GB, free: 0.5156 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.096e-05/0.006193, allocations: 39.36 kB / 0.8846 GB, free: 480 kB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.006321, allocations: 0.4962 MB / 0.8851 GB, free: 15.96 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.763e-05/0.006338, allocations: 11.94 kB / 0.8851 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.387e-05/0.006432, allocations: 201.3 kB / 0.8853 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.382e-05/0.006516, allocations: 125 kB / 0.8854 GB, free: 15.52 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.006518, allocations: 0 / 0.8854 GB, free: 15.52 MB / 0.8542 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001169/0.006635, allocations: 117.3 kB / 0.8855 GB, free: 15.4 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.006651, allocations: 7.984 kB / 0.8855 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.006656, allocations: 4 kB / 0.8855 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.013e-05/0.006666, allocations: 4 kB / 0.8855 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.762e-05/0.006724, allocations: 15.94 kB / 0.8855 GB, free: 15.37 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.00673, allocations: 7.984 kB / 0.8856 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.129e-05/0.006772, allocations: 4 kB / 0.8856 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.335e-06/0.00678, allocations: 8.281 kB / 0.8856 GB, free: 15.35 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.063e-05/0.006861, allocations: 176.5 kB / 0.8857 GB, free: 15.17 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.384e-05/0.006885, allocations: 27.83 kB / 0.8858 GB, free: 15.14 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.251e-05/0.006917, allocations: 17.47 kB / 0.8858 GB, free: 15.12 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.006919, allocations: 0 / 0.8858 GB, free: 15.12 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.006922, allocations: 4 kB / 0.8858 GB, free: 15.12 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.006926, allocations: 0 / 0.8858 GB, free: 15.12 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003083/0.007234, allocations: 496.9 kB / 0.8863 GB, free: 14.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.007237, allocations: 4 kB / 0.8863 GB, free: 14.59 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.04e-05/0.007267, allocations: 11.94 kB / 0.8863 GB, free: 14.58 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.007269, allocations: 4 kB / 0.8863 GB, free: 14.58 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.793e-06/0.007276, allocations: 3.984 kB / 0.8863 GB, free: 14.57 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.007277, allocations: 4 kB / 0.8863 GB, free: 14.57 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.007278, allocations: 0 / 0.8863 GB, free: 14.57 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001665/0.007445, allocations: 371.3 kB / 0.8866 GB, free: 14.19 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.201e-05/0.007457, allocations: 15.91 kB / 0.8866 GB, free: 14.17 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.256e-05/0.007469, allocations: 4.281 kB / 0.8867 GB, free: 14.17 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.34e-05/0.007553, allocations: 11.98 kB / 0.8867 GB, free: 14.16 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.31e-05/0.007586, allocations: 15.97 kB / 0.8867 GB, free: 14.14 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.672e-05/0.007612, allocations: 12 kB / 0.8867 GB, free: 14.13 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 5.09e-05/0.007663, allocations: 152.1 kB / 0.8868 GB, free: 13.98 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.007663, allocations: 0 / 0.8868 GB, free: 13.98 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002298/0.007893, allocations: 43.92 kB / 0.8869 GB, free: 13.94 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.0002951/0.008188, allocations: 189.3 kB / 0.8871 GB, free: 13.78 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001158/0.008304, allocations: 67.45 kB / 0.8871 GB, free: 13.71 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.542e-06/0.008306, allocations: 0 / 0.8871 GB, free: 13.71 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.222e-05/0.008348, allocations: 43.58 kB / 0.8872 GB, free: 13.66 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002486/0.008596, allocations: 37.27 kB / 0.8872 GB, free: 13.63 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003114/0.008908, allocations: 250.3 kB / 0.8874 GB, free: 13.35 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.888e-05/0.008947, allocations: 67.34 kB / 0.8875 GB, free: 13.27 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.901e-05/0.008986, allocations: 20.47 kB / 0.8875 GB, free: 13.25 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.598e-05/0.009052, allocations: 94.19 kB / 0.8876 GB, free: 13.15 MB / 0.8542 GB Notification: Performance of SimCode: time 4.91e-07/0.009052, allocations: 0 / 0.8876 GB, free: 13.15 MB / 0.8542 GB Notification: Performance of Templates: time 0.003582/0.01263, allocations: 1.988 MB / 0.8896 GB, free: 11.2 MB / 0.8542 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.178100835066289]