Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008381/0.0008381, allocations: 80.44 kB / 19.17 MB, free: 0.7383 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009579/0.0009579, allocations: 165.9 kB / 22.45 MB, free: 2.102 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8924/0.8924, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.831/1.831, allocations: 377.8 MB / 0.6221 GB, free: 8.656 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_12_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_12_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.104e-06/2.104e-06, allocations: 0 / 0.9809 GB, free: 2.594 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.734e-05/1.945e-05, allocations: 2.281 kB / 0.9809 GB, free: 2.59 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002473/0.002492, allocations: 1.629 MB / 0.9825 GB, free: 0.9531 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0007253/0.003218, allocations: 0.6542 MB / 0.9832 GB, free: 300 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.032e-05/0.003278, allocations: 3.938 kB / 0.9832 GB, free: 296 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 0.000138/0.003416, allocations: 23.84 kB / 0.9832 GB, free: 272 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 0.0001755/0.003591, allocations: 39.77 kB / 0.9832 GB, free: 232 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003004/0.003892, allocations: 131.6 kB / 0.9834 GB, free: 100 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001967/0.004088, allocations: 195.5 kB / 0.9836 GB, free: 15.91 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 9.338e-05/0.004182, allocations: 9.641 kB / 0.9836 GB, free: 15.89 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001798/0.004362, allocations: 119.8 kB / 0.9837 GB, free: 15.78 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 9.088e-05/0.004453, allocations: 75.83 kB / 0.9838 GB, free: 15.7 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.373e-05/0.004476, allocations: 16 kB / 0.9838 GB, free: 15.69 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 6.174e-05/0.004538, allocations: 39.86 kB / 0.9838 GB, free: 15.65 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 7.307e-05/0.004611, allocations: 23.92 kB / 0.9838 GB, free: 15.62 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 5.839e-05/0.00467, allocations: 59.83 kB / 0.9839 GB, free: 15.57 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0001929/0.004862, allocations: 187.5 kB / 0.9841 GB, free: 15.38 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.784e-06/0.004864, allocations: 4 kB / 0.9841 GB, free: 15.38 MB / 0.948 GB Notification: Performance of FrontEnd: time 8.12e-07/0.004865, allocations: 0 / 0.9841 GB, free: 15.38 MB / 0.948 GB Notification: Performance of Transformations before backend: time 3.707e-06/0.004869, allocations: 0 / 0.9841 GB, free: 15.38 MB / 0.948 GB 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.0005015/0.00537, allocations: 0.4925 MB / 0.9845 GB, free: 14.83 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.005409, allocations: 8.031 kB / 0.9846 GB, free: 14.82 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.166e-05/0.005441, allocations: 42.73 kB / 0.9846 GB, free: 14.77 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001291/0.00557, allocations: 20.89 kB / 0.9846 GB, free: 14.75 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002387/0.005809, allocations: 186.2 kB / 0.9848 GB, free: 14.55 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.005822, allocations: 8.375 kB / 0.9848 GB, free: 14.54 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.173e-05/0.005844, allocations: 20.31 kB / 0.9848 GB, free: 14.52 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002171/0.006061, allocations: 169.5 kB / 0.985 GB, free: 14.34 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.625e-06/0.006068, allocations: 192 / 0.985 GB, free: 14.34 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.006082, allocations: 7.938 kB / 0.985 GB, free: 14.33 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.006087, allocations: 0 / 0.985 GB, free: 14.33 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001345/0.006222, allocations: 127.3 kB / 0.9851 GB, free: 14.19 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004449/0.006666, allocations: 363.8 kB / 0.9855 GB, free: 13.79 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001468/0.006813, allocations: 141.8 kB / 0.9856 GB, free: 13.63 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.006927, allocations: 128.2 kB / 0.9857 GB, free: 13.49 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.369e-05/0.006951, allocations: 0 / 0.9857 GB, free: 13.49 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004587/0.007409, allocations: 246.3 kB / 0.986 GB, free: 13.21 MB / 0.948 GB Notification: Performance of pre-optimization done (n=10): time 1.202e-06/0.00741, allocations: 0 / 0.986 GB, free: 13.21 MB / 0.948 GB Notification: Performance of matching and sorting (n=10): time 0.0005034/0.007914, allocations: 479.6 kB / 0.9864 GB, free: 12.7 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.272e-05/0.007977, allocations: 162.2 kB / 0.9866 GB, free: 12.51 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.008096, allocations: 184.6 kB / 0.9867 GB, free: 12.32 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.008114, allocations: 33.7 kB / 0.9868 GB, free: 12.28 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.294e-05/0.008167, allocations: 112.3 kB / 0.9869 GB, free: 12.16 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.995e-05/0.008187, allocations: 23.84 kB / 0.9869 GB, free: 12.14 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.845e-05/0.008235, allocations: 41.7 kB / 0.9869 GB, free: 12.09 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.611e-05/0.008321, allocations: 322.8 kB / 0.9872 GB, free: 11.77 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.008436, allocations: 162.8 kB / 0.9874 GB, free: 11.58 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/0.008568, allocations: 217.6 kB / 0.9876 GB, free: 11.32 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000203/0.008771, allocations: 312.8 kB / 0.9879 GB, free: 10.95 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.008773, allocations: 4 kB / 0.9879 GB, free: 10.95 MB / 0.948 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000345/0.009118, allocations: 462.9 kB / 0.9884 GB, free: 10.44 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 5.601e-05/0.009174, allocations: 122.8 kB / 0.9885 GB, free: 10.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.00918, allocations: 0 / 0.9885 GB, free: 10.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.009194, allocations: 4 kB / 0.9885 GB, free: 10.29 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.532e-05/0.009269, allocations: 16.23 kB / 0.9885 GB, free: 10.28 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.009278, allocations: 12.22 kB / 0.9885 GB, free: 10.27 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.279e-05/0.00933, allocations: 19.88 kB / 0.9885 GB, free: 10.25 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.009345, allocations: 8 kB / 0.9885 GB, free: 10.24 MB / 0.948 GB 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.000113/0.009458, allocations: 203.1 kB / 0.9887 GB, free: 10.02 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.913e-05/0.009477, allocations: 19.91 kB / 0.9887 GB, free: 10 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.66e-05/0.009504, allocations: 17.45 kB / 0.9888 GB, free: 9.984 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.009506, allocations: 0 / 0.9888 GB, free: 9.984 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.009511, allocations: 0 / 0.9888 GB, free: 9.984 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.009514, allocations: 3.938 kB / 0.9888 GB, free: 9.98 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004754/0.009989, allocations: 0.6134 MB / 0.9894 GB, free: 9.293 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.009992, allocations: 4 kB / 0.9894 GB, free: 9.289 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.202e-05/0.01002, allocations: 11.98 kB / 0.9894 GB, free: 9.277 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.01003, allocations: 0 / 0.9894 GB, free: 9.277 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.01004, allocations: 4 kB / 0.9894 GB, free: 9.273 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.01004, allocations: 0 / 0.9894 GB, free: 9.273 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.01004, allocations: 7.922 kB / 0.9894 GB, free: 9.266 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003379/0.01038, allocations: 470.2 kB / 0.9898 GB, free: 8.766 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.125e-05/0.01039, allocations: 15.91 kB / 0.9899 GB, free: 8.75 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.885e-05/0.01042, allocations: 7.984 kB / 0.9899 GB, free: 8.742 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.776e-05/0.01048, allocations: 12 kB / 0.9899 GB, free: 8.73 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.68e-05/0.01052, allocations: 7.984 kB / 0.9899 GB, free: 8.723 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.989e-06/0.01053, allocations: 4 kB / 0.9899 GB, free: 8.719 MB / 0.948 GB Notification: Performance of sorting global known variables: time 6.749e-05/0.01059, allocations: 132.1 kB / 0.99 GB, free: 8.59 MB / 0.948 GB Notification: Performance of sort global known variables: time 8e-08/0.01059, allocations: 3.938 kB / 0.99 GB, free: 8.586 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001964/0.01079, allocations: 39.94 kB / 0.99 GB, free: 8.547 MB / 0.948 GB 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.0006503/0.01144, allocations: 1.036 MB / 0.9911 GB, free: 7.465 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0003414/0.01178, allocations: 0.5114 MB / 0.9916 GB, free: 6.867 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.01178, allocations: 0.5 kB / 0.9916 GB, free: 6.867 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001473/0.01193, allocations: 250.1 kB / 0.9918 GB, free: 6.586 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002135/0.01214, allocations: 16 kB / 0.9918 GB, free: 6.57 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002104/0.01425, allocations: 2.623 MB / 0.9944 GB, free: 3.688 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.765e-05/0.01432, allocations: 101.3 kB / 0.9945 GB, free: 3.57 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 6.173e-05/0.01438, allocations: 20.34 kB / 0.9945 GB, free: 3.551 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.734e-05/0.01444, allocations: 36.48 kB / 0.9945 GB, free: 3.516 MB / 0.948 GB Notification: Performance of SimCode: time 8.92e-07/0.01444, allocations: 0 / 0.9945 GB, free: 3.516 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01651/0.03095, allocations: 4.478 MB / 0.9989 GB, free: 15.21 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.284/7.315, allocations: 5.719 kB / 0.9989 GB, free: 15.21 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv --start-time -1.21 --stop-time 10 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004484 Buildings_12_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable cos.y in file Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv. Warning: Get data of variable cos.y from file Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv failed! Error: Could not read variable step.y in file Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv. Warning: Get data of variable step.y from file Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.52148539479822]