Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001799/0.001799, allocations: 77.23 kB / 19.76 MB, free: 2.035 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.002131/0.002131, allocations: 156.4 kB / 23.01 MB, free: 4.945 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.428/1.428, allocations: 177.2 MB / 203.4 MB, free: 8.938 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.859/2.859, allocations: 394.2 MB / 0.6387 GB, free: 11.93 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_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.002133/0.002133, allocations: 67.89 kB / 1.009 GB, free: 14.51 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8052/0.8074, allocations: 181.8 MB / 1.187 GB, free: 16.18 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002535/0.8099, allocations: 1.638 MB / 1.188 GB, free: 15.07 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0009227/0.8108, allocations: 0.6436 MB / 1.189 GB, free: 14.64 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.651e-05/0.8109, allocations: 1.969 kB / 1.189 GB, free: 14.64 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0001335/0.811, allocations: 25.69 kB / 1.189 GB, free: 14.62 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0001838/0.8112, allocations: 44.67 kB / 1.189 GB, free: 14.6 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004229/0.8116, allocations: 125.5 kB / 1.189 GB, free: 14.53 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0002343/0.8119, allocations: 188.1 kB / 1.189 GB, free: 14.45 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 9.556e-05/0.8119, allocations: 13.97 kB / 1.189 GB, free: 14.44 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001739/0.8121, allocations: 95.09 kB / 1.189 GB, free: 14.4 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001315/0.8123, allocations: 81.84 kB / 1.189 GB, free: 14.37 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 3.775e-05/0.8123, allocations: 13.44 kB / 1.189 GB, free: 14.37 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 7.902e-05/0.8124, allocations: 32.66 kB / 1.189 GB, free: 14.36 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 7.803e-05/0.8124, allocations: 37.42 kB / 1.189 GB, free: 14.34 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 8.053e-05/0.8125, allocations: 63.97 kB / 1.19 GB, free: 14.31 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0002341/0.8128, allocations: 179.2 kB / 1.19 GB, free: 14.24 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.8128, allocations: 0 / 1.19 GB, free: 14.24 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.192e-06/0.8128, allocations: 0 / 1.19 GB, free: 14.24 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.011e-05/0.8128, allocations: 0 / 1.19 GB, free: 14.24 MB / 1.076 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.0005325/0.8133, allocations: 498.9 kB / 1.19 GB, free: 13.78 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.036e-05/0.8133, allocations: 9.859 kB / 1.19 GB, free: 13.78 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001659/0.8135, allocations: 24.52 kB / 1.19 GB, free: 13.78 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000267/0.8138, allocations: 181.1 kB / 1.19 GB, free: 13.62 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.295e-05/0.8138, allocations: 10.91 kB / 1.19 GB, free: 13.61 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.082e-05/0.8138, allocations: 10.69 kB / 1.19 GB, free: 13.61 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002716/0.8141, allocations: 180.4 kB / 1.191 GB, free: 13.49 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.8141, allocations: 0 / 1.191 GB, free: 13.49 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.8141, allocations: 2.688 kB / 1.191 GB, free: 13.49 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.8141, allocations: 1.469 kB / 1.191 GB, free: 13.49 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002129/0.8143, allocations: 129.8 kB / 1.191 GB, free: 13.41 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005366/0.8149, allocations: 348.7 kB / 1.191 GB, free: 13.14 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001904/0.8151, allocations: 134.1 kB / 1.191 GB, free: 13.04 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001605/0.8152, allocations: 127.1 kB / 1.191 GB, free: 12.95 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/0.8152, allocations: 2.875 kB / 1.191 GB, free: 12.95 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002472/0.8155, allocations: 238.9 kB / 1.192 GB, free: 12.75 MB / 1.076 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.8155, allocations: 4 kB / 1.192 GB, free: 12.75 MB / 1.076 GB Notification: Performance of matching and sorting (n=10): time 0.0007295/0.8162, allocations: 478 kB / 1.192 GB, free: 12.45 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.8163, allocations: 171.2 kB / 1.192 GB, free: 12.26 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/0.8164, allocations: 179.5 kB / 1.192 GB, free: 12.13 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.696e-05/0.8164, allocations: 29.23 kB / 1.192 GB, free: 12.1 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 4.713e-05/0.8165, allocations: 116.2 kB / 1.192 GB, free: 11.99 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.487e-05/0.8165, allocations: 26.38 kB / 1.192 GB, free: 11.97 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.041e-05/0.8166, allocations: 38.25 kB / 1.192 GB, free: 11.95 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 4.37e-05/0.8166, allocations: 331.9 kB / 1.193 GB, free: 11.62 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001602/0.8168, allocations: 167.6 kB / 1.193 GB, free: 11.48 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.8169, allocations: 211 kB / 1.193 GB, free: 11.27 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002807/0.8172, allocations: 314.7 kB / 1.193 GB, free: 10.98 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.8172, allocations: 0 / 1.193 GB, free: 10.98 MB / 1.076 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005115/0.8177, allocations: 465.4 kB / 1.194 GB, free: 10.63 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 4.44e-05/0.8178, allocations: 118.7 kB / 1.194 GB, free: 10.5 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.8178, allocations: 2.844 kB / 1.194 GB, free: 10.5 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.8178, allocations: 7.25 kB / 1.194 GB, free: 10.5 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.8179, allocations: 16.52 kB / 1.194 GB, free: 10.5 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.8179, allocations: 2.828 kB / 1.194 GB, free: 10.5 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/0.818, allocations: 23.12 kB / 1.194 GB, free: 10.49 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.15e-05/0.818, allocations: 8.422 kB / 1.194 GB, free: 10.49 MB / 1.076 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.0001079/0.8181, allocations: 197.3 kB / 1.194 GB, free: 10.3 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.418e-05/0.8182, allocations: 20.88 kB / 1.194 GB, free: 10.29 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.377e-05/0.8182, allocations: 16.22 kB / 1.194 GB, free: 10.27 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.8182, allocations: 1.094 kB / 1.194 GB, free: 10.27 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.8182, allocations: 4 kB / 1.194 GB, free: 10.27 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.8182, allocations: 5.766 kB / 1.194 GB, free: 10.27 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006347/0.8189, allocations: 0.5756 MB / 1.195 GB, free: 9.832 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.8189, allocations: 1 kB / 1.195 GB, free: 9.832 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.89e-05/0.8189, allocations: 18.98 kB / 1.195 GB, free: 9.824 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.8189, allocations: 1.781 kB / 1.195 GB, free: 9.824 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.07e-05/0.819, allocations: 5.703 kB / 1.195 GB, free: 9.824 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.819, allocations: 1.703 kB / 1.195 GB, free: 9.824 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.819, allocations: 1.031 kB / 1.195 GB, free: 9.824 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005346/0.8195, allocations: 476.7 kB / 1.195 GB, free: 9.492 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.818e-05/0.8195, allocations: 16.02 kB / 1.195 GB, free: 9.48 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.314e-05/0.8195, allocations: 8.5 kB / 1.195 GB, free: 9.477 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001222/0.8197, allocations: 8.531 kB / 1.195 GB, free: 9.477 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.657e-05/0.8197, allocations: 6.484 kB / 1.195 GB, free: 9.477 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.019e-05/0.8197, allocations: 15.42 kB / 1.195 GB, free: 9.469 MB / 1.076 GB Notification: Performance of sorting global known variables: time 8.339e-05/0.8198, allocations: 126.7 kB / 1.196 GB, free: 9.383 MB / 1.076 GB Notification: Performance of sort global known variables: time 7.1e-08/0.8198, allocations: 1.312 kB / 1.196 GB, free: 9.383 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003213/0.8201, allocations: 39.16 kB / 1.196 GB, free: 9.375 MB / 1.076 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.0002113/0.8203, allocations: 136.7 kB / 1.196 GB, free: 9.266 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0004711/0.8208, allocations: 0.5116 MB / 1.196 GB, free: 8.789 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.8208, allocations: 5.312 kB / 1.196 GB, free: 8.785 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0002122/0.821, allocations: 251.2 kB / 1.196 GB, free: 8.566 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003092/0.8213, allocations: 17.7 kB / 1.196 GB, free: 8.562 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005304/0.8219, allocations: 347.6 kB / 1.197 GB, free: 8.309 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.298e-05/0.8219, allocations: 96.83 kB / 1.197 GB, free: 8.23 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 6.484e-05/0.822, allocations: 23.91 kB / 1.197 GB, free: 8.227 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.392e-05/0.822, allocations: 19.97 kB / 1.197 GB, free: 8.215 MB / 1.076 GB Notification: Performance of SimCode: time 3.3e-07/0.822, allocations: 1.125 kB / 1.197 GB, free: 8.215 MB / 1.076 GB Notification: Performance of Templates: time 0.005695/0.8277, allocations: 2.184 MB / 1.199 GB, free: 7.848 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 8.406067547039129]