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.001327/0.001327, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001632/0.001632, allocations: 214.3 kB / 22.99 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.457/1.457, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.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 3.335/3.335, allocations: 0.5107 GB / 0.8166 GB, free: 17.76 MB / 0.6231 GB " [Timeout remaining time 176] 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.002092/0.002092, allocations: 71.23 kB / 1.187 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3517/0.3538, allocations: 181.8 MB / 1.365 GB, free: 13.57 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003149/0.3569, allocations: 1.646 MB / 1.366 GB, free: 11.91 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001182/0.3581, allocations: 0.6479 MB / 1.367 GB, free: 11.26 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.084e-05/0.3582, allocations: 4 kB / 1.367 GB, free: 11.25 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.000169/0.3583, allocations: 27.78 kB / 1.367 GB, free: 11.23 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0002141/0.3586, allocations: 42.52 kB / 1.367 GB, free: 11.19 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004748/0.359, allocations: 127.7 kB / 1.367 GB, free: 11.06 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002661/0.3593, allocations: 183.6 kB / 1.367 GB, free: 10.88 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001042/0.3594, allocations: 17.62 kB / 1.367 GB, free: 10.86 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002029/0.3596, allocations: 99.67 kB / 1.367 GB, free: 10.76 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001328/0.3597, allocations: 83.72 kB / 1.367 GB, free: 10.68 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.906e-05/0.3598, allocations: 16 kB / 1.367 GB, free: 10.66 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.51e-05/0.3599, allocations: 28 kB / 1.367 GB, free: 10.64 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 8.125e-05/0.3599, allocations: 23.92 kB / 1.367 GB, free: 10.61 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 8.813e-05/0.36, allocations: 71.7 kB / 1.368 GB, free: 10.54 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002568/0.3603, allocations: 179.3 kB / 1.368 GB, free: 10.37 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3603, allocations: 0 / 1.368 GB, free: 10.37 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3603, allocations: 0 / 1.368 GB, free: 10.37 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.3603, allocations: 3.938 kB / 1.368 GB, free: 10.36 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.0007228/0.361, allocations: 496.3 kB / 1.368 GB, free: 9.824 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.3611, allocations: 16.03 kB / 1.368 GB, free: 9.809 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001787/0.3612, allocations: 20.89 kB / 1.368 GB, free: 9.789 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003837/0.3616, allocations: 182.4 kB / 1.368 GB, free: 9.586 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.235e-05/0.3616, allocations: 8.375 kB / 1.368 GB, free: 9.578 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.138e-05/0.3617, allocations: 16.38 kB / 1.368 GB, free: 9.562 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003249/0.362, allocations: 173.1 kB / 1.369 GB, free: 9.375 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.362, allocations: 3.938 kB / 1.369 GB, free: 9.371 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.362, allocations: 4 kB / 1.369 GB, free: 9.367 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.362, allocations: 4 kB / 1.369 GB, free: 9.363 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002355/0.3623, allocations: 123.3 kB / 1.369 GB, free: 9.23 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006498/0.3629, allocations: 348.2 kB / 1.369 GB, free: 8.859 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002352/0.3631, allocations: 133.9 kB / 1.369 GB, free: 8.707 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001904/0.3633, allocations: 124.4 kB / 1.369 GB, free: 8.57 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.479e-05/0.3634, allocations: 11.97 kB / 1.369 GB, free: 8.559 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003077/0.3637, allocations: 234.2 kB / 1.37 GB, free: 8.293 MB / 1.061 GB Notification: Performance of pre-optimization done (n=10): time 1.553e-06/0.3637, allocations: 3.938 kB / 1.37 GB, free: 8.289 MB / 1.061 GB Notification: Performance of matching and sorting (n=10): time 0.0008295/0.3645, allocations: 471.6 kB / 1.37 GB, free: 7.785 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.3646, allocations: 166.2 kB / 1.37 GB, free: 7.586 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001896/0.3648, allocations: 183.5 kB / 1.37 GB, free: 7.395 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.647e-05/0.3648, allocations: 29.7 kB / 1.37 GB, free: 7.359 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.069e-05/0.3649, allocations: 112.3 kB / 1.37 GB, free: 7.242 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.595e-05/0.3649, allocations: 35.77 kB / 1.37 GB, free: 7.207 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.649e-05/0.365, allocations: 49.64 kB / 1.371 GB, free: 7.152 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0002439/0.3653, allocations: 326.8 kB / 1.371 GB, free: 6.824 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002076/0.3655, allocations: 162.8 kB / 1.371 GB, free: 6.641 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002469/0.3657, allocations: 213.6 kB / 1.371 GB, free: 6.383 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003716/0.3661, allocations: 308.9 kB / 1.371 GB, free: 6.02 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/0.3661, allocations: 8 kB / 1.371 GB, free: 6.012 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006444/0.3667, allocations: 467.2 kB / 1.372 GB, free: 5.5 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 9.496e-05/0.3668, allocations: 114.8 kB / 1.372 GB, free: 5.363 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.3668, allocations: 0 / 1.372 GB, free: 5.363 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.3669, allocations: 7.938 kB / 1.372 GB, free: 5.355 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.367, allocations: 15.98 kB / 1.372 GB, free: 5.34 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.367, allocations: 4 kB / 1.372 GB, free: 5.336 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/0.3671, allocations: 19.89 kB / 1.372 GB, free: 5.316 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.251e-05/0.3671, allocations: 11.98 kB / 1.372 GB, free: 5.305 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.0001838/0.3673, allocations: 202.5 kB / 1.372 GB, free: 5.086 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.328e-05/0.3673, allocations: 19.97 kB / 1.372 GB, free: 5.066 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.479e-05/0.3674, allocations: 17.39 kB / 1.372 GB, free: 5.043 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.3674, allocations: 7.922 kB / 1.372 GB, free: 5.035 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.85e-06/0.3674, allocations: 4 kB / 1.372 GB, free: 5.031 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.3674, allocations: 0 / 1.372 GB, free: 5.031 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000793/0.3682, allocations: 0.5711 MB / 1.373 GB, free: 4.398 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.3682, allocations: 0 / 1.373 GB, free: 4.398 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.327e-05/0.3682, allocations: 11.98 kB / 1.373 GB, free: 4.387 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-06/0.3682, allocations: 4 kB / 1.373 GB, free: 4.383 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.063e-05/0.3683, allocations: 11.98 kB / 1.373 GB, free: 4.371 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.3683, allocations: 0 / 1.373 GB, free: 4.371 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3683, allocations: 0 / 1.373 GB, free: 4.371 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006401/0.3689, allocations: 477.9 kB / 1.373 GB, free: 3.863 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.955e-05/0.3689, allocations: 11.91 kB / 1.373 GB, free: 3.852 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.826e-05/0.369, allocations: 8 kB / 1.373 GB, free: 3.844 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.3691, allocations: 8 kB / 1.373 GB, free: 3.836 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.368e-05/0.3691, allocations: 7.984 kB / 1.373 GB, free: 3.828 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.179e-05/0.3691, allocations: 11.98 kB / 1.373 GB, free: 3.816 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001107/0.3693, allocations: 129.2 kB / 1.374 GB, free: 3.691 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3693, allocations: 0 / 1.374 GB, free: 3.691 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002973/0.3696, allocations: 43.88 kB / 1.374 GB, free: 3.648 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.0002653/0.3698, allocations: 123.8 kB / 1.374 GB, free: 3.523 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0006438/0.3705, allocations: 0.5194 MB / 1.374 GB, free: 2.918 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3705, allocations: 0 / 1.374 GB, free: 2.918 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002848/0.3707, allocations: 246.1 kB / 1.374 GB, free: 2.641 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/0.3711, allocations: 25.7 kB / 1.374 GB, free: 2.617 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006897/0.3717, allocations: 377.2 kB / 1.375 GB, free: 2.203 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001078/0.3719, allocations: 105.5 kB / 1.375 GB, free: 2.082 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.122e-05/0.3719, allocations: 15.44 kB / 1.375 GB, free: 2.066 MB / 1.061 GB Notification: Performance of SimCode: time 5.41e-07/0.3719, allocations: 0 / 1.375 GB, free: 2.066 MB / 1.061 GB Notification: Performance of Templates: time 0.004549/0.3764, allocations: 2.217 MB / 1.377 GB, free: 15.87 MB / 1.076 GB " [Timeout remaining time 300] 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 -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: 11.7615314880386]