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.001223/0.001223, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.001173/0.001173, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.9304/0.9304, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.764/1.764, allocations: 377.8 MB / 0.6221 GB, free: 8.691 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 1.784e-06/1.784e-06, allocations: 0 / 0.9809 GB, free: 2.637 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.813e-05/1.992e-05, allocations: 10.22 kB / 0.9809 GB, free: 2.625 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.00214/0.00216, allocations: 1.58 MB / 0.9825 GB, free: 1.035 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0009496/0.00311, allocations: 0.7324 MB / 0.9832 GB, free: 304 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.784e-05/0.003158, allocations: 0 / 0.9832 GB, free: 304 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 9.548e-05/0.003253, allocations: 11.88 kB / 0.9832 GB, free: 292 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 4.784e-05/0.003301, allocations: 27.72 kB / 0.9832 GB, free: 264 kB / 0.9323 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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.0004104/0.003711, allocations: 115.6 kB / 0.9833 GB, free: 148 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001551/0.003866, allocations: 147.4 kB / 0.9835 GB, free: 0 / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.003997, allocations: 17.38 kB / 0.9835 GB, free: 15.98 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 9.721e-05/0.004094, allocations: 79.78 kB / 0.9836 GB, free: 15.91 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 7.075e-05/0.004165, allocations: 55.8 kB / 0.9836 GB, free: 15.85 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 1.993e-05/0.004185, allocations: 8 kB / 0.9836 GB, free: 15.84 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 9.367e-05/0.004278, allocations: 55.89 kB / 0.9837 GB, free: 15.79 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 4.656e-05/0.004325, allocations: 27.92 kB / 0.9837 GB, free: 15.76 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 5.083e-05/0.004376, allocations: 39.89 kB / 0.9838 GB, free: 15.72 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002089/0.004584, allocations: 187.4 kB / 0.9839 GB, free: 15.54 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.004587, allocations: 0 / 0.9839 GB, free: 15.54 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.412e-06/0.004588, allocations: 0 / 0.9839 GB, free: 15.54 MB / 0.948 GB Notification: Performance of Transformations before backend: time 3.938e-06/0.004592, allocations: 0 / 0.9839 GB, free: 15.54 MB / 0.948 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.0005838/0.005176, allocations: 486.6 kB / 0.9844 GB, free: 15.02 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.005215, allocations: 12.02 kB / 0.9844 GB, free: 15 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.128e-05/0.005246, allocations: 38.75 kB / 0.9844 GB, free: 14.96 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.903e-05/0.005285, allocations: 16.84 kB / 0.9845 GB, free: 14.94 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001731/0.005458, allocations: 161.5 kB / 0.9846 GB, free: 14.76 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.00547, allocations: 4.375 kB / 0.9846 GB, free: 14.75 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.49e-05/0.005485, allocations: 16.38 kB / 0.9846 GB, free: 14.74 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002254/0.00571, allocations: 135.8 kB / 0.9848 GB, free: 14.59 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.005717, allocations: 192 / 0.9848 GB, free: 14.59 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.005729, allocations: 4.125 kB / 0.9848 GB, free: 14.59 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.005735, allocations: 4 kB / 0.9848 GB, free: 14.59 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001314/0.005866, allocations: 67.92 kB / 0.9848 GB, free: 14.52 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004435/0.00631, allocations: 423.8 kB / 0.9852 GB, free: 14.06 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001189/0.006429, allocations: 73.17 kB / 0.9853 GB, free: 13.97 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.302e-05/0.006502, allocations: 49.75 kB / 0.9854 GB, free: 13.91 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.16e-05/0.006523, allocations: 4 kB / 0.9854 GB, free: 13.91 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004757/0.006999, allocations: 145 kB / 0.9855 GB, free: 13.75 MB / 0.948 GB Notification: Performance of pre-optimization done (n=12): time 1.213e-06/0.007, allocations: 0 / 0.9855 GB, free: 13.75 MB / 0.948 GB Notification: Performance of matching and sorting (n=12): time 0.0003622/0.007362, allocations: 193.3 kB / 0.9857 GB, free: 13.55 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/0.007404, allocations: 81.11 kB / 0.9858 GB, free: 13.46 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.632e-05/0.0075, allocations: 171.2 kB / 0.9859 GB, free: 13.28 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.863e-05/0.007519, allocations: 29.7 kB / 0.986 GB, free: 13.25 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.973e-05/0.007568, allocations: 112.4 kB / 0.9861 GB, free: 13.13 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.631e-05/0.007595, allocations: 27.81 kB / 0.9861 GB, free: 13.1 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.036e-05/0.007635, allocations: 37.7 kB / 0.9861 GB, free: 13.06 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.623e-05/0.007711, allocations: 326.8 kB / 0.9864 GB, free: 12.73 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.173e-05/0.007783, allocations: 44 kB / 0.9865 GB, free: 12.69 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/0.007913, allocations: 202.2 kB / 0.9867 GB, free: 12.44 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001699/0.008083, allocations: 151.5 kB / 0.9868 GB, free: 12.26 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.008085, allocations: 0 / 0.9868 GB, free: 12.26 MB / 0.948 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002158/0.008301, allocations: 165.3 kB / 0.987 GB, free: 12.09 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.008315, allocations: 8 kB / 0.987 GB, free: 12.09 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.008321, allocations: 0 / 0.987 GB, free: 12.09 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.008334, allocations: 4 kB / 0.987 GB, free: 12.08 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.105e-05/0.008405, allocations: 15.98 kB / 0.987 GB, free: 12.07 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.008412, allocations: 4.219 kB / 0.987 GB, free: 12.06 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.429e-05/0.008466, allocations: 23.98 kB / 0.987 GB, free: 12.04 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.265e-06/0.008475, allocations: 4 kB / 0.987 GB, free: 12.04 MB / 0.948 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 8.574e-05/0.00856, allocations: 138.3 kB / 0.9872 GB, free: 11.89 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.704e-05/0.008577, allocations: 15.91 kB / 0.9872 GB, free: 11.88 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.879e-05/0.008616, allocations: 21.45 kB / 0.9872 GB, free: 11.86 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.008618, allocations: 0 / 0.9872 GB, free: 11.86 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.008623, allocations: 4 kB / 0.9872 GB, free: 11.85 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.008628, allocations: 4 kB / 0.9872 GB, free: 11.85 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004451/0.009073, allocations: 0.4928 MB / 0.9877 GB, free: 11.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.009075, allocations: 0 / 0.9877 GB, free: 11.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.263e-05/0.009128, allocations: 15.98 kB / 0.9877 GB, free: 11.29 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.009131, allocations: 0 / 0.9877 GB, free: 11.29 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.009141, allocations: 0 / 0.9877 GB, free: 11.29 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.009146, allocations: 12.34 kB / 0.9877 GB, free: 11.28 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.009147, allocations: 0 / 0.9877 GB, free: 11.28 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003172/0.009465, allocations: 330.8 kB / 0.988 GB, free: 10.94 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.323e-05/0.009478, allocations: 19.78 kB / 0.9881 GB, free: 10.92 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.495e-05/0.009493, allocations: 4 kB / 0.9881 GB, free: 10.91 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.892e-05/0.009592, allocations: 23.91 kB / 0.9881 GB, free: 10.89 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.35e-05/0.009635, allocations: 11.97 kB / 0.9881 GB, free: 10.88 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.074e-05/0.009666, allocations: 8 kB / 0.9881 GB, free: 10.87 MB / 0.948 GB Notification: Performance of sorting global known variables: time 5.757e-05/0.009723, allocations: 115.2 kB / 0.9882 GB, free: 10.76 MB / 0.948 GB Notification: Performance of sort global known variables: time 7e-08/0.009724, allocations: 0 / 0.9882 GB, free: 10.76 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002415/0.009965, allocations: 47.92 kB / 0.9883 GB, free: 10.71 MB / 0.948 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.0006523/0.01062, allocations: 0.9439 MB / 0.9892 GB, free: 9.773 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002137/0.01083, allocations: 103.8 kB / 0.9893 GB, free: 9.672 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.01083, allocations: 0 / 0.9893 GB, free: 9.672 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 8.742e-05/0.01092, allocations: 56.47 kB / 0.9893 GB, free: 9.617 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/0.01118, allocations: 23.86 kB / 0.9894 GB, free: 9.594 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001486/0.01267, allocations: 1.911 MB / 0.9912 GB, free: 7.539 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.35e-05/0.01274, allocations: 98.27 kB / 0.9913 GB, free: 7.422 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 5.218e-05/0.0128, allocations: 16.48 kB / 0.9913 GB, free: 7.406 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.005e-05/0.01285, allocations: 44.48 kB / 0.9914 GB, free: 7.363 MB / 0.948 GB Notification: Performance of SimCode: time 5.11e-07/0.01285, allocations: 0 / 0.9914 GB, free: 7.363 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01681/0.02966, allocations: 4.199 MB / 0.9955 GB, free: 3.332 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.876/6.906, allocations: 11.11 kB / 0.9955 GB, free: 3.324 MB / 0.948 GB " [Timeout remaining time 293] (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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable pri1.x[1] in file Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.csv. Warning: Get data of variable pri1.x[1] from file Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.csv failed! Error: Could not read variable pri1.x[2] in file Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.csv. Warning: Get data of variable pri1.x[2] from file Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.114725476130843]