Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter",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.001262/0.001262, allocations: 106.8 kB / 15.98 MB, free: 6.352 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.001059/0.001059, allocations: 193.9 kB / 16.91 MB, free: 6.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.27/1.27, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.694/0.694, allocations: 115.3 MB / 406.1 MB, free: 6.391 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 63.91 kB / 493.2 MB, free: 0.6094 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2792, allocations: 76.18 MB / 0.556 GB, free: 35.38 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.CSVWriter): time 0.002354/0.2816, allocations: 1.656 MB / 0.5576 GB, free: 34.26 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006821/0.2823, allocations: 0.6117 MB / 0.5582 GB, free: 33.84 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.974e-05/0.2823, allocations: 1.094 kB / 0.5582 GB, free: 33.84 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001408/0.2825, allocations: 19.27 kB / 0.5583 GB, free: 33.82 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001612/0.2827, allocations: 35.16 kB / 0.5583 GB, free: 33.8 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003366/0.283, allocations: 101 kB / 0.5584 GB, free: 33.75 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001981/0.2832, allocations: 201.4 kB / 0.5586 GB, free: 33.66 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.2833, allocations: 25.39 kB / 0.5586 GB, free: 33.66 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001252/0.2834, allocations: 84.86 kB / 0.5587 GB, free: 33.62 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001143/0.2836, allocations: 86.33 kB / 0.5588 GB, free: 33.59 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.427e-05/0.2836, allocations: 13.88 kB / 0.5588 GB, free: 33.59 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.339e-05/0.2837, allocations: 27.89 kB / 0.5588 GB, free: 33.59 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.731e-05/0.2838, allocations: 26.16 kB / 0.5588 GB, free: 33.57 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 7.484e-05/0.2838, allocations: 77.77 kB / 0.5589 GB, free: 33.53 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001727/0.284, allocations: 162.3 kB / 0.5591 GB, free: 33.47 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.284, allocations: 1 kB / 0.5591 GB, free: 33.47 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.284, allocations: 1.281 kB / 0.5591 GB, free: 33.47 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.284, allocations: 0 / 0.5591 GB, free: 33.47 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005121/0.2846, allocations: 0.5602 MB / 0.5596 GB, free: 32.92 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.2846, allocations: 14.31 kB / 0.5596 GB, free: 32.92 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.278e-05/0.2846, allocations: 36.89 kB / 0.5597 GB, free: 32.88 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.318e-05/0.2847, allocations: 20.09 kB / 0.5597 GB, free: 32.87 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000212/0.2849, allocations: 240.6 kB / 0.5599 GB, free: 32.63 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.2849, allocations: 8.469 kB / 0.5599 GB, free: 32.63 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.832e-05/0.285, allocations: 18.84 kB / 0.5599 GB, free: 32.62 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000242/0.2852, allocations: 115 kB / 0.56 GB, free: 32.57 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.2852, allocations: 0 / 0.56 GB, free: 32.57 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/0.2853, allocations: 3.719 kB / 0.56 GB, free: 32.57 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.2853, allocations: 5.156 kB / 0.56 GB, free: 32.57 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001882/0.2855, allocations: 70.02 kB / 0.5601 GB, free: 32.55 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005134/0.286, allocations: 415.5 kB / 0.5605 GB, free: 32.23 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001743/0.2862, allocations: 89.84 kB / 0.5606 GB, free: 32.19 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.2863, allocations: 76.44 kB / 0.5607 GB, free: 32.16 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.2863, allocations: 1.719 kB / 0.5607 GB, free: 32.16 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002285/0.2866, allocations: 180.1 kB / 0.5608 GB, free: 32.03 MB / 446.1 MB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.2866, allocations: 1.062 kB / 0.5608 GB, free: 32.03 MB / 446.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006522/0.2873, allocations: 353.1 kB / 0.5612 GB, free: 31.86 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.717e-05/0.2873, allocations: 167.9 kB / 0.5613 GB, free: 31.67 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/0.2874, allocations: 171.1 kB / 0.5615 GB, free: 31.55 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.2875, allocations: 33.83 kB / 0.5615 GB, free: 31.52 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.362e-05/0.2875, allocations: 116 kB / 0.5616 GB, free: 31.41 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.289e-05/0.2875, allocations: 31.19 kB / 0.5617 GB, free: 31.38 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.407e-05/0.2876, allocations: 40.34 kB / 0.5617 GB, free: 31.36 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.22e-05/0.2877, allocations: 326.1 kB / 0.562 GB, free: 31.04 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.2878, allocations: 56.84 kB / 0.5621 GB, free: 31.02 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001396/0.2879, allocations: 102.8 kB / 0.5622 GB, free: 30.95 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002588/0.2882, allocations: 315.8 kB / 0.5625 GB, free: 30.66 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2882, allocations: 3.938 kB / 0.5625 GB, free: 30.65 MB / 446.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004728/0.2887, allocations: 342 kB / 0.5628 GB, free: 30.44 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.316e-05/0.2888, allocations: 122.6 kB / 0.5629 GB, free: 30.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.2888, allocations: 1.219 kB / 0.5629 GB, free: 30.31 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.2888, allocations: 3.031 kB / 0.5629 GB, free: 30.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.2889, allocations: 21.08 kB / 0.563 GB, free: 30.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.712e-06/0.2889, allocations: 2.844 kB / 0.563 GB, free: 30.31 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.289, allocations: 15.25 kB / 0.563 GB, free: 30.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.005e-05/0.289, allocations: 12.42 kB / 0.563 GB, free: 30.3 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 8 (combiTimeTableWriter.str,$PRE.combiTimeTableWriter.str,csvWriter.str,$PRE.csvWriter.str,combiTimeTableWriter.sampleTrigger,$whenCondition2,csvWriter.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * 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.000107/0.2892, allocations: 201 kB / 0.5632 GB, free: 30.11 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.326e-05/0.2892, allocations: 17.34 kB / 0.5632 GB, free: 30.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.282e-05/0.2892, allocations: 19.41 kB / 0.5632 GB, free: 30.09 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.2892, allocations: 1.094 kB / 0.5632 GB, free: 30.09 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.2892, allocations: 1.062 kB / 0.5632 GB, free: 30.09 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2893, allocations: 3.812 kB / 0.5632 GB, free: 30.09 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006167/0.2899, allocations: 0.5812 MB / 0.5638 GB, free: 29.65 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2899, allocations: 0.75 kB / 0.5638 GB, free: 29.65 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.672e-05/0.29, allocations: 11.8 kB / 0.5638 GB, free: 29.65 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.29, allocations: 0.5 kB / 0.5638 GB, free: 29.65 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.106e-05/0.29, allocations: 7.75 kB / 0.5638 GB, free: 29.65 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.29, allocations: 2.625 kB / 0.5638 GB, free: 29.65 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.29, allocations: 3.938 kB / 0.5638 GB, free: 29.65 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004823/0.2905, allocations: 405.8 kB / 0.5642 GB, free: 29.39 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.368e-05/0.2905, allocations: 89.14 kB / 0.5643 GB, free: 29.29 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.932e-05/0.2906, allocations: 8.672 kB / 0.5643 GB, free: 29.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.2907, allocations: 17.34 kB / 0.5643 GB, free: 29.28 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.842e-05/0.2908, allocations: 12.05 kB / 0.5643 GB, free: 29.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.974e-05/0.2908, allocations: 11.7 kB / 0.5643 GB, free: 29.27 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.194e-05/0.2909, allocations: 130.6 kB / 0.5644 GB, free: 29.18 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2909, allocations: 0 / 0.5644 GB, free: 29.18 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003045/0.2912, allocations: 43.86 kB / 0.5645 GB, free: 29.17 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,combiTimeTableWriter.str,combiTimeTableWriter.sampleTrigger,csvWriter.str,csvWriter.sampleTrigger) * Number of discrete states: 4 (combiTimeTableWriter.str,$whenCondition2,csvWriter.str,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.0007422/0.2919, allocations: 0.9504 MB / 0.5654 GB, free: 28.38 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004446/0.2924, allocations: 369.6 kB / 0.5658 GB, free: 28.09 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2924, allocations: 0 / 0.5658 GB, free: 28.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002064/0.2926, allocations: 210.2 kB / 0.566 GB, free: 27.93 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003075/0.2929, allocations: 26.91 kB / 0.566 GB, free: 27.92 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002053/0.295, allocations: 2.122 MB / 0.5681 GB, free: 26.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001201/0.2951, allocations: 0.7152 MB / 0.5688 GB, free: 25.54 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.047e-05/0.2952, allocations: 19.7 kB / 0.5688 GB, free: 25.54 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.598e-05/0.2953, allocations: 36.84 kB / 0.5688 GB, free: 25.52 MB / 446.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2953, allocations: 2.75 kB / 0.5688 GB, free: 25.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4393/0.7346, allocations: 3.506 MB / 0.5722 GB, free: 25.06 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001147/0.7347, allocations: 189.7 kB / 0.5724 GB, free: 24.81 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.742/2.477, allocations: 4.578 kB / 0.5724 GB, free: 24.81 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter.fmu > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)