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.001931/0.001931, allocations: 111.7 kB / 17.13 MB, free: 5.926 MB / 14.72 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.002311/0.002311, allocations: 204 kB / 20.09 MB, free: 2.977 MB / 14.72 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 1.533/1.533, allocations: 230.6 MB / 253.5 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.025/3.025, allocations: 0.49 GB / 0.7923 GB, free: 1.473 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002107/0.002107, allocations: 71.89 kB / 1.15 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.083/1.085, allocations: 176.1 MB / 1.322 GB, free: 25.01 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002807/1.088, allocations: 1.642 MB / 1.324 GB, free: 23.88 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0009796/1.089, allocations: 0.6885 MB / 1.324 GB, free: 23.4 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.643e-05/1.089, allocations: 3 kB / 1.324 GB, free: 23.4 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001681/1.089, allocations: 23.59 kB / 1.324 GB, free: 23.38 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0002201/1.089, allocations: 46.27 kB / 1.324 GB, free: 23.36 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004276/1.089, allocations: 128.8 kB / 1.324 GB, free: 23.29 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002349/1.09, allocations: 189.1 kB / 1.325 GB, free: 23.2 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/1.09, allocations: 16.56 kB / 1.325 GB, free: 23.19 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001857/1.09, allocations: 91 kB / 1.325 GB, free: 23.16 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001191/1.09, allocations: 89.94 kB / 1.325 GB, free: 23.12 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.212e-05/1.09, allocations: 11.41 kB / 1.325 GB, free: 23.12 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.335e-05/1.09, allocations: 40.23 kB / 1.325 GB, free: 23.11 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 8.267e-05/1.09, allocations: 26.7 kB / 1.325 GB, free: 23.09 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.794e-05/1.09, allocations: 77.44 kB / 1.325 GB, free: 23.05 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002284/1.091, allocations: 173.6 kB / 1.325 GB, free: 22.98 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/1.091, allocations: 0 / 1.325 GB, free: 22.98 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.462e-06/1.091, allocations: 2.844 kB / 1.325 GB, free: 22.98 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.162e-06/1.091, allocations: 0 / 1.325 GB, free: 22.98 MB / 1.061 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.0006154/1.091, allocations: 0.5653 MB / 1.326 GB, free: 22.43 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/1.091, allocations: 19.05 kB / 1.326 GB, free: 22.42 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001894/1.092, allocations: 26.31 kB / 1.326 GB, free: 22.41 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002664/1.092, allocations: 240.1 kB / 1.326 GB, free: 22.18 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.689e-05/1.092, allocations: 5.594 kB / 1.326 GB, free: 22.18 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.826e-05/1.092, allocations: 15.56 kB / 1.326 GB, free: 22.18 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002507/1.092, allocations: 120.7 kB / 1.326 GB, free: 22.12 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/1.092, allocations: 0 / 1.326 GB, free: 22.12 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.858e-05/1.092, allocations: 6.844 kB / 1.326 GB, free: 22.12 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/1.092, allocations: 0 / 1.326 GB, free: 22.12 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001837/1.092, allocations: 72.75 kB / 1.326 GB, free: 22.1 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005503/1.093, allocations: 421.3 kB / 1.327 GB, free: 21.77 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001804/1.093, allocations: 71.69 kB / 1.327 GB, free: 21.73 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001382/1.093, allocations: 71.86 kB / 1.327 GB, free: 21.71 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.504e-05/1.093, allocations: 2.812 kB / 1.327 GB, free: 21.71 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002191/1.093, allocations: 178.5 kB / 1.327 GB, free: 21.57 MB / 1.061 GB Notification: Performance of pre-optimization done (n=10): time 1.252e-06/1.093, allocations: 0 / 1.327 GB, free: 21.57 MB / 1.061 GB Notification: Performance of matching and sorting (n=10): time 0.0008157/1.094, allocations: 363.1 kB / 1.327 GB, free: 21.4 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.249e-05/1.094, allocations: 167.8 kB / 1.327 GB, free: 21.21 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000178/1.094, allocations: 171.8 kB / 1.328 GB, free: 21.09 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.221e-05/1.094, allocations: 33.45 kB / 1.328 GB, free: 21.05 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.137e-05/1.095, allocations: 111.6 kB / 1.328 GB, free: 20.95 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.76e-05/1.095, allocations: 34.77 kB / 1.328 GB, free: 20.92 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.622e-05/1.095, allocations: 39.86 kB / 1.328 GB, free: 20.9 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 7.229e-05/1.095, allocations: 325 kB / 1.328 GB, free: 20.58 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/1.095, allocations: 55.23 kB / 1.328 GB, free: 20.56 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001723/1.095, allocations: 106.1 kB / 1.328 GB, free: 20.48 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003165/1.095, allocations: 314.2 kB / 1.328 GB, free: 20.19 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/1.095, allocations: 1.156 kB / 1.328 GB, free: 20.19 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005586/1.096, allocations: 347.2 kB / 1.329 GB, free: 19.97 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 6.378e-05/1.096, allocations: 119.9 kB / 1.329 GB, free: 19.84 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/1.096, allocations: 2.125 kB / 1.329 GB, free: 19.84 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/1.096, allocations: 2.156 kB / 1.329 GB, free: 19.84 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/1.096, allocations: 20 kB / 1.329 GB, free: 19.84 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/1.096, allocations: 3.156 kB / 1.329 GB, free: 19.84 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/1.096, allocations: 32.53 kB / 1.329 GB, free: 19.82 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.86e-05/1.096, allocations: 7.156 kB / 1.329 GB, free: 19.82 MB / 1.061 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.0001472/1.096, allocations: 202.5 kB / 1.329 GB, free: 19.62 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.88e-05/1.096, allocations: 13.7 kB / 1.329 GB, free: 19.62 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.081e-05/1.097, allocations: 16.06 kB / 1.329 GB, free: 19.61 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/1.097, allocations: 1.75 kB / 1.329 GB, free: 19.61 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/1.097, allocations: 0 / 1.329 GB, free: 19.61 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/1.097, allocations: 0.8125 kB / 1.329 GB, free: 19.61 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000768/1.097, allocations: 0.5927 MB / 1.33 GB, free: 19.16 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/1.097, allocations: 0.5 kB / 1.33 GB, free: 19.16 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.674e-05/1.097, allocations: 11.88 kB / 1.33 GB, free: 19.16 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/1.097, allocations: 1.125 kB / 1.33 GB, free: 19.16 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.668e-05/1.097, allocations: 8.938 kB / 1.33 GB, free: 19.16 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/1.097, allocations: 4.047 kB / 1.33 GB, free: 19.16 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/1.097, allocations: 3.938 kB / 1.33 GB, free: 19.15 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000588/1.098, allocations: 417.3 kB / 1.33 GB, free: 18.88 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.001e-05/1.098, allocations: 96.17 kB / 1.33 GB, free: 18.78 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.897e-05/1.098, allocations: 3.938 kB / 1.33 GB, free: 18.78 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000119/1.098, allocations: 10.69 kB / 1.33 GB, free: 18.77 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.685e-05/1.098, allocations: 10.41 kB / 1.33 GB, free: 18.77 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.098e-05/1.098, allocations: 9.234 kB / 1.33 GB, free: 18.77 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001061/1.098, allocations: 135.2 kB / 1.33 GB, free: 18.68 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/1.098, allocations: 0 / 1.33 GB, free: 18.68 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003227/1.099, allocations: 39.59 kB / 1.331 GB, free: 18.67 MB / 1.061 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.000281/1.099, allocations: 134.5 kB / 1.331 GB, free: 18.56 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004914/1.099, allocations: 363.2 kB / 1.331 GB, free: 18.27 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/1.099, allocations: 0 / 1.331 GB, free: 18.27 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002189/1.1, allocations: 184.3 kB / 1.331 GB, free: 18.12 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003212/1.1, allocations: 20.25 kB / 1.331 GB, free: 18.11 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006564/1.101, allocations: 317.5 kB / 1.331 GB, free: 17.9 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001712/1.101, allocations: 0.7132 MB / 1.332 GB, free: 17.2 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.137e-05/1.101, allocations: 18.97 kB / 1.332 GB, free: 17.19 MB / 1.061 GB Notification: Performance of SimCode: time 2.6e-07/1.101, allocations: 0 / 1.332 GB, free: 17.19 MB / 1.061 GB Notification: Performance of Templates: time 0.005594/1.106, allocations: 2.191 MB / 1.334 GB, free: 16.91 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile [Timeout 300] (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 & ./Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.508380536004552]