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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001393/0.001393, allocations: 103.1 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.519/1.519, allocations: 225.6 MB / 247.8 MB, free: 3.73 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.915/2.915, allocations: 497.2 MB / 0.7812 GB, free: 11.93 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002063/0.002063, allocations: 67.89 kB / 1.134 GB, free: 13.22 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.108/1.11, allocations: 173.9 MB / 1.304 GB, free: 32.2 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003014/1.113, allocations: 1.602 MB / 1.306 GB, free: 31.08 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001541/1.115, allocations: 0.7013 MB / 1.306 GB, free: 30.61 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.111e-05/1.115, allocations: 0 / 1.306 GB, free: 30.61 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001645/1.115, allocations: 15 kB / 1.306 GB, free: 30.6 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.211e-05/1.115, allocations: 22.02 kB / 1.306 GB, free: 30.59 MB / 1.061 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.0007219/1.116, allocations: 110.2 kB / 1.306 GB, free: 30.53 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003066/1.116, allocations: 133.9 kB / 1.306 GB, free: 30.47 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002513/1.116, allocations: 27.77 kB / 1.306 GB, free: 30.45 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001448/1.117, allocations: 55.11 kB / 1.307 GB, free: 30.43 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001316/1.117, allocations: 66.95 kB / 1.307 GB, free: 30.4 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.639e-05/1.117, allocations: 7.875 kB / 1.307 GB, free: 30.4 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001824/1.117, allocations: 56.34 kB / 1.307 GB, free: 30.38 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 9.039e-05/1.117, allocations: 35.66 kB / 1.307 GB, free: 30.36 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001041/1.117, allocations: 59.23 kB / 1.307 GB, free: 30.32 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003913/1.118, allocations: 171.3 kB / 1.307 GB, free: 30.25 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 9.467e-06/1.118, allocations: 0 / 1.307 GB, free: 30.25 MB / 1.061 GB Notification: Performance of FrontEnd: time 3.507e-06/1.118, allocations: 0 / 1.307 GB, free: 30.25 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.123e-05/1.118, allocations: 2.938 kB / 1.307 GB, free: 30.25 MB / 1.061 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.001295/1.119, allocations: 0.5524 MB / 1.307 GB, free: 29.73 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 7.099e-05/1.119, allocations: 8.875 kB / 1.307 GB, free: 29.73 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.236e-05/1.119, allocations: 45.03 kB / 1.308 GB, free: 29.68 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.95e-05/1.119, allocations: 17.41 kB / 1.308 GB, free: 29.68 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003169/1.119, allocations: 212.2 kB / 1.308 GB, free: 29.46 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.069e-05/1.119, allocations: 6.219 kB / 1.308 GB, free: 29.46 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.384e-05/1.119, allocations: 10.03 kB / 1.308 GB, free: 29.45 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004448/1.12, allocations: 136.2 kB / 1.308 GB, free: 29.38 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/1.12, allocations: 0 / 1.308 GB, free: 29.38 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.183e-05/1.12, allocations: 0 / 1.308 GB, free: 29.38 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/1.12, allocations: 6.219 kB / 1.308 GB, free: 29.37 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002469/1.12, allocations: 69.38 kB / 1.308 GB, free: 29.36 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007645/1.121, allocations: 468 kB / 1.308 GB, free: 28.95 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002149/1.121, allocations: 86.8 kB / 1.308 GB, free: 28.89 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001278/1.121, allocations: 39.23 kB / 1.309 GB, free: 28.87 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 4.782e-05/1.121, allocations: 11.94 kB / 1.309 GB, free: 28.86 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005291/1.122, allocations: 148.4 kB / 1.309 GB, free: 28.77 MB / 1.061 GB Notification: Performance of pre-optimization done (n=12): time 1.402e-06/1.122, allocations: 0 / 1.309 GB, free: 28.77 MB / 1.061 GB Notification: Performance of matching and sorting (n=12): time 0.0006326/1.122, allocations: 182.9 kB / 1.309 GB, free: 28.7 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.043e-05/1.123, allocations: 87.89 kB / 1.309 GB, free: 28.6 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/1.123, allocations: 173.3 kB / 1.309 GB, free: 28.47 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.379e-05/1.123, allocations: 32.48 kB / 1.309 GB, free: 28.44 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.063e-05/1.123, allocations: 101.5 kB / 1.309 GB, free: 28.34 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.339e-05/1.123, allocations: 40.61 kB / 1.309 GB, free: 28.31 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.837e-05/1.123, allocations: 39.42 kB / 1.309 GB, free: 28.28 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001084/1.123, allocations: 324.2 kB / 1.31 GB, free: 27.96 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/1.123, allocations: 34.81 kB / 1.31 GB, free: 27.96 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001749/1.123, allocations: 116.6 kB / 1.31 GB, free: 27.85 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003264/1.124, allocations: 147.2 kB / 1.31 GB, free: 27.74 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/1.124, allocations: 0 / 1.31 GB, free: 27.74 MB / 1.061 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003371/1.124, allocations: 167.1 kB / 1.31 GB, free: 27.67 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.888e-05/1.124, allocations: 11.28 kB / 1.31 GB, free: 27.67 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/1.124, allocations: 3.984 kB / 1.31 GB, free: 27.66 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.401e-05/1.124, allocations: 3.031 kB / 1.31 GB, free: 27.66 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001332/1.124, allocations: 18.83 kB / 1.31 GB, free: 27.66 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.248e-05/1.124, allocations: 3.438 kB / 1.31 GB, free: 27.66 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.997e-05/1.124, allocations: 24.02 kB / 1.31 GB, free: 27.65 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.433e-05/1.124, allocations: 5.969 kB / 1.31 GB, free: 27.65 MB / 1.061 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.000131/1.124, allocations: 140.4 kB / 1.31 GB, free: 27.52 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.08e-05/1.124, allocations: 20.53 kB / 1.31 GB, free: 27.5 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.526e-05/1.125, allocations: 15.62 kB / 1.31 GB, free: 27.49 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/1.125, allocations: 6.75 kB / 1.31 GB, free: 27.49 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/1.125, allocations: 0 / 1.31 GB, free: 27.49 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/1.125, allocations: 3.938 kB / 1.31 GB, free: 27.48 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006685/1.125, allocations: 0.5405 MB / 1.311 GB, free: 27.04 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/1.125, allocations: 0 / 1.311 GB, free: 27.04 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.061e-05/1.125, allocations: 14.2 kB / 1.311 GB, free: 27.04 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/1.125, allocations: 3.938 kB / 1.311 GB, free: 27.04 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/1.125, allocations: 3 kB / 1.311 GB, free: 27.04 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/1.125, allocations: 3.281 kB / 1.311 GB, free: 27.04 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/1.125, allocations: 4 kB / 1.311 GB, free: 27.04 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004369/1.126, allocations: 318.7 kB / 1.311 GB, free: 26.8 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 5.909e-05/1.126, allocations: 88.12 kB / 1.311 GB, free: 26.7 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.971e-05/1.126, allocations: 3.281 kB / 1.311 GB, free: 26.7 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001914/1.126, allocations: 27.27 kB / 1.311 GB, free: 26.68 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.897e-05/1.126, allocations: 6.406 kB / 1.311 GB, free: 26.68 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.802e-05/1.126, allocations: 13.73 kB / 1.311 GB, free: 26.68 MB / 1.061 GB Notification: Performance of sorting global known variables: time 8.802e-05/1.126, allocations: 112.7 kB / 1.311 GB, free: 26.6 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/1.126, allocations: 3.938 kB / 1.311 GB, free: 26.59 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003634/1.127, allocations: 49.66 kB / 1.311 GB, free: 26.58 MB / 1.061 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.001164/1.128, allocations: 0.95 MB / 1.312 GB, free: 25.78 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003809/1.128, allocations: 108 kB / 1.312 GB, free: 25.75 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/1.128, allocations: 2.938 kB / 1.312 GB, free: 25.75 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001437/1.128, allocations: 54.31 kB / 1.313 GB, free: 25.73 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004764/1.129, allocations: 20.22 kB / 1.313 GB, free: 25.73 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002306/1.131, allocations: 1.9 MB / 1.314 GB, free: 24.14 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002034/1.131, allocations: 0.7159 MB / 1.315 GB, free: 23.44 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.746e-05/1.131, allocations: 24.48 kB / 1.315 GB, free: 23.43 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.877e-05/1.131, allocations: 38.16 kB / 1.315 GB, free: 23.41 MB / 1.061 GB Notification: Performance of SimCode: time 5.81e-07/1.131, allocations: 0 / 1.315 GB, free: 23.41 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02728/1.159, allocations: 3.467 MB / 1.319 GB, free: 22.82 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.593/9.751, allocations: 16.28 kB / 1.319 GB, free: 22.8 MB / 1.061 GB " [Timeout remaining time 290] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_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: 16.257096707820892]