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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002145/0.002145, allocations: 108.7 kB / 16.46 MB, free: 6.035 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.002399/0.002399, allocations: 192.5 kB / 19.41 MB, free: 3.539 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.426/1.426, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.595/2.595, allocations: 443.5 MB / 0.7287 GB, free: 13.23 MB / 0.5919 GB " [Timeout remaining time 177] 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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00201/0.00201, allocations: 67.89 kB / 1.056 GB, free: 5.895 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.75/0.752, allocations: 160.7 MB / 1.213 GB, free: 3.859 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003225/0.7552, allocations: 1.601 MB / 1.214 GB, free: 2.605 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001487/0.7567, allocations: 0.6964 MB / 1.215 GB, free: 2.07 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.506e-05/0.7568, allocations: 5.031 kB / 1.215 GB, free: 2.066 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001074/0.7569, allocations: 12.92 kB / 1.215 GB, free: 2.055 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.018e-05/0.757, allocations: 17.97 kB / 1.215 GB, free: 2.039 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.0005473/0.7575, allocations: 117.3 kB / 1.215 GB, free: 1.953 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002434/0.7577, allocations: 134.7 kB / 1.215 GB, free: 1.875 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.7579, allocations: 28.22 kB / 1.215 GB, free: 1.855 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.758, allocations: 53.31 kB / 1.215 GB, free: 1.824 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001126/0.7581, allocations: 70.7 kB / 1.216 GB, free: 1.773 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.722e-05/0.7582, allocations: 10.91 kB / 1.216 GB, free: 1.773 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000142/0.7583, allocations: 49.59 kB / 1.216 GB, free: 1.754 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 6.316e-05/0.7584, allocations: 35.59 kB / 1.216 GB, free: 1.727 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 9.902e-05/0.7585, allocations: 58.56 kB / 1.216 GB, free: 1.684 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003199/0.7588, allocations: 170.7 kB / 1.216 GB, free: 1.566 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.7588, allocations: 0 / 1.216 GB, free: 1.566 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.463e-06/0.7588, allocations: 0 / 1.216 GB, free: 1.566 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.775e-05/0.7588, allocations: 0.8438 kB / 1.216 GB, free: 1.566 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.0009958/0.7598, allocations: 0.554 MB / 1.216 GB, free: 1.012 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.7598, allocations: 9.906 kB / 1.216 GB, free: 1.012 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.456e-05/0.7599, allocations: 41.55 kB / 1.216 GB, free: 0.9648 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.248e-05/0.76, allocations: 17.31 kB / 1.216 GB, free: 0.957 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002586/0.7602, allocations: 224.3 kB / 1.217 GB, free: 0.7148 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.7602, allocations: 8.812 kB / 1.217 GB, free: 0.7109 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.126e-05/0.7603, allocations: 10.53 kB / 1.217 GB, free: 0.707 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003259/0.7606, allocations: 134.8 kB / 1.217 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.7606, allocations: 0 / 1.217 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.625e-05/0.7606, allocations: 6.125 kB / 1.217 GB, free: 0.6055 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.401e-06/0.7606, allocations: 1.094 kB / 1.217 GB, free: 0.6055 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002366/0.7608, allocations: 73.64 kB / 1.217 GB, free: 0.5703 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000718/0.7616, allocations: 462.2 kB / 1.217 GB, free: 124 kB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002167/0.7618, allocations: 88.08 kB / 1.217 GB, free: 44 kB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001368/0.7619, allocations: 45.62 kB / 1.217 GB, free: 12 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.574e-05/0.7619, allocations: 1.531 kB / 1.217 GB, free: 12 kB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003293/0.7623, allocations: 147.8 kB / 1.218 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=12): time 1.623e-06/0.7623, allocations: 1.188 kB / 1.218 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12): time 0.0005852/0.7629, allocations: 180.8 kB / 1.218 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.403e-05/0.7629, allocations: 83.39 kB / 1.218 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000154/0.7631, allocations: 162.8 kB / 1.218 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.579e-05/0.7631, allocations: 36.44 kB / 1.218 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.954e-05/0.7632, allocations: 111.9 kB / 1.218 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.73e-05/0.7632, allocations: 27.84 kB / 1.218 GB, free: 15.4 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.921e-05/0.7633, allocations: 38.83 kB / 1.218 GB, free: 15.37 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001468/0.7634, allocations: 326.1 kB / 1.219 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.7636, allocations: 32.81 kB / 1.219 GB, free: 15.03 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001938/0.7638, allocations: 120.3 kB / 1.219 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003074/0.7641, allocations: 152.3 kB / 1.219 GB, free: 14.78 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.7641, allocations: 1.219 kB / 1.219 GB, free: 14.78 MB / 0.9356 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003783/0.7645, allocations: 162 kB / 1.219 GB, free: 14.69 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.7645, allocations: 9.062 kB / 1.219 GB, free: 14.69 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.7645, allocations: 6.781 kB / 1.219 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.7645, allocations: 2.594 kB / 1.219 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.7646, allocations: 23.53 kB / 1.219 GB, free: 14.67 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.631e-05/0.7646, allocations: 5.5 kB / 1.219 GB, free: 14.67 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001171/0.7647, allocations: 21.25 kB / 1.219 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.7647, allocations: 5.312 kB / 1.219 GB, free: 14.66 MB / 0.9356 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.0001245/0.7649, allocations: 128.9 kB / 1.219 GB, free: 14.53 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.394e-05/0.7649, allocations: 19.52 kB / 1.219 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.918e-05/0.765, allocations: 18.45 kB / 1.219 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.765, allocations: 1.156 kB / 1.219 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.765, allocations: 1.406 kB / 1.219 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.765, allocations: 3.938 kB / 1.219 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007679/0.7657, allocations: 0.5371 MB / 1.22 GB, free: 14 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.7657, allocations: 0 / 1.22 GB, free: 14 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.602e-05/0.7658, allocations: 20.89 kB / 1.22 GB, free: 13.99 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/0.7658, allocations: 5.062 kB / 1.22 GB, free: 13.99 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.7658, allocations: 1.969 kB / 1.22 GB, free: 13.99 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.7658, allocations: 0 / 1.22 GB, free: 13.99 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.7658, allocations: 1.156 kB / 1.22 GB, free: 13.99 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004487/0.7663, allocations: 326 kB / 1.22 GB, free: 13.72 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.574e-05/0.7663, allocations: 92.58 kB / 1.22 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.258e-05/0.7664, allocations: 1.938 kB / 1.22 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001908/0.7666, allocations: 20.84 kB / 1.22 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.601e-05/0.7666, allocations: 13.41 kB / 1.22 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.468e-05/0.7666, allocations: 14.41 kB / 1.22 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.881e-05/0.7667, allocations: 122.2 kB / 1.22 GB, free: 13.49 MB / 0.9356 GB Notification: Performance of sort global known variables: time 8e-08/0.7667, allocations: 5.281 kB / 1.22 GB, free: 13.49 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003584/0.7671, allocations: 44.77 kB / 1.22 GB, free: 13.47 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.001176/0.7683, allocations: 0.9551 MB / 1.221 GB, free: 12.64 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003627/0.7686, allocations: 105 kB / 1.221 GB, free: 12.6 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.7686, allocations: 0 / 1.221 GB, free: 12.6 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001605/0.7688, allocations: 51.69 kB / 1.221 GB, free: 12.58 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003937/0.7692, allocations: 23.89 kB / 1.221 GB, free: 12.56 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00252/0.7717, allocations: 1.897 MB / 1.223 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003871/0.7721, allocations: 0.7196 MB / 1.224 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.847e-05/0.7722, allocations: 20.94 kB / 1.224 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.891e-05/0.7723, allocations: 38.27 kB / 1.224 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of SimCode: time 6.41e-07/0.7723, allocations: 1.312 kB / 1.224 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02681/0.7991, allocations: 3.464 MB / 1.227 GB, free: 8.305 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.376/9.175, allocations: 4.078 kB / 1.227 GB, free: 8.305 MB / 0.9356 GB " [Timeout remaining time 291] (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 --stepSize=0.0004 --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) [Timeout 420.0] 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_2/OpenModelicaLibraryTesting/files/Buildings_10_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: 14.995477358810604]