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.00183/0.00183, allocations: 114.3 kB / 18.94 MB, free: 2.793 MB / 14.72 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.002381/0.002381, allocations: 216 kB / 22.25 MB, free: 5.215 MB / 14.72 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.489/1.489, allocations: 230.6 MB / 256 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.176/3.176, allocations: 0.49 GB / 0.7951 GB, free: 33.46 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00204/0.00204, allocations: 70.78 kB / 1.154 GB, free: 25.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3317, allocations: 176.1 MB / 1.326 GB, free: 1.945 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003593/0.3353, allocations: 1.618 MB / 1.327 GB, free: 328 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001706/0.337, allocations: 0.7792 MB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.757e-05/0.3371, allocations: 3.938 kB / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001154/0.3372, allocations: 11.86 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 6.878e-05/0.3373, allocations: 19.75 kB / 1.328 GB, free: 15.5 MB / 1.029 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.0005408/0.3378, allocations: 111.7 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002467/0.3381, allocations: 143.5 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001495/0.3382, allocations: 25.56 kB / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001498/0.3384, allocations: 55.78 kB / 1.329 GB, free: 15.17 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.3385, allocations: 59.75 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.938e-05/0.3385, allocations: 12 kB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001591/0.3387, allocations: 59.91 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.575e-05/0.3387, allocations: 31.89 kB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 8.74e-05/0.3388, allocations: 55.67 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003525/0.3392, allocations: 175.3 kB / 1.329 GB, free: 14.78 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.3392, allocations: 3.984 kB / 1.329 GB, free: 14.78 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.422e-06/0.3392, allocations: 0 / 1.329 GB, free: 14.78 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.095e-06/0.3392, allocations: 4 kB / 1.329 GB, free: 14.77 MB / 1.029 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.001005/0.3402, allocations: 482.6 kB / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.3403, allocations: 8.031 kB / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.735e-05/0.3403, allocations: 42.73 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.527e-05/0.3404, allocations: 20.84 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002538/0.3406, allocations: 158.3 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/0.3407, allocations: 8.375 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.441e-05/0.3407, allocations: 12.31 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003385/0.341, allocations: 130.6 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.341, allocations: 3.984 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.681e-05/0.341, allocations: 4 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.3411, allocations: 8 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002559/0.3413, allocations: 67.88 kB / 1.33 GB, free: 13.76 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007375/0.342, allocations: 423.9 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002292/0.3423, allocations: 85.11 kB / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001387/0.3424, allocations: 45.81 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.76e-05/0.3424, allocations: 0 / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004116/0.3429, allocations: 161 kB / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.442e-06/0.3429, allocations: 0 / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.0006039/0.3435, allocations: 189.6 kB / 1.331 GB, free: 12.78 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.572e-05/0.3435, allocations: 89.05 kB / 1.331 GB, free: 12.67 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.3437, allocations: 162.8 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.531e-05/0.3437, allocations: 33.7 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.778e-05/0.3438, allocations: 116.3 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.831e-05/0.3439, allocations: 23.84 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.401e-05/0.3439, allocations: 33.7 kB / 1.331 GB, free: 12.28 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001572/0.3441, allocations: 326.8 kB / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001304/0.3442, allocations: 39.97 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002135/0.3444, allocations: 116.1 kB / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003124/0.3447, allocations: 147.5 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3447, allocations: 0 / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003937/0.3451, allocations: 169.5 kB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.3452, allocations: 8 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.3452, allocations: 3.984 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/0.3452, allocations: 4 kB / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.3453, allocations: 23.91 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.3453, allocations: 0 / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.3454, allocations: 15.92 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/0.3454, allocations: 12 kB / 1.332 GB, free: 11.35 MB / 1.029 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.0001471/0.3456, allocations: 142.4 kB / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.344e-05/0.3456, allocations: 20.27 kB / 1.332 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.272e-05/0.3457, allocations: 17.41 kB / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.3457, allocations: 0 / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.3457, allocations: 0 / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.3457, allocations: 7.875 kB / 1.332 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007613/0.3464, allocations: 0.5123 MB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.3464, allocations: 3.938 kB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.35e-05/0.3465, allocations: 11.98 kB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.3465, allocations: 3.938 kB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.643e-05/0.3465, allocations: 8 kB / 1.333 GB, free: 10.56 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.632e-06/0.3465, allocations: 3.984 kB / 1.333 GB, free: 10.56 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3465, allocations: 0 / 1.333 GB, free: 10.56 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004467/0.347, allocations: 322.5 kB / 1.333 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.467e-05/0.347, allocations: 15.84 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.3e-05/0.347, allocations: 4 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001802/0.3472, allocations: 19.97 kB / 1.333 GB, free: 10.19 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.743e-05/0.3473, allocations: 11.98 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.067e-05/0.3473, allocations: 8 kB / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.52e-05/0.3474, allocations: 123.2 kB / 1.333 GB, free: 10.05 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3474, allocations: 0 / 1.333 GB, free: 10.05 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003501/0.3477, allocations: 35.94 kB / 1.333 GB, free: 10.01 MB / 1.029 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.00116/0.3489, allocations: 0.946 MB / 1.334 GB, free: 9.07 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003734/0.3493, allocations: 107.8 kB / 1.334 GB, free: 8.965 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3493, allocations: 0 / 1.334 GB, free: 8.965 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001585/0.3494, allocations: 52.45 kB / 1.334 GB, free: 8.914 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003798/0.3498, allocations: 18.06 kB / 1.334 GB, free: 8.898 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0025/0.3523, allocations: 1.904 MB / 1.336 GB, free: 6.859 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003751/0.3527, allocations: 0.7196 MB / 1.337 GB, free: 6.113 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.43e-05/0.3528, allocations: 16.48 kB / 1.337 GB, free: 6.098 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.066e-05/0.3528, allocations: 39.52 kB / 1.337 GB, free: 6.059 MB / 1.029 GB Notification: Performance of SimCode: time 4.71e-07/0.3528, allocations: 0 / 1.337 GB, free: 6.059 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03073/0.3836, allocations: 3.596 MB / 1.34 GB, free: 2.613 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.19, allocations: 4.938 kB / 1.34 GB, free: 2.609 MB / 1.029 GB " [Timeout remaining time 288] (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/jenkins1/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: 18.997023981064558]