Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001089/0.001089, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 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.0008672/0.0008672, allocations: 165.9 kB / 22.45 MB, free: 2.113 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 0.9198/0.9198, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.802/1.802, allocations: 377.9 MB / 0.6221 GB, free: 8.684 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_12_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_12_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 0.9809 GB, free: 2.641 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.727e-05/1.881e-05, allocations: 2.281 kB / 0.9809 GB, free: 2.637 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002027/0.002046, allocations: 1.576 MB / 0.9825 GB, free: 1.051 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.00099/0.003036, allocations: 0.7362 MB / 0.9832 GB, free: 316 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.908e-05/0.003085, allocations: 0 / 0.9832 GB, free: 316 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 9.655e-05/0.003181, allocations: 15.8 kB / 0.9832 GB, free: 300 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 4.289e-05/0.003224, allocations: 15.81 kB / 0.9832 GB, free: 284 kB / 0.9323 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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.0004384/0.003663, allocations: 111.7 kB / 0.9833 GB, free: 172 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001636/0.003826, allocations: 151.4 kB / 0.9835 GB, free: 20 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001371/0.003964, allocations: 25.3 kB / 0.9835 GB, free: 15.99 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001084/0.004072, allocations: 75.8 kB / 0.9836 GB, free: 15.92 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 7.179e-05/0.004144, allocations: 47.88 kB / 0.9836 GB, free: 15.88 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.283e-05/0.004167, allocations: 8 kB / 0.9836 GB, free: 15.87 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001058/0.004272, allocations: 51.95 kB / 0.9837 GB, free: 15.82 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 5.109e-05/0.004323, allocations: 35.83 kB / 0.9837 GB, free: 15.78 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 4.75e-05/0.004371, allocations: 35.92 kB / 0.9838 GB, free: 15.75 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.00022/0.004591, allocations: 199.3 kB / 0.9839 GB, free: 15.55 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.004594, allocations: 0 / 0.9839 GB, free: 15.55 MB / 0.948 GB Notification: Performance of FrontEnd: time 9.72e-07/0.004595, allocations: 0 / 0.9839 GB, free: 15.55 MB / 0.948 GB Notification: Performance of Transformations before backend: time 3.797e-06/0.004599, allocations: 4 kB / 0.9839 GB, free: 15.55 MB / 0.948 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.0005938/0.005192, allocations: 486.6 kB / 0.9844 GB, free: 15.02 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.00523, allocations: 8.031 kB / 0.9844 GB, free: 15.02 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.049e-05/0.005261, allocations: 42.73 kB / 0.9845 GB, free: 14.96 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.974e-05/0.0053, allocations: 16.84 kB / 0.9845 GB, free: 14.95 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001585/0.005459, allocations: 161.5 kB / 0.9846 GB, free: 14.77 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.00547, allocations: 12.36 kB / 0.9846 GB, free: 14.75 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.541e-05/0.005485, allocations: 16.36 kB / 0.9847 GB, free: 14.74 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002135/0.005699, allocations: 127.8 kB / 0.9848 GB, free: 14.6 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.005706, allocations: 192 / 0.9848 GB, free: 14.6 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.005719, allocations: 4.125 kB / 0.9848 GB, free: 14.6 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.005725, allocations: 4 kB / 0.9848 GB, free: 14.59 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001291/0.005854, allocations: 67.88 kB / 0.9848 GB, free: 14.53 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000453/0.006307, allocations: 423.8 kB / 0.9853 GB, free: 14.07 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001205/0.006428, allocations: 77.12 kB / 0.9853 GB, free: 13.97 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.071e-05/0.006498, allocations: 41.81 kB / 0.9854 GB, free: 13.93 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.26e-05/0.006521, allocations: 7.984 kB / 0.9854 GB, free: 13.92 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002129/0.006734, allocations: 145 kB / 0.9855 GB, free: 13.76 MB / 0.948 GB Notification: Performance of pre-optimization done (n=12): time 9.72e-07/0.006735, allocations: 0 / 0.9855 GB, free: 13.76 MB / 0.948 GB Notification: Performance of matching and sorting (n=12): time 0.0003592/0.007094, allocations: 189.4 kB / 0.9857 GB, free: 13.57 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.18e-05/0.007136, allocations: 81.11 kB / 0.9858 GB, free: 13.47 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.007237, allocations: 167.2 kB / 0.9859 GB, free: 13.3 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.007256, allocations: 29.7 kB / 0.986 GB, free: 13.26 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.377e-05/0.00731, allocations: 120.3 kB / 0.9861 GB, free: 13.14 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.96e-05/0.007339, allocations: 31.78 kB / 0.9861 GB, free: 13.11 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.309e-05/0.007382, allocations: 33.7 kB / 0.9861 GB, free: 13.07 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.814e-05/0.00747, allocations: 330.8 kB / 0.9865 GB, free: 12.73 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.056e-05/0.007541, allocations: 35.97 kB / 0.9865 GB, free: 12.7 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001342/0.007675, allocations: 198.3 kB / 0.9867 GB, free: 12.45 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001663/0.007841, allocations: 147.5 kB / 0.9868 GB, free: 12.28 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.007844, allocations: 0 / 0.9868 GB, free: 12.28 MB / 0.948 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002129/0.008057, allocations: 169.3 kB / 0.987 GB, free: 12.11 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.00807, allocations: 8 kB / 0.987 GB, free: 12.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.008075, allocations: 0 / 0.987 GB, free: 12.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.008088, allocations: 4 kB / 0.987 GB, free: 12.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.917e-05/0.008157, allocations: 20.25 kB / 0.987 GB, free: 12.08 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/0.008163, allocations: 12.05 kB / 0.987 GB, free: 12.07 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.511e-05/0.008219, allocations: 23.86 kB / 0.987 GB, free: 12.04 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.776e-06/0.008227, allocations: 4 kB / 0.987 GB, free: 12.04 MB / 0.948 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.464e-05/0.008312, allocations: 134.3 kB / 0.9872 GB, free: 11.9 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.739e-05/0.008329, allocations: 15.91 kB / 0.9872 GB, free: 11.88 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.644e-05/0.008366, allocations: 21.45 kB / 0.9872 GB, free: 11.86 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.008368, allocations: 0 / 0.9872 GB, free: 11.86 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.008374, allocations: 4 kB / 0.9872 GB, free: 11.86 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.008378, allocations: 0 / 0.9872 GB, free: 11.86 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004302/0.008808, allocations: 0.4972 MB / 0.9877 GB, free: 11.31 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.008809, allocations: 0 / 0.9877 GB, free: 11.31 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.875e-05/0.008848, allocations: 23.92 kB / 0.9877 GB, free: 11.29 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.008849, allocations: 0 / 0.9877 GB, free: 11.29 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.008858, allocations: 4 kB / 0.9877 GB, free: 11.29 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.008863, allocations: 11.92 kB / 0.9877 GB, free: 11.27 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.008864, allocations: 0 / 0.9877 GB, free: 11.27 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002412/0.009105, allocations: 322.6 kB / 0.988 GB, free: 10.94 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.146e-05/0.009116, allocations: 11.91 kB / 0.9881 GB, free: 10.93 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.481e-05/0.009131, allocations: 7.938 kB / 0.9881 GB, free: 10.92 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.387e-05/0.009225, allocations: 19.91 kB / 0.9881 GB, free: 10.9 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.679e-05/0.009262, allocations: 11.98 kB / 0.9881 GB, free: 10.89 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.443e-05/0.009286, allocations: 11.94 kB / 0.9881 GB, free: 10.88 MB / 0.948 GB Notification: Performance of sorting global known variables: time 5.861e-05/0.009345, allocations: 119.2 kB / 0.9882 GB, free: 10.76 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.009345, allocations: 0 / 0.9882 GB, free: 10.76 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002395/0.009584, allocations: 43.94 kB / 0.9883 GB, free: 10.72 MB / 0.948 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.0006437/0.01023, allocations: 0.9291 MB / 0.9892 GB, free: 9.793 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002131/0.01044, allocations: 107.7 kB / 0.9893 GB, free: 9.688 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.01044, allocations: 0.5625 kB / 0.9893 GB, free: 9.688 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 8.714e-05/0.01053, allocations: 59.89 kB / 0.9893 GB, free: 9.629 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.01079, allocations: 19.88 kB / 0.9893 GB, free: 9.609 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.01222, allocations: 1.912 MB / 0.9912 GB, free: 7.551 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.416e-05/0.01229, allocations: 102.3 kB / 0.9913 GB, free: 7.43 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 5.533e-05/0.01235, allocations: 24.66 kB / 0.9913 GB, free: 7.406 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.122e-05/0.0124, allocations: 40.48 kB / 0.9914 GB, free: 7.367 MB / 0.948 GB Notification: Performance of SimCode: time 6.01e-07/0.0124, allocations: 3.938 kB / 0.9914 GB, free: 7.363 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01692/0.02932, allocations: 4.199 MB / 0.9955 GB, free: 3.336 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.195/7.224, allocations: 3.688 kB / 0.9955 GB, free: 3.336 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 11.35282550752163]