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.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.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001578/0.001579, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001548/0.001548, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.366/2.366, allocations: 223.2 MB / 239.9 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.374/4.374, allocations: 409.2 MB / 0.6838 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006032/0.0006035, allocations: 8 kB / 0.8375 GB, free: 6.57 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.352/1.353, allocations: 146.8 MB / 0.9809 GB, free: 6.34 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.00311/1.356, allocations: 1.276 MB / 0.9821 GB, free: 5.059 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002144/1.358, allocations: 0.6629 MB / 0.9828 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.382e-05/1.359, allocations: 0 / 0.9828 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001241/1.359, allocations: 7.922 kB / 0.9828 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001043/1.359, allocations: 19.91 kB / 0.9828 GB, free: 4.359 MB / 0.7325 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-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.0006997/1.36, allocations: 91.7 kB / 0.9829 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002776/1.36, allocations: 91.81 kB / 0.983 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001901/1.36, allocations: 33 kB / 0.983 GB, free: 4.148 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001345/1.36, allocations: 43.83 kB / 0.983 GB, free: 4.105 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001384/1.36, allocations: 51.77 kB / 0.9831 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.755e-05/1.36, allocations: 4 kB / 0.9831 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001596/1.361, allocations: 39.97 kB / 0.9831 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 8.679e-05/1.361, allocations: 23.91 kB / 0.9831 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.288e-05/1.361, allocations: 41.64 kB / 0.9832 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002888/1.361, allocations: 110 kB / 0.9833 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/1.361, allocations: 0 / 0.9833 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.775e-06/1.361, allocations: 0 / 0.9833 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.117e-05/1.361, allocations: 0 / 0.9833 GB, free: 3.836 MB / 0.7325 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.001433/1.363, allocations: 0.5311 MB / 0.9838 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.372e-05/1.363, allocations: 8.031 kB / 0.9838 GB, free: 3.23 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.525e-05/1.363, allocations: 42.55 kB / 0.9839 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.553e-05/1.363, allocations: 15.81 kB / 0.9839 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003733/1.363, allocations: 222.7 kB / 0.9841 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.88e-05/1.363, allocations: 8 kB / 0.9841 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.303e-05/1.363, allocations: 4 kB / 0.9841 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005971/1.364, allocations: 145.8 kB / 0.9842 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/1.364, allocations: 0 / 0.9842 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.724e-05/1.364, allocations: 8 kB / 0.9842 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/1.364, allocations: 0 / 0.9842 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004972/1.365, allocations: 79.94 kB / 0.9843 GB, free: 2.656 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001187/1.366, allocations: 468.7 kB / 0.9848 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004045/1.366, allocations: 89.17 kB / 0.9848 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.26e-05/1.366, allocations: 7.938 kB / 0.9849 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006048/1.367, allocations: 157.1 kB / 0.985 GB, free: 1.859 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=12): time 2.405e-06/1.367, allocations: 0 / 0.985 GB, free: 1.859 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12): time 0.001135/1.368, allocations: 213.3 kB / 0.9852 GB, free: 1.645 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.867e-05/1.368, allocations: 81.22 kB / 0.9853 GB, free: 1.547 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002478/1.368, allocations: 162.8 kB / 0.9854 GB, free: 1.379 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.837e-05/1.368, allocations: 33.69 kB / 0.9855 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000141/1.369, allocations: 116.2 kB / 0.9856 GB, free: 1.219 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.844e-05/1.369, allocations: 27.7 kB / 0.9856 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.059e-05/1.369, allocations: 0 / 0.9856 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002131/1.369, allocations: 330.8 kB / 0.9859 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002587/1.369, allocations: 43.97 kB / 0.986 GB, free: 0.8164 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003861/1.37, allocations: 122.3 kB / 0.9861 GB, free: 0.6602 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003052/1.37, allocations: 59.91 kB / 0.9861 GB, free: 0.6016 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/1.37, allocations: 0 / 0.9861 GB, free: 0.6016 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007815/1.371, allocations: 177.4 kB / 0.9863 GB, free: 432 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.547e-05/1.371, allocations: 11.98 kB / 0.9863 GB, free: 420 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/1.371, allocations: 0 / 0.9863 GB, free: 420 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.604e-05/1.371, allocations: 4 kB / 0.9863 GB, free: 416 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002092/1.371, allocations: 27.92 kB / 0.9864 GB, free: 388 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/1.371, allocations: 160 / 0.9864 GB, free: 388 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002188/1.371, allocations: 19.98 kB / 0.9864 GB, free: 368 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.539e-05/1.371, allocations: 8 kB / 0.9864 GB, free: 360 kB / 0.7325 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 ($PRE.pri2.firstTrigger,pri2.firstTrigger,$PRE.pri1.firstTrigger,pri1.firstTrigger,$whenCondition4,$whenCondition2,pri1.sampleTrigger,$whenCondition3,pri2.sampleTrigger,$PRE.pri3.firstTrigger,pri3.firstTrigger,$whenCondition1,pri3.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002378/1.372, allocations: 138 kB / 0.9865 GB, free: 212 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.773e-05/1.372, allocations: 19.8 kB / 0.9865 GB, free: 192 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.729e-05/1.372, allocations: 13.41 kB / 0.9865 GB, free: 180 kB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/1.372, allocations: 4 kB / 0.9865 GB, free: 176 kB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/1.372, allocations: 7.938 kB / 0.9866 GB, free: 168 kB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/1.372, allocations: 0 / 0.9866 GB, free: 168 kB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001481/1.373, allocations: 0.5484 MB / 0.9871 GB, free: 15.56 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/1.373, allocations: 4 kB / 0.9871 GB, free: 15.55 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000151/1.374, allocations: 15.98 kB / 0.9871 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/1.374, allocations: 0 / 0.9871 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/1.374, allocations: 3.984 kB / 0.9871 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.444e-06/1.374, allocations: 4 kB / 0.9871 GB, free: 15.53 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/1.374, allocations: 0 / 0.9871 GB, free: 15.53 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009619/1.375, allocations: 352.1 kB / 0.9875 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 9.831e-05/1.375, allocations: 92.92 kB / 0.9875 GB, free: 15.05 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.087e-05/1.375, allocations: 4 kB / 0.9875 GB, free: 15.05 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003711/1.375, allocations: 23.97 kB / 0.9876 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.68e-05/1.375, allocations: 11.98 kB / 0.9876 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.989e-05/1.375, allocations: 7.953 kB / 0.9876 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001663/1.376, allocations: 125.2 kB / 0.9877 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of sort global known variables: time 4.51e-07/1.376, allocations: 4 kB / 0.9877 GB, free: 14.88 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0007542/1.376, allocations: 39.98 kB / 0.9877 GB, free: 14.84 MB / 0.7481 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002156/1.379, allocations: 1.055 MB / 0.9888 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0007375/1.379, allocations: 127.7 kB / 0.9889 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/1.379, allocations: 0 / 0.9889 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0003298/1.38, allocations: 64.45 kB / 0.989 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004782/1.38, allocations: 23.84 kB / 0.989 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003864/1.384, allocations: 2.045 MB / 0.991 GB, free: 11.45 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005977/1.385, allocations: 0.716 MB / 0.9917 GB, free: 10.71 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001529/1.385, allocations: 28.47 kB / 0.9917 GB, free: 10.68 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/1.385, allocations: 39.48 kB / 0.9917 GB, free: 10.64 MB / 0.7481 GB Notification: Performance of SimCode: time 8.81e-07/1.385, allocations: 0 / 0.9917 GB, free: 10.64 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02667/1.412, allocations: 3.005 MB / 0.9947 GB, free: 7.77 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003794/1.412, allocations: 218.6 kB / 0.9949 GB, free: 7.531 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.107/4.519, allocations: 2.625 kB / 0.9949 GB, free: 7.531 MB / 0.7481 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat does not exist to compare? outputFormat=mat