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.0008301/0.0008302, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.0008213/0.0008213, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 223.3 MB / 240 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.41/2.41, allocations: 409.4 MB / 0.684 GB, free: 0.918 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003154/0.0003156, allocations: 12 kB / 0.8378 GB, free: 6.5 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5699/0.5702, allocations: 146.8 MB / 0.9811 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001538/0.5718, allocations: 1.28 MB / 0.9824 GB, free: 4.945 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001027/0.5728, allocations: 0.6551 MB / 0.983 GB, free: 4.281 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.17e-05/0.5729, allocations: 0 / 0.983 GB, free: 4.281 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 7.98e-05/0.573, allocations: 7.875 kB / 0.983 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.319e-05/0.5731, allocations: 19.84 kB / 0.9831 GB, free: 4.254 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.0003858/0.5734, allocations: 91.83 kB / 0.9831 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000153/0.5736, allocations: 123.5 kB / 0.9833 GB, free: 4.043 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.5737, allocations: 36.98 kB / 0.9833 GB, free: 4.008 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.713e-05/0.5738, allocations: 39.84 kB / 0.9833 GB, free: 3.969 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.816e-05/0.5739, allocations: 55.75 kB / 0.9834 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.846e-05/0.5739, allocations: 8 kB / 0.9834 GB, free: 3.906 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001031/0.574, allocations: 43.89 kB / 0.9834 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.778e-05/0.5741, allocations: 27.92 kB / 0.9835 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.622e-05/0.5741, allocations: 41.64 kB / 0.9835 GB, free: 3.789 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001549/0.5743, allocations: 110 kB / 0.9836 GB, free: 3.684 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.5743, allocations: 0 / 0.9836 GB, free: 3.684 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.426e-06/0.5743, allocations: 4 kB / 0.9836 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 3.898e-06/0.5743, allocations: 3.938 kB / 0.9836 GB, free: 3.676 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.0007238/0.5751, allocations: 0.5272 MB / 0.9841 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.5751, allocations: 12.02 kB / 0.9841 GB, free: 3.07 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.211e-05/0.5752, allocations: 38.56 kB / 0.9842 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.121e-05/0.5752, allocations: 15.81 kB / 0.9842 GB, free: 3.008 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002097/0.5754, allocations: 214.8 kB / 0.9844 GB, free: 2.758 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.5754, allocations: 8 kB / 0.9844 GB, free: 2.75 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.081e-05/0.5755, allocations: 11.98 kB / 0.9844 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003033/0.5758, allocations: 135.2 kB / 0.9845 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.5758, allocations: 0 / 0.9845 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.622e-05/0.5758, allocations: 8 kB / 0.9846 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.5758, allocations: 4 kB / 0.9846 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002358/0.5761, allocations: 75.94 kB / 0.9846 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006003/0.5767, allocations: 472.7 kB / 0.9851 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002002/0.5769, allocations: 93.12 kB / 0.9852 GB, free: 1.883 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001337/0.577, allocations: 53.92 kB / 0.9852 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.306e-05/0.5771, allocations: 11.92 kB / 0.9852 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002938/0.5774, allocations: 157 kB / 0.9854 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=12): time 1.373e-06/0.5774, allocations: 0 / 0.9854 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12): time 0.0005467/0.5779, allocations: 205.3 kB / 0.9856 GB, free: 1.434 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.555e-05/0.578, allocations: 81.11 kB / 0.9857 GB, free: 1.336 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001293/0.5781, allocations: 158.9 kB / 0.9858 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.5782, allocations: 33.7 kB / 0.9858 GB, free: 1.133 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.24e-05/0.5782, allocations: 112.2 kB / 0.9859 GB, free: 1.016 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.839e-05/0.5783, allocations: 19.72 kB / 0.986 GB, free: 0.9961 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.123e-06/0.5783, allocations: 8 kB / 0.986 GB, free: 0.9883 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001168/0.5784, allocations: 334.8 kB / 0.9863 GB, free: 0.6523 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001278/0.5785, allocations: 39.97 kB / 0.9863 GB, free: 0.6133 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000181/0.5787, allocations: 126.2 kB / 0.9864 GB, free: 464 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000142/0.5789, allocations: 55.97 kB / 0.9865 GB, free: 408 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.5789, allocations: 0 / 0.9865 GB, free: 408 kB / 0.7325 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003662/0.5793, allocations: 181.2 kB / 0.9867 GB, free: 220 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.5793, allocations: 9.5 kB / 0.9867 GB, free: 212 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.5793, allocations: 8.656 kB / 0.9867 GB, free: 204 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.5793, allocations: 4 kB / 0.9867 GB, free: 200 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.5794, allocations: 15.98 kB / 0.9867 GB, free: 184 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.5795, allocations: 4 kB / 0.9867 GB, free: 180 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.901e-05/0.5796, allocations: 23.92 kB / 0.9867 GB, free: 156 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.107e-05/0.5796, allocations: 4 kB / 0.9867 GB, free: 152 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.0001147/0.5797, allocations: 142.3 kB / 0.9869 GB, free: 0 / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.072e-05/0.5797, allocations: 20.05 kB / 0.9869 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.643e-05/0.5798, allocations: 25.33 kB / 0.9869 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.5798, allocations: 7.938 kB / 0.9869 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.5798, allocations: 4 kB / 0.9869 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.5798, allocations: 0 / 0.9869 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006825/0.5805, allocations: 0.5445 MB / 0.9875 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.5805, allocations: 0 / 0.9875 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.632e-05/0.5806, allocations: 19.98 kB / 0.9875 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.5806, allocations: 8 kB / 0.9875 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.5807, allocations: 0 / 0.9875 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.5807, allocations: 0 / 0.9875 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.5807, allocations: 3.938 kB / 0.9875 GB, free: 15.31 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003986/0.5811, allocations: 334.5 kB / 0.9878 GB, free: 14.97 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.118e-05/0.5811, allocations: 92.91 kB / 0.9879 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.182e-05/0.5812, allocations: 4 kB / 0.9879 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001769/0.5813, allocations: 19.98 kB / 0.9879 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.491e-05/0.5814, allocations: 15.98 kB / 0.9879 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.078e-05/0.5814, allocations: 7.984 kB / 0.9879 GB, free: 14.81 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 8.207e-05/0.5815, allocations: 125.2 kB / 0.9881 GB, free: 14.69 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5815, allocations: 3.938 kB / 0.9881 GB, free: 14.69 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003477/0.5819, allocations: 36 kB / 0.9881 GB, free: 14.65 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.0009546/0.5828, allocations: 0.9671 MB / 0.989 GB, free: 13.7 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003501/0.5832, allocations: 124.2 kB / 0.9892 GB, free: 13.57 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.72e-06/0.5832, allocations: 4.125 kB / 0.9892 GB, free: 13.57 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001675/0.5834, allocations: 67.83 kB / 0.9892 GB, free: 13.5 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.5838, allocations: 19.91 kB / 0.9893 GB, free: 13.48 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001391/0.5852, allocations: 0.8607 MB / 0.9901 GB, free: 12.55 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002612/0.5855, allocations: 0.716 MB / 0.9908 GB, free: 11.8 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 7.505e-05/0.5855, allocations: 20.53 kB / 0.9908 GB, free: 11.79 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.88e-05/0.5856, allocations: 39.48 kB / 0.9909 GB, free: 11.75 MB / 0.7481 GB Notification: Performance of SimCode: time 3.5e-07/0.5856, allocations: 0 / 0.9909 GB, free: 11.75 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01315/0.5988, allocations: 3.035 MB / 0.9938 GB, free: 8.848 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001669/0.599, allocations: 226.2 kB / 0.994 GB, free: 8.605 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.763/2.361, allocations: 0 / 0.994 GB, free: 8.605 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