Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001112/0.001112, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.001255/0.001255, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.8882/0.8882, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.822/1.822, allocations: 389 MB / 0.633 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 0 / 0.9996 GB, free: 13.54 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.442e-05/2.646e-05, allocations: 2.281 kB / 0.9996 GB, free: 13.53 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003096/0.003122, allocations: 1.572 MB / 1.001 GB, free: 11.95 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001917/0.005039, allocations: 0.7292 MB / 1.002 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.763e-05/0.005137, allocations: 7.875 kB / 1.002 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001571/0.005294, allocations: 19.86 kB / 1.002 GB, free: 11.19 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.821e-05/0.005362, allocations: 15.75 kB / 1.002 GB, free: 11.17 MB / 0.9636 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.0007475/0.00611, allocations: 111.7 kB / 1.002 GB, free: 11.06 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.000233/0.006343, allocations: 143.5 kB / 1.002 GB, free: 10.92 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.006504, allocations: 25.23 kB / 1.002 GB, free: 10.89 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.006647, allocations: 79.8 kB / 1.002 GB, free: 10.82 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 9.611e-05/0.006743, allocations: 47.88 kB / 1.002 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.881e-05/0.006772, allocations: 12 kB / 1.002 GB, free: 10.76 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001322/0.006904, allocations: 51.89 kB / 1.002 GB, free: 10.71 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 6.197e-05/0.006966, allocations: 31.91 kB / 1.002 GB, free: 10.68 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 6.872e-05/0.007035, allocations: 39.91 kB / 1.002 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002928/0.007327, allocations: 191.4 kB / 1.003 GB, free: 10.45 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.007331, allocations: 0 / 1.003 GB, free: 10.45 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.393e-06/0.007332, allocations: 0 / 1.003 GB, free: 10.45 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.007337, allocations: 0 / 1.003 GB, free: 10.45 MB / 0.9636 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.000846/0.008183, allocations: 490.6 kB / 1.003 GB, free: 9.922 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 6.119e-05/0.008244, allocations: 12.75 kB / 1.003 GB, free: 9.91 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.21e-05/0.008296, allocations: 38.73 kB / 1.003 GB, free: 9.863 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.347e-05/0.00837, allocations: 16.84 kB / 1.003 GB, free: 9.848 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002682/0.008638, allocations: 149.5 kB / 1.003 GB, free: 9.676 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.852e-05/0.008666, allocations: 16.34 kB / 1.003 GB, free: 9.66 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.256e-05/0.008689, allocations: 8.375 kB / 1.003 GB, free: 9.652 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003829/0.009072, allocations: 131.9 kB / 1.003 GB, free: 9.512 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.009086, allocations: 4.188 kB / 1.003 GB, free: 9.508 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.127e-05/0.009107, allocations: 4.125 kB / 1.003 GB, free: 9.504 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.009115, allocations: 4 kB / 1.003 GB, free: 9.5 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002058/0.009321, allocations: 71.81 kB / 1.004 GB, free: 9.43 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006748/0.009996, allocations: 411.9 kB / 1.004 GB, free: 8.98 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001753/0.01017, allocations: 85.12 kB / 1.004 GB, free: 8.879 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001032/0.01027, allocations: 45.81 kB / 1.004 GB, free: 8.828 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.0103, allocations: 3.984 kB / 1.004 GB, free: 8.824 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002794/0.01058, allocations: 144.9 kB / 1.004 GB, free: 8.664 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=12): time 2.004e-06/0.01058, allocations: 0 / 1.004 GB, free: 8.664 MB / 0.9636 GB Notification: Performance of matching and sorting (n=12): time 0.0004899/0.01107, allocations: 193.8 kB / 1.004 GB, free: 8.469 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.166e-05/0.01112, allocations: 81.05 kB / 1.004 GB, free: 8.371 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.01125, allocations: 160.4 kB / 1.005 GB, free: 8.207 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/0.01128, allocations: 37.64 kB / 1.005 GB, free: 8.164 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 6.845e-05/0.01135, allocations: 112.3 kB / 1.005 GB, free: 8.047 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 4.431e-05/0.01139, allocations: 31.78 kB / 1.005 GB, free: 8.016 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003364/0.01173, allocations: 33.7 kB / 1.005 GB, free: 7.977 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001014/0.01183, allocations: 330.8 kB / 1.005 GB, free: 7.645 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.01193, allocations: 35.97 kB / 1.005 GB, free: 7.609 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001809/0.01211, allocations: 202 kB / 1.005 GB, free: 7.359 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002344/0.01235, allocations: 143.5 kB / 1.005 GB, free: 7.191 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.01235, allocations: 4 kB / 1.006 GB, free: 7.188 MB / 0.9636 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003027/0.01265, allocations: 169.6 kB / 1.006 GB, free: 7.016 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.01267, allocations: 7.938 kB / 1.006 GB, free: 7.008 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.01268, allocations: 4 kB / 1.006 GB, free: 7.004 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.0127, allocations: 0 / 1.006 GB, free: 7.004 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.289e-05/0.01279, allocations: 23.91 kB / 1.006 GB, free: 6.98 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.0128, allocations: 4 kB / 1.006 GB, free: 6.977 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.66e-05/0.01289, allocations: 15.92 kB / 1.006 GB, free: 6.961 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.0129, allocations: 8 kB / 1.006 GB, free: 6.953 MB / 0.9636 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.0001116/0.01302, allocations: 133.8 kB / 1.006 GB, free: 6.812 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.635e-05/0.01304, allocations: 19.91 kB / 1.006 GB, free: 6.793 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.42e-05/0.0131, allocations: 21.45 kB / 1.006 GB, free: 6.77 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.0131, allocations: 4 kB / 1.006 GB, free: 6.766 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.01311, allocations: 0 / 1.006 GB, free: 6.766 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.01311, allocations: 0 / 1.006 GB, free: 6.766 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006123/0.01372, allocations: 0.4891 MB / 1.006 GB, free: 6.227 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.01373, allocations: 4 kB / 1.006 GB, free: 6.223 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.256e-05/0.01379, allocations: 19.98 kB / 1.006 GB, free: 6.203 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.01379, allocations: 0 / 1.006 GB, free: 6.203 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.01381, allocations: 7.984 kB / 1.006 GB, free: 6.195 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.137e-06/0.01381, allocations: 3.938 kB / 1.006 GB, free: 6.191 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.01381, allocations: 0 / 1.006 GB, free: 6.191 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003381/0.01415, allocations: 322.5 kB / 1.007 GB, free: 5.859 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.677e-05/0.01417, allocations: 7.953 kB / 1.007 GB, free: 5.852 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.164e-05/0.01419, allocations: 12 kB / 1.007 GB, free: 5.84 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001509/0.01434, allocations: 23.91 kB / 1.007 GB, free: 5.816 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.466e-05/0.01438, allocations: 12.08 kB / 1.007 GB, free: 5.805 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.598e-05/0.01442, allocations: 11.94 kB / 1.007 GB, free: 5.793 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 8.344e-05/0.0145, allocations: 128.2 kB / 1.007 GB, free: 5.668 MB / 0.9636 GB Notification: Performance of sort global known variables: time 7.1e-08/0.0145, allocations: 0 / 1.007 GB, free: 5.668 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0003867/0.01489, allocations: 39.89 kB / 1.007 GB, free: 5.629 MB / 0.9636 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.0008969/0.01579, allocations: 0.9423 MB / 1.008 GB, free: 4.699 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002904/0.01608, allocations: 107.8 kB / 1.008 GB, free: 4.594 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.01608, allocations: 0 / 1.008 GB, free: 4.594 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0001199/0.0162, allocations: 51.89 kB / 1.008 GB, free: 4.543 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000395/0.01659, allocations: 31.77 kB / 1.008 GB, free: 4.512 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001994/0.01859, allocations: 1.909 MB / 1.01 GB, free: 2.469 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.658e-05/0.01868, allocations: 102.3 kB / 1.01 GB, free: 2.34 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 8.002e-05/0.01876, allocations: 20.47 kB / 1.01 GB, free: 2.32 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.568e-05/0.01883, allocations: 40.48 kB / 1.01 GB, free: 2.281 MB / 0.9636 GB Notification: Performance of SimCode: time 7.31e-07/0.01883, allocations: 0 / 1.01 GB, free: 2.281 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01934/0.03817, allocations: 4.21 MB / 1.014 GB, free: 14.22 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.246/7.284, allocations: 2.672 kB / 1.014 GB, free: 14.22 MB / 0.9792 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.csv. Warning: Get data of variable pri1.x[1] from file Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.csv failed! Error: Could not read variable pri1.x[2] in file Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.csv. Warning: Get data of variable pri1.x[2] from file Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.516760130412877]