Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.591/2.591, allocations: 287.5 MB / 302.4 MB, free: 8.188 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00208/0.002079, allocations: 174 kB / 371 MB, free: 10.87 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.238/2.238, allocations: 205.4 MB / 0.6297 GB, free: 10.62 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001353/0.001353, allocations: 84.59 kB / 0.743 GB, free: 6.617 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006733/0.0006736, allocations: 11.64 kB / 0.8659 GB, free: 140.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2619, allocations: 115.3 MB / 0.9785 GB, free: 28.27 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001918/0.2639, allocations: 1.277 MB / 0.9797 GB, free: 26.98 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001554/0.2655, allocations: 0.688 MB / 0.9804 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.11e-05/0.2656, allocations: 7.938 kB / 0.9804 GB, free: 26.28 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001033/0.2657, allocations: 11.86 kB / 0.9804 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.953e-05/0.2658, allocations: 19.86 kB / 0.9804 GB, free: 26.25 MB / 0.6198 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0005149/0.2663, allocations: 87.83 kB / 0.9805 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001898/0.2665, allocations: 119.5 kB / 0.9806 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001399/0.2667, allocations: 29.11 kB / 0.9806 GB, free: 26.01 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.744e-05/0.2668, allocations: 47.83 kB / 0.9807 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 9.151e-05/0.2669, allocations: 51.7 kB / 0.9807 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.564e-05/0.2669, allocations: 4 kB / 0.9807 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001451/0.2671, allocations: 47.95 kB / 0.9808 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.28e-05/0.2671, allocations: 23.91 kB / 0.9808 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.484e-05/0.2672, allocations: 45.64 kB / 0.9809 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001889/0.2674, allocations: 108 kB / 0.981 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.2674, allocations: 3.938 kB / 0.981 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.763e-06/0.2674, allocations: 0 / 0.981 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.2674, allocations: 0 / 0.981 GB, free: 25.68 MB / 0.6198 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.0009792/0.2684, allocations: 0.5273 MB / 0.9815 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.2685, allocations: 16.02 kB / 0.9815 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.604e-05/0.2685, allocations: 34.55 kB / 0.9815 GB, free: 25.03 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.695e-05/0.2686, allocations: 27.77 kB / 0.9815 GB, free: 25 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000213/0.2688, allocations: 218.7 kB / 0.9818 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.83e-05/0.2689, allocations: 4 kB / 0.9818 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.855e-05/0.2689, allocations: 8 kB / 0.9818 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004231/0.2693, allocations: 135.3 kB / 0.9819 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.2694, allocations: 0 / 0.9819 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.028e-05/0.2694, allocations: 3.984 kB / 0.9819 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.2694, allocations: 0 / 0.9819 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000396/0.2698, allocations: 87.88 kB / 0.982 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007757/0.2706, allocations: 468.7 kB / 0.9824 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000292/0.2709, allocations: 93.11 kB / 0.9825 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000221/0.2712, allocations: 57.81 kB / 0.9826 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.517e-05/0.2712, allocations: 4 kB / 0.9826 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004589/0.2717, allocations: 160.8 kB / 0.9827 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=12): time 2.515e-06/0.2717, allocations: 0 / 0.9827 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12): time 0.0008642/0.2726, allocations: 209.6 kB / 0.9829 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.275e-05/0.2726, allocations: 85.11 kB / 0.983 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001421/0.2728, allocations: 158.8 kB / 0.9832 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.889e-05/0.2728, allocations: 37.81 kB / 0.9832 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.287e-05/0.2729, allocations: 116.2 kB / 0.9833 GB, free: 23 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.986e-05/0.2729, allocations: 27.64 kB / 0.9833 GB, free: 22.97 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.957e-06/0.273, allocations: 0 / 0.9833 GB, free: 22.97 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.827e-05/0.273, allocations: 326.8 kB / 0.9837 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002033/0.2732, allocations: 39.97 kB / 0.9837 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002606/0.2735, allocations: 122.3 kB / 0.9838 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002337/0.2738, allocations: 63.91 kB / 0.9839 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.2738, allocations: 0 / 0.9839 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005704/0.2744, allocations: 181.4 kB / 0.984 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.2744, allocations: 11.95 kB / 0.9841 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.2744, allocations: 0 / 0.9841 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.634e-05/0.2745, allocations: 4 kB / 0.9841 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001681/0.2746, allocations: 23.97 kB / 0.9841 GB, free: 22.16 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.2747, allocations: 3.938 kB / 0.9841 GB, free: 22.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001635/0.2748, allocations: 20.11 kB / 0.9841 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.832e-05/0.2749, allocations: 12 kB / 0.9841 GB, free: 22.13 MB / 0.6198 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.0001478/0.275, allocations: 131.2 kB / 0.9842 GB, free: 21.99 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.679e-05/0.2751, allocations: 15.81 kB / 0.9843 GB, free: 21.98 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.749e-05/0.2751, allocations: 25.34 kB / 0.9843 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.2752, allocations: 0 / 0.9843 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.841e-05/0.2752, allocations: 4 kB / 0.9843 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.2752, allocations: 4 kB / 0.9843 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000977/0.2762, allocations: 0.5602 MB / 0.9848 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.2762, allocations: 0 / 0.9848 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001282/0.2764, allocations: 19.92 kB / 0.9849 GB, free: 21.31 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.2764, allocations: 0 / 0.9849 GB, free: 21.31 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.704e-05/0.2764, allocations: 8 kB / 0.9849 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.2764, allocations: 0 / 0.9849 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.2764, allocations: 0 / 0.9849 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005724/0.277, allocations: 334.5 kB / 0.9852 GB, free: 20.96 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.682e-05/0.2771, allocations: 89.16 kB / 0.9853 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.993e-05/0.2771, allocations: 4 kB / 0.9853 GB, free: 20.85 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002742/0.2774, allocations: 31.91 kB / 0.9853 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.944e-05/0.2775, allocations: 15.92 kB / 0.9853 GB, free: 20.8 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.906e-05/0.2775, allocations: 8 kB / 0.9853 GB, free: 20.8 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 9.435e-05/0.2776, allocations: 120.2 kB / 0.9854 GB, free: 20.68 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.71e-07/0.2776, allocations: 0 / 0.9854 GB, free: 20.68 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000457/0.2781, allocations: 39.98 kB / 0.9855 GB, free: 20.64 MB / 0.6198 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.001216/0.2793, allocations: 0.9673 MB / 0.9864 GB, free: 19.68 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005936/0.28, allocations: 120.3 kB / 0.9865 GB, free: 19.57 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.28, allocations: 0 / 0.9865 GB, free: 19.57 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002569/0.2802, allocations: 59.91 kB / 0.9866 GB, free: 19.51 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004926/0.2807, allocations: 15.98 kB / 0.9866 GB, free: 19.49 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001924/0.2827, allocations: 0.8605 MB / 0.9874 GB, free: 18.55 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001788/0.2829, allocations: 0.716 MB / 0.9881 GB, free: 17.81 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001127/0.283, allocations: 20.53 kB / 0.9882 GB, free: 17.79 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.694e-05/0.2831, allocations: 35.5 kB / 0.9882 GB, free: 17.75 MB / 0.6198 GB Notification: Performance of SimCode: time 1.122e-06/0.2831, allocations: 0 / 0.9882 GB, free: 17.75 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02544/0.3086, allocations: 3.036 MB / 0.9912 GB, free: 14.85 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000252/0.3089, allocations: 232.5 kB / 0.9914 GB, free: 14.6 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.685/2.994, allocations: 0.5 kB / 0.9914 GB, free: 14.6 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)