Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006834/0.006834, allocations: 96.95 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001752/0.001752, allocations: 194.3 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.442/2.442, allocations: 437.1 MB / 0.7106 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001692, allocations: 63.89 kB / 1.018 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2443, allocations: 151.6 MB / 1.166 GB, free: 7.277 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.00243/0.2468, allocations: 1.587 MB / 1.168 GB, free: 5.668 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001188/0.248, allocations: 0.7014 MB / 1.168 GB, free: 4.961 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.428e-05/0.2481, allocations: 0 / 1.168 GB, free: 4.961 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 9.057e-05/0.2482, allocations: 15.8 kB / 1.168 GB, free: 4.945 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.24e-05/0.2482, allocations: 15.81 kB / 1.168 GB, free: 4.93 MB / 0.92 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.0003941/0.2486, allocations: 107.7 kB / 1.169 GB, free: 4.824 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001769/0.2488, allocations: 135.5 kB / 1.169 GB, free: 4.691 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.2489, allocations: 41.08 kB / 1.169 GB, free: 4.648 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.121e-05/0.249, allocations: 51.78 kB / 1.169 GB, free: 4.598 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.646e-05/0.2491, allocations: 67.73 kB / 1.169 GB, free: 4.531 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.227e-05/0.2492, allocations: 8 kB / 1.169 GB, free: 4.523 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001162/0.2493, allocations: 59.91 kB / 1.169 GB, free: 4.465 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 5.564e-05/0.2493, allocations: 35.84 kB / 1.169 GB, free: 4.43 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.76e-05/0.2494, allocations: 51.72 kB / 1.169 GB, free: 4.379 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002238/0.2496, allocations: 175.5 kB / 1.169 GB, free: 4.207 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.2497, allocations: 3.938 kB / 1.169 GB, free: 4.203 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.103e-06/0.2497, allocations: 0 / 1.169 GB, free: 4.203 MB / 0.92 GB Notification: Performance of Transformations before backend: time 8.356e-06/0.2497, allocations: 0 / 1.169 GB, free: 4.203 MB / 0.92 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.0007873/0.2505, allocations: 0.5505 MB / 1.17 GB, free: 3.586 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.076e-05/0.2505, allocations: 8.031 kB / 1.17 GB, free: 3.578 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.936e-05/0.2505, allocations: 42.73 kB / 1.17 GB, free: 3.527 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.386e-05/0.2506, allocations: 16.84 kB / 1.17 GB, free: 3.512 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001947/0.2508, allocations: 221 kB / 1.17 GB, free: 3.258 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.2508, allocations: 4.375 kB / 1.17 GB, free: 3.254 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.744e-05/0.2508, allocations: 12.38 kB / 1.17 GB, free: 3.242 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002865/0.2511, allocations: 127.5 kB / 1.17 GB, free: 3.105 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.2511, allocations: 4 kB / 1.17 GB, free: 3.102 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.376e-05/0.2512, allocations: 3.984 kB / 1.17 GB, free: 3.098 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.2512, allocations: 0 / 1.17 GB, free: 3.098 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002468/0.2514, allocations: 71.88 kB / 1.17 GB, free: 3.027 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005798/0.252, allocations: 460.8 kB / 1.171 GB, free: 2.523 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000191/0.2522, allocations: 85.22 kB / 1.171 GB, free: 2.422 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001293/0.2524, allocations: 57.75 kB / 1.171 GB, free: 2.359 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.2524, allocations: 0 / 1.171 GB, free: 2.359 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002973/0.2527, allocations: 144.9 kB / 1.171 GB, free: 2.199 MB / 0.92 GB Notification: Performance of pre-optimization done (n=12): time 1.252e-06/0.2527, allocations: 4 kB / 1.171 GB, free: 2.195 MB / 0.92 GB Notification: Performance of matching and sorting (n=12): time 0.0005308/0.2532, allocations: 185.4 kB / 1.171 GB, free: 2.008 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.278e-05/0.2533, allocations: 89.05 kB / 1.171 GB, free: 1.902 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/0.2534, allocations: 162.8 kB / 1.171 GB, free: 1.734 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/0.2534, allocations: 29.7 kB / 1.171 GB, free: 1.699 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.883e-05/0.2535, allocations: 116.4 kB / 1.171 GB, free: 1.578 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.362e-05/0.2536, allocations: 31.77 kB / 1.171 GB, free: 1.547 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.322e-05/0.2536, allocations: 33.7 kB / 1.172 GB, free: 1.508 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.2537, allocations: 326.8 kB / 1.172 GB, free: 1.18 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.2539, allocations: 35.97 kB / 1.172 GB, free: 1.145 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001809/0.2541, allocations: 116 kB / 1.172 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002891/0.2544, allocations: 151.5 kB / 1.172 GB, free: 0.8203 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.2544, allocations: 4 kB / 1.172 GB, free: 0.8164 MB / 0.92 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003466/0.2547, allocations: 161.7 kB / 1.172 GB, free: 0.6523 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.2547, allocations: 8 kB / 1.172 GB, free: 0.6445 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.2547, allocations: 0 / 1.172 GB, free: 0.6445 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.2548, allocations: 4 kB / 1.172 GB, free: 0.6406 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.2549, allocations: 32.14 kB / 1.172 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.2549, allocations: 7.984 kB / 1.172 GB, free: 0.6016 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.863e-05/0.255, allocations: 15.89 kB / 1.172 GB, free: 0.5859 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.989e-06/0.255, allocations: 4 kB / 1.172 GB, free: 0.582 MB / 0.92 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.0001098/0.2551, allocations: 145.9 kB / 1.172 GB, free: 440 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.717e-05/0.2551, allocations: 11.95 kB / 1.172 GB, free: 428 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.881e-05/0.2552, allocations: 21.33 kB / 1.172 GB, free: 404 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2552, allocations: 0 / 1.172 GB, free: 404 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.2552, allocations: 8 kB / 1.173 GB, free: 396 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.2552, allocations: 3.938 kB / 1.173 GB, free: 392 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000672/0.2559, allocations: 0.5327 MB / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2559, allocations: 0 / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.969e-05/0.256, allocations: 11.98 kB / 1.173 GB, free: 15.78 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.256, allocations: 3.938 kB / 1.173 GB, free: 15.78 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.256, allocations: 8 kB / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.256, allocations: 0 / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.256, allocations: 0 / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003999/0.2564, allocations: 322.6 kB / 1.173 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.876e-05/0.2565, allocations: 92.95 kB / 1.173 GB, free: 15.33 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.897e-05/0.2565, allocations: 8 kB / 1.173 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.2567, allocations: 15.98 kB / 1.173 GB, free: 15.3 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.972e-05/0.2567, allocations: 11.98 kB / 1.173 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.155e-05/0.2568, allocations: 7.984 kB / 1.173 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.429e-05/0.2568, allocations: 123.2 kB / 1.174 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2569, allocations: 0 / 1.174 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002994/0.2572, allocations: 35.94 kB / 1.174 GB, free: 15.13 MB / 0.9356 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.0009817/0.2581, allocations: 0.9586 MB / 1.175 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003261/0.2585, allocations: 115.8 kB / 1.175 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.2585, allocations: 3.938 kB / 1.175 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.00015/0.2586, allocations: 55.89 kB / 1.175 GB, free: 14.01 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003184/0.259, allocations: 16.55 kB / 1.175 GB, free: 14 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002022/0.261, allocations: 1.904 MB / 1.177 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002987/0.2613, allocations: 0.7195 MB / 1.177 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.342e-05/0.2614, allocations: 24.53 kB / 1.177 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.726e-05/0.2614, allocations: 39.42 kB / 1.177 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of SimCode: time 2.3e-07/0.2615, allocations: 0 / 1.177 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8691/1.131, allocations: 3.438 MB / 1.181 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.98, allocations: 4.062 kB / 1.181 GB, free: 7.809 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches