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.008198/0.008198, allocations: 102.7 kB / 15.73 MB, free: 6.488 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.002114/0.002114, allocations: 195.2 kB / 16.68 MB, free: 6.375 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.307/1.307, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.358/2.358, allocations: 437.1 MB / 0.7105 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 72.12 kB / 1.018 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2363/0.2375, allocations: 151.6 MB / 1.166 GB, free: 7.352 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002386/0.2399, allocations: 1.585 MB / 1.168 GB, free: 5.75 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001064/0.241, allocations: 0.6975 MB / 1.168 GB, free: 5.047 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.363e-05/0.2411, allocations: 0 / 1.168 GB, free: 5.047 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 8.791e-05/0.2411, allocations: 11.81 kB / 1.168 GB, free: 5.035 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.708e-05/0.2412, allocations: 23.78 kB / 1.168 GB, free: 5.012 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.0003887/0.2416, allocations: 107.7 kB / 1.169 GB, free: 4.906 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001578/0.2418, allocations: 147.5 kB / 1.169 GB, free: 4.762 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001178/0.2419, allocations: 25.12 kB / 1.169 GB, free: 4.734 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 7.986e-05/0.242, allocations: 59.75 kB / 1.169 GB, free: 4.676 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.663e-05/0.2421, allocations: 67.7 kB / 1.169 GB, free: 4.609 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.115e-05/0.2421, allocations: 8 kB / 1.169 GB, free: 4.602 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001074/0.2422, allocations: 55.89 kB / 1.169 GB, free: 4.547 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.996e-05/0.2423, allocations: 27.91 kB / 1.169 GB, free: 4.52 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.213e-05/0.2423, allocations: 63.66 kB / 1.169 GB, free: 4.457 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002002/0.2425, allocations: 170.3 kB / 1.169 GB, free: 4.293 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2426, allocations: 0 / 1.169 GB, free: 4.293 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2426, allocations: 0 / 1.169 GB, free: 4.293 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.2426, allocations: 0 / 1.169 GB, free: 4.293 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.0007004/0.2433, allocations: 0.5436 MB / 1.17 GB, free: 3.684 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.2433, allocations: 12.02 kB / 1.17 GB, free: 3.672 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.375e-05/0.2434, allocations: 38.75 kB / 1.17 GB, free: 3.625 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.227e-05/0.2434, allocations: 12.84 kB / 1.17 GB, free: 3.613 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001755/0.2436, allocations: 220.9 kB / 1.17 GB, free: 3.359 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.2436, allocations: 12.36 kB / 1.17 GB, free: 3.348 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.651e-05/0.2436, allocations: 12.38 kB / 1.17 GB, free: 3.336 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002657/0.2439, allocations: 131.5 kB / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.643e-06/0.2439, allocations: 0 / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.2439, allocations: 0 / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.2439, allocations: 0 / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002067/0.2441, allocations: 75.88 kB / 1.17 GB, free: 3.121 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005316/0.2447, allocations: 460.7 kB / 1.171 GB, free: 2.617 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001718/0.2449, allocations: 89.12 kB / 1.171 GB, free: 2.512 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.245, allocations: 41.81 kB / 1.171 GB, free: 2.465 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.215e-05/0.245, allocations: 3.984 kB / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002536/0.2453, allocations: 157 kB / 1.171 GB, free: 2.289 MB / 0.92 GB Notification: Performance of pre-optimization done (n=12): time 1.623e-06/0.2453, allocations: 0 / 1.171 GB, free: 2.289 MB / 0.92 GB Notification: Performance of matching and sorting (n=12): time 0.0004881/0.2458, allocations: 181.3 kB / 1.171 GB, free: 2.105 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.094e-05/0.2458, allocations: 85.05 kB / 1.171 GB, free: 2.004 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.2459, allocations: 170.8 kB / 1.171 GB, free: 1.828 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.126e-05/0.246, allocations: 37.7 kB / 1.171 GB, free: 1.785 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.161e-05/0.246, allocations: 104.3 kB / 1.171 GB, free: 1.676 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.909e-05/0.2461, allocations: 27.66 kB / 1.171 GB, free: 1.648 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.935e-05/0.2461, allocations: 38.08 kB / 1.171 GB, free: 1.605 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 8.264e-05/0.2462, allocations: 326.8 kB / 1.172 GB, free: 1.277 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.2463, allocations: 35.97 kB / 1.172 GB, free: 1.242 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001541/0.2465, allocations: 114.3 kB / 1.172 GB, free: 1.094 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002444/0.2467, allocations: 155.5 kB / 1.172 GB, free: 0.9141 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2468, allocations: 0 / 1.172 GB, free: 0.9141 MB / 0.92 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003127/0.2471, allocations: 165.2 kB / 1.172 GB, free: 0.7461 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.2471, allocations: 4 kB / 1.172 GB, free: 0.7422 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.77e-06/0.2471, allocations: 4.281 kB / 1.172 GB, free: 0.7383 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.2471, allocations: 4 kB / 1.172 GB, free: 0.7344 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.2472, allocations: 23.92 kB / 1.172 GB, free: 0.7109 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.2472, allocations: 4 kB / 1.172 GB, free: 0.707 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.023e-05/0.2473, allocations: 20.16 kB / 1.172 GB, free: 0.6875 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.047e-05/0.2473, allocations: 4 kB / 1.172 GB, free: 0.6836 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 9.626e-05/0.2475, allocations: 137.8 kB / 1.172 GB, free: 0.5391 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.677e-05/0.2475, allocations: 15.91 kB / 1.172 GB, free: 0.5234 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.303e-05/0.2475, allocations: 17.41 kB / 1.172 GB, free: 0.5039 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.2475, allocations: 4 kB / 1.172 GB, free: 0.5 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.2475, allocations: 0 / 1.172 GB, free: 0.5 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.2476, allocations: 7.922 kB / 1.172 GB, free: 0.4922 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006113/0.2482, allocations: 0.5327 MB / 1.173 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.2482, allocations: 3.938 kB / 1.173 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.898e-05/0.2483, allocations: 15.98 kB / 1.173 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.022e-06/0.2483, allocations: 11.92 kB / 1.173 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.2483, allocations: 0 / 1.173 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.2483, allocations: 0 / 1.173 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.2483, allocations: 0 / 1.173 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003637/0.2487, allocations: 322.5 kB / 1.173 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.875e-05/0.2487, allocations: 92.86 kB / 1.173 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.912e-05/0.2487, allocations: 3.984 kB / 1.173 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001612/0.2489, allocations: 19.98 kB / 1.173 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.213e-05/0.249, allocations: 7.984 kB / 1.173 GB, free: 15.4 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.319e-05/0.249, allocations: 12 kB / 1.173 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.883e-05/0.2491, allocations: 112.2 kB / 1.174 GB, free: 15.28 MB / 0.9356 GB Notification: Performance of sort global known variables: time 3.9e-07/0.2491, allocations: 0 / 1.174 GB, free: 15.28 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003209/0.2494, allocations: 51.98 kB / 1.174 GB, free: 15.23 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.0008512/0.2503, allocations: 0.956 MB / 1.175 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003139/0.2506, allocations: 107.8 kB / 1.175 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2506, allocations: 0 / 1.175 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001359/0.2507, allocations: 51.91 kB / 1.175 GB, free: 14.13 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003502/0.2511, allocations: 24.55 kB / 1.175 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001794/0.2529, allocations: 1.893 MB / 1.177 GB, free: 12.08 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002298/0.2531, allocations: 0.7235 MB / 1.177 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.278e-05/0.2532, allocations: 20.62 kB / 1.177 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.591e-05/0.2533, allocations: 39.42 kB / 1.177 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of SimCode: time 2.61e-07/0.2533, allocations: 0 / 1.177 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.52/2.774, allocations: 3.453 MB / 1.181 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.6/12.37, allocations: 6.953 kB / 1.181 GB, free: 7.91 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=50 --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