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.582/2.582, allocations: 287.3 MB / 302.3 MB, free: 8.289 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.001585/0.001584, allocations: 174.3 kB / 370.8 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.285/2.285, allocations: 205.4 MB / 0.6295 GB, free: 10.61 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.001361/0.001361, allocations: 103.8 kB / 0.7428 GB, free: 6.605 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007118/0.000712, allocations: 10.53 kB / 0.8657 GB, free: 140.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.231/0.2318, allocations: 115.3 MB / 0.9783 GB, free: 28.29 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001898/0.2337, allocations: 1.269 MB / 0.9795 GB, free: 27 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001559/0.2354, allocations: 0.6958 MB / 0.9802 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.873e-05/0.2355, allocations: 0 / 0.9802 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001035/0.2356, allocations: 15.86 kB / 0.9802 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.629e-05/0.2357, allocations: 19.97 kB / 0.9802 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005441/0.2362, allocations: 95.75 kB / 0.9803 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001914/0.2365, allocations: 91.77 kB / 0.9804 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.2366, allocations: 29.09 kB / 0.9804 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.456e-05/0.2367, allocations: 47.83 kB / 0.9805 GB, free: 26 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 9.708e-05/0.2368, allocations: 47.77 kB / 0.9805 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.2369, allocations: 4 kB / 0.9805 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001521/0.237, allocations: 39.89 kB / 0.9806 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.616e-05/0.2371, allocations: 23.92 kB / 0.9806 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.799e-05/0.2372, allocations: 41.64 kB / 0.9806 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002175/0.2374, allocations: 112 kB / 0.9807 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.2374, allocations: 0 / 0.9807 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.863e-06/0.2374, allocations: 0 / 0.9807 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.2374, allocations: 0 / 0.9807 GB, free: 25.73 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.001048/0.2385, allocations: 0.535 MB / 0.9813 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.446e-05/0.2386, allocations: 12.02 kB / 0.9813 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.637e-05/0.2386, allocations: 38.56 kB / 0.9813 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.787e-05/0.2387, allocations: 19.77 kB / 0.9813 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000285/0.239, allocations: 210.8 kB / 0.9815 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.501e-05/0.2391, allocations: 7.984 kB / 0.9815 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.649e-05/0.2391, allocations: 8 kB / 0.9815 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004641/0.2396, allocations: 140.8 kB / 0.9817 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.2396, allocations: 0 / 0.9817 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.185e-05/0.2396, allocations: 4 kB / 0.9817 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.2396, allocations: 4 kB / 0.9817 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004111/0.2401, allocations: 79.88 kB / 0.9818 GB, free: 24.56 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008882/0.241, allocations: 476.7 kB / 0.9822 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003049/0.2413, allocations: 93.12 kB / 0.9823 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.096e-05/0.2414, allocations: 4 kB / 0.9823 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004712/0.2418, allocations: 164.9 kB / 0.9825 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=12): time 2.975e-06/0.2419, allocations: 4 kB / 0.9825 GB, free: 23.74 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12): time 0.0008999/0.2428, allocations: 205.4 kB / 0.9827 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.992e-05/0.2429, allocations: 81.11 kB / 0.9827 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001513/0.243, allocations: 170.8 kB / 0.9829 GB, free: 23.26 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.052e-05/0.2431, allocations: 25.7 kB / 0.9829 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.381e-05/0.2432, allocations: 112.3 kB / 0.983 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.075e-05/0.2432, allocations: 23.66 kB / 0.9831 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.06e-05/0.2432, allocations: 4 kB / 0.9831 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.211e-05/0.2433, allocations: 330.8 kB / 0.9834 GB, free: 22.76 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002133/0.2435, allocations: 43.97 kB / 0.9834 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002668/0.2438, allocations: 124.8 kB / 0.9835 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000241/0.2441, allocations: 59.91 kB / 0.9836 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/0.2441, allocations: 0 / 0.9836 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005849/0.2447, allocations: 177.2 kB / 0.9838 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.2447, allocations: 8 kB / 0.9838 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.2447, allocations: 4.234 kB / 0.9838 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.2448, allocations: 8 kB / 0.9838 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001636/0.2449, allocations: 19.98 kB / 0.9838 GB, free: 22.28 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.245, allocations: 3.938 kB / 0.9838 GB, free: 22.28 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001695/0.2451, allocations: 19.98 kB / 0.9838 GB, free: 22.26 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.61e-05/0.2452, allocations: 8 kB / 0.9838 GB, free: 22.25 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.0001459/0.2453, allocations: 134.2 kB / 0.984 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.696e-05/0.2454, allocations: 23.75 kB / 0.984 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.221e-05/0.2455, allocations: 21.38 kB / 0.984 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.2455, allocations: 3.953 kB / 0.984 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.2455, allocations: 0 / 0.984 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.2455, allocations: 0 / 0.984 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009841/0.2465, allocations: 0.5564 MB / 0.9846 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.2465, allocations: 3.953 kB / 0.9846 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001339/0.2467, allocations: 19.92 kB / 0.9846 GB, free: 21.43 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.114e-06/0.2467, allocations: 96 / 0.9846 GB, free: 21.43 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.2467, allocations: 11.94 kB / 0.9846 GB, free: 21.42 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/0.2467, allocations: 4 kB / 0.9846 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.2467, allocations: 0 / 0.9846 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006495/0.2474, allocations: 344.2 kB / 0.9849 GB, free: 21.05 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.448e-05/0.2475, allocations: 89 kB / 0.985 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.108e-05/0.2475, allocations: 0 / 0.985 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002975/0.2478, allocations: 27.98 kB / 0.985 GB, free: 20.92 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.787e-05/0.2479, allocations: 11.92 kB / 0.985 GB, free: 20.91 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.457e-05/0.248, allocations: 19.92 kB / 0.9851 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 9.963e-05/0.2481, allocations: 116.2 kB / 0.9852 GB, free: 20.78 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.51e-07/0.2481, allocations: 0 / 0.9852 GB, free: 20.78 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0005109/0.2486, allocations: 36 kB / 0.9852 GB, free: 20.74 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.001268/0.2499, allocations: 1.032 MB / 0.9862 GB, free: 19.71 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005885/0.2505, allocations: 123.8 kB / 0.9863 GB, free: 19.59 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.2505, allocations: 0 / 0.9863 GB, free: 19.59 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002653/0.2508, allocations: 68.45 kB / 0.9864 GB, free: 19.53 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003744/0.2512, allocations: 12.94 kB / 0.9864 GB, free: 19.52 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002234/0.2535, allocations: 2.048 MB / 0.9884 GB, free: 17.38 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001891/0.2537, allocations: 0.72 MB / 0.9891 GB, free: 16.63 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001299/0.2539, allocations: 24.53 kB / 0.9891 GB, free: 16.61 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.455e-05/0.254, allocations: 39.42 kB / 0.9892 GB, free: 16.57 MB / 0.6198 GB Notification: Performance of SimCode: time 1.163e-06/0.254, allocations: 0 / 0.9892 GB, free: 16.57 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03134/0.2853, allocations: 3.009 MB / 0.9921 GB, free: 13.69 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002718/0.2856, allocations: 227.6 kB / 0.9923 GB, free: 13.44 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.749/3.035, allocations: 0 / 0.9923 GB, free: 13.44 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)