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.0009245/0.0009245, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 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.001003/0.001003, allocations: 169 kB / 23.02 MB, free: 1.547 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.022/1.022, allocations: 177.1 MB / 203.4 MB, free: 5.637 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.114/2.114, allocations: 429.5 MB / 0.6733 GB, free: 4.035 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 2.255e-06/2.255e-06, allocations: 0 / 0.8781 GB, free: 6.328 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.056e-05/4.281e-05, allocations: 8.375 kB / 0.8782 GB, free: 6.32 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003782/0.003824, allocations: 1.641 MB / 0.8798 GB, free: 4.688 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001573/0.005397, allocations: 0.7501 MB / 0.8805 GB, free: 3.938 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.955e-05/0.005477, allocations: 7.938 kB / 0.8805 GB, free: 3.93 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001332/0.00561, allocations: 11.86 kB / 0.8805 GB, free: 3.918 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 7.359e-05/0.005683, allocations: 19.73 kB / 0.8805 GB, free: 3.898 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.0006071/0.00629, allocations: 112.7 kB / 0.8806 GB, free: 3.789 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002421/0.006533, allocations: 143.5 kB / 0.8808 GB, free: 3.648 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001469/0.006679, allocations: 22.34 kB / 0.8808 GB, free: 3.629 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001755/0.006855, allocations: 79.78 kB / 0.8809 GB, free: 3.551 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000106/0.006961, allocations: 55.81 kB / 0.8809 GB, free: 3.496 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.108e-05/0.006992, allocations: 12.66 kB / 0.8809 GB, free: 3.484 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001349/0.007127, allocations: 48.52 kB / 0.881 GB, free: 3.438 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 6.091e-05/0.007188, allocations: 27.91 kB / 0.881 GB, free: 3.41 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.879e-05/0.007257, allocations: 40.81 kB / 0.881 GB, free: 3.371 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.000305/0.007562, allocations: 155.4 kB / 0.8812 GB, free: 3.219 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.007566, allocations: 1.188 kB / 0.8812 GB, free: 3.219 MB / 0.8386 GB Notification: Performance of FrontEnd: time 9.72e-07/0.007567, allocations: 0 / 0.8812 GB, free: 3.219 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.752e-06/0.007574, allocations: 0 / 0.8812 GB, free: 3.219 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.0008336/0.008407, allocations: 0.5733 MB / 0.8818 GB, free: 2.594 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.008453, allocations: 13.16 kB / 0.8818 GB, free: 2.582 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.671e-05/0.00854, allocations: 24.84 kB / 0.8818 GB, free: 2.559 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002405/0.00878, allocations: 161.4 kB / 0.8819 GB, free: 2.375 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/0.008802, allocations: 11.44 kB / 0.882 GB, free: 2.367 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.974e-05/0.008831, allocations: 12.38 kB / 0.882 GB, free: 2.355 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002659/0.009097, allocations: 110.2 kB / 0.8821 GB, free: 2.23 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.009111, allocations: 4.172 kB / 0.8821 GB, free: 2.227 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.844e-05/0.00913, allocations: 8.359 kB / 0.8821 GB, free: 2.219 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.009141, allocations: 7.938 kB / 0.8821 GB, free: 2.211 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.071e-05/0.009211, allocations: 12 kB / 0.8821 GB, free: 2.199 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006464/0.009858, allocations: 475.9 kB / 0.8826 GB, free: 1.695 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001185/0.009976, allocations: 70.06 kB / 0.8826 GB, free: 1.602 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.493e-05/0.01003, allocations: 27.36 kB / 0.8826 GB, free: 1.566 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.886e-05/0.01006, allocations: 8.656 kB / 0.8827 GB, free: 1.559 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000206/0.01027, allocations: 117.9 kB / 0.8828 GB, free: 1.422 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=12): time 2.835e-06/0.01027, allocations: 0 / 0.8828 GB, free: 1.422 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12): time 0.0003408/0.01061, allocations: 113.5 kB / 0.8829 GB, free: 1.305 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.975e-05/0.01066, allocations: 82.12 kB / 0.883 GB, free: 1.207 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006062/0.01127, allocations: 218.4 kB / 0.8832 GB, free: 0.9766 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.857e-05/0.01129, allocations: 37.64 kB / 0.8832 GB, free: 0.9336 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.482e-05/0.01138, allocations: 167.5 kB / 0.8834 GB, free: 0.7617 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.994e-05/0.01142, allocations: 25.44 kB / 0.8834 GB, free: 0.7383 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.33e-05/0.01148, allocations: 39.36 kB / 0.8834 GB, free: 0.6914 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001536/0.01164, allocations: 0.4962 MB / 0.8839 GB, free: 188 kB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.714e-05/0.01168, allocations: 16.09 kB / 0.8839 GB, free: 172 kB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001655/0.01185, allocations: 212.1 kB / 0.8841 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001498/0.012, allocations: 125 kB / 0.8842 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.012, allocations: 0 / 0.8842 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.00022/0.01222, allocations: 129.4 kB / 0.8844 GB, free: 15.6 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.01224, allocations: 8 kB / 0.8844 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.01225, allocations: 0 / 0.8844 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.241e-05/0.01227, allocations: 4 kB / 0.8844 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.01237, allocations: 15.92 kB / 0.8844 GB, free: 15.57 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.01238, allocations: 4 kB / 0.8844 GB, free: 15.57 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.239e-05/0.01247, allocations: 8.281 kB / 0.8844 GB, free: 15.56 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.753e-05/0.01248, allocations: 15.98 kB / 0.8844 GB, free: 15.55 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 0.0001147/0.0126, allocations: 176.4 kB / 0.8846 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.901e-05/0.01264, allocations: 19.91 kB / 0.8846 GB, free: 15.34 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.721e-05/0.0127, allocations: 17.45 kB / 0.8846 GB, free: 15.32 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.0127, allocations: 4 kB / 0.8846 GB, free: 15.32 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.01271, allocations: 0 / 0.8846 GB, free: 15.32 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.01271, allocations: 0 / 0.8846 GB, free: 15.32 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005351/0.01325, allocations: 0.516 MB / 0.8851 GB, free: 14.76 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.01325, allocations: 288 / 0.8851 GB, free: 14.76 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.573e-05/0.01331, allocations: 11.98 kB / 0.8851 GB, free: 14.75 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.01332, allocations: 4 kB / 0.8851 GB, free: 14.75 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.01333, allocations: 4 kB / 0.8852 GB, free: 14.74 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.01333, allocations: 0 / 0.8852 GB, free: 14.74 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.01334, allocations: 0 / 0.8852 GB, free: 14.74 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003053/0.01364, allocations: 390.8 kB / 0.8855 GB, free: 14.34 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.123e-05/0.01366, allocations: 15.91 kB / 0.8855 GB, free: 14.32 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.942e-05/0.01368, allocations: 0 / 0.8855 GB, free: 14.32 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001596/0.01384, allocations: 11.98 kB / 0.8856 GB, free: 14.31 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.676e-05/0.0139, allocations: 11.98 kB / 0.8856 GB, free: 14.3 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.018e-05/0.01394, allocations: 19.92 kB / 0.8856 GB, free: 14.28 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 9.507e-05/0.01403, allocations: 156.2 kB / 0.8857 GB, free: 14.13 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.11e-07/0.01403, allocations: 0 / 0.8857 GB, free: 14.13 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004149/0.01445, allocations: 35.94 kB / 0.8858 GB, free: 14.09 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.0005501/0.015, allocations: 210.2 kB / 0.886 GB, free: 13.91 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001956/0.01519, allocations: 59.59 kB / 0.886 GB, free: 13.85 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.0152, allocations: 4 kB / 0.886 GB, free: 13.85 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 7.358e-05/0.01527, allocations: 32.17 kB / 0.8861 GB, free: 13.81 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000451/0.01572, allocations: 31.97 kB / 0.8861 GB, free: 13.78 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005651/0.01629, allocations: 254.3 kB / 0.8863 GB, free: 13.5 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.312e-05/0.01635, allocations: 75.27 kB / 0.8864 GB, free: 13.41 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 7.026e-05/0.01642, allocations: 20.47 kB / 0.8864 GB, free: 13.39 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.13e-05/0.01646, allocations: 16.5 kB / 0.8864 GB, free: 13.37 MB / 0.8542 GB Notification: Performance of SimCode: time 8.12e-07/0.01646, allocations: 0 / 0.8864 GB, free: 13.37 MB / 0.8542 GB Notification: Performance of Templates: time 0.005355/0.02182, allocations: 1.796 MB / 0.8882 GB, free: 11.62 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.401310894172639]