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.001657/0.001657, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.00197/0.00197, allocations: 213.4 kB / 23.01 MB, free: 4.566 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.44/1.44, allocations: 230.6 MB / 256.8 MB, free: 8.016 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.203/3.203, allocations: 0.505 GB / 0.8108 GB, free: 22.01 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.001946/0.001946, allocations: 62.58 kB / 1.178 GB, free: 16.76 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3321/0.3341, allocations: 180.2 MB / 1.354 GB, free: 7.938 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003078/0.3372, allocations: 1.654 MB / 1.356 GB, free: 6.273 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001225/0.3384, allocations: 0.6979 MB / 1.356 GB, free: 5.57 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.807e-05/0.3385, allocations: 7.938 kB / 1.356 GB, free: 5.562 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001708/0.3387, allocations: 19.81 kB / 1.356 GB, free: 5.543 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.000232/0.3389, allocations: 43.75 kB / 1.356 GB, free: 5.5 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004998/0.3394, allocations: 131.7 kB / 1.357 GB, free: 5.371 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002856/0.3397, allocations: 183.6 kB / 1.357 GB, free: 5.191 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001107/0.3398, allocations: 21.62 kB / 1.357 GB, free: 5.168 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000204/0.34, allocations: 87.81 kB / 1.357 GB, free: 5.082 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001503/0.3401, allocations: 87.66 kB / 1.357 GB, free: 4.996 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.514e-05/0.3402, allocations: 20 kB / 1.357 GB, free: 4.977 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.67e-05/0.3403, allocations: 31.98 kB / 1.357 GB, free: 4.945 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 8.703e-05/0.3403, allocations: 35.84 kB / 1.357 GB, free: 4.91 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 9.704e-05/0.3404, allocations: 71.66 kB / 1.357 GB, free: 4.84 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002645/0.3407, allocations: 175.3 kB / 1.357 GB, free: 4.668 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.3407, allocations: 0 / 1.357 GB, free: 4.668 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.703e-06/0.3407, allocations: 0 / 1.357 GB, free: 4.668 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.861e-06/0.3407, allocations: 4 kB / 1.357 GB, free: 4.664 MB / 1.045 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.0007458/0.3415, allocations: 498.7 kB / 1.358 GB, free: 4.125 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.3415, allocations: 12.03 kB / 1.358 GB, free: 4.113 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001764/0.3417, allocations: 28.83 kB / 1.358 GB, free: 4.086 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000337/0.342, allocations: 182.3 kB / 1.358 GB, free: 3.883 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.342, allocations: 12.38 kB / 1.358 GB, free: 3.871 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.842e-05/0.3421, allocations: 12.38 kB / 1.358 GB, free: 3.859 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002806/0.3423, allocations: 113.7 kB / 1.358 GB, free: 3.742 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.3424, allocations: 4 kB / 1.358 GB, free: 3.738 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.3424, allocations: 4 kB / 1.358 GB, free: 3.734 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.3424, allocations: 0 / 1.358 GB, free: 3.734 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000206/0.3426, allocations: 75.88 kB / 1.358 GB, free: 3.66 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007125/0.3433, allocations: 387.6 kB / 1.359 GB, free: 3.238 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002/0.3435, allocations: 90.55 kB / 1.359 GB, free: 3.141 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001552/0.3436, allocations: 64.81 kB / 1.359 GB, free: 3.074 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.735e-05/0.3437, allocations: 4 kB / 1.359 GB, free: 3.07 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002758/0.344, allocations: 170.7 kB / 1.359 GB, free: 2.879 MB / 1.045 GB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.344, allocations: 0 / 1.359 GB, free: 2.879 MB / 1.045 GB Notification: Performance of matching and sorting (n=10): time 0.0007948/0.3447, allocations: 368.9 kB / 1.359 GB, free: 2.5 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/0.3449, allocations: 166.2 kB / 1.359 GB, free: 2.301 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001896/0.3451, allocations: 179.6 kB / 1.36 GB, free: 2.113 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.412e-05/0.3451, allocations: 29.7 kB / 1.36 GB, free: 2.078 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 9.588e-05/0.3452, allocations: 112.3 kB / 1.36 GB, free: 1.961 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.065e-05/0.3452, allocations: 23.8 kB / 1.36 GB, free: 1.938 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.566e-05/0.3453, allocations: 41.7 kB / 1.36 GB, free: 1.891 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001728/0.3455, allocations: 338.8 kB / 1.36 GB, free: 1.551 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001408/0.3456, allocations: 51.97 kB / 1.36 GB, free: 1.5 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002273/0.3458, allocations: 104.6 kB / 1.36 GB, free: 1.375 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003818/0.3462, allocations: 309 kB / 1.36 GB, free: 1.012 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/0.3462, allocations: 4 kB / 1.36 GB, free: 1.008 MB / 1.045 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000579/0.3468, allocations: 356.1 kB / 1.361 GB, free: 0.6289 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001052/0.3469, allocations: 118.8 kB / 1.361 GB, free: 500 kB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.3469, allocations: 0 / 1.361 GB, free: 500 kB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.3469, allocations: 8.188 kB / 1.361 GB, free: 492 kB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.3471, allocations: 23.92 kB / 1.361 GB, free: 468 kB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.258e-05/0.3471, allocations: 8.062 kB / 1.361 GB, free: 460 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.3472, allocations: 15.89 kB / 1.361 GB, free: 444 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.626e-05/0.3472, allocations: 15.98 kB / 1.361 GB, free: 428 kB / 1.045 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.0001897/0.3474, allocations: 201 kB / 1.361 GB, free: 204 kB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.351e-05/0.3474, allocations: 15.91 kB / 1.361 GB, free: 188 kB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.397e-05/0.3475, allocations: 13.41 kB / 1.361 GB, free: 168 kB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.3475, allocations: 4 kB / 1.361 GB, free: 164 kB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.3475, allocations: 7.984 kB / 1.361 GB, free: 156 kB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.3475, allocations: 3.938 kB / 1.361 GB, free: 152 kB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008175/0.3483, allocations: 0.5516 MB / 1.362 GB, free: 15.54 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.3483, allocations: 4 kB / 1.362 GB, free: 15.53 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.545e-05/0.3484, allocations: 19.92 kB / 1.362 GB, free: 15.51 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.3484, allocations: 0 / 1.362 GB, free: 15.51 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.072e-05/0.3484, allocations: 7.984 kB / 1.362 GB, free: 15.5 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.3484, allocations: 0 / 1.362 GB, free: 15.5 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3484, allocations: 8.219 kB / 1.362 GB, free: 15.5 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005902/0.349, allocations: 414.6 kB / 1.362 GB, free: 15.06 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 9.462e-05/0.3491, allocations: 11.91 kB / 1.362 GB, free: 15.05 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.553e-05/0.3491, allocations: 8 kB / 1.362 GB, free: 15.04 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.3492, allocations: 7.984 kB / 1.362 GB, free: 15.04 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.908e-05/0.3493, allocations: 11.94 kB / 1.362 GB, free: 15.02 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.758e-05/0.3493, allocations: 11.98 kB / 1.362 GB, free: 15.01 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001131/0.3494, allocations: 132 kB / 1.362 GB, free: 14.88 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.3494, allocations: 0 / 1.362 GB, free: 14.88 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003026/0.3497, allocations: 39.92 kB / 1.362 GB, free: 14.84 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.0002768/0.35, allocations: 120.5 kB / 1.363 GB, free: 14.72 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005604/0.3506, allocations: 365.4 kB / 1.363 GB, free: 14.32 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3506, allocations: 0 / 1.363 GB, free: 14.32 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002493/0.3508, allocations: 178.7 kB / 1.363 GB, free: 14.12 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.3511, allocations: 23.98 kB / 1.363 GB, free: 14.09 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006639/0.3518, allocations: 326.2 kB / 1.363 GB, free: 13.75 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000358/0.3521, allocations: 0.7041 MB / 1.364 GB, free: 13.02 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.36e-05/0.3522, allocations: 19.42 kB / 1.364 GB, free: 13 MB / 1.061 GB Notification: Performance of SimCode: time 2.9e-07/0.3522, allocations: 0 / 1.364 GB, free: 13 MB / 1.061 GB Notification: Performance of Templates: time 0.004834/0.357, allocations: 2.182 MB / 1.366 GB, free: 10.83 MB / 1.061 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.38490190799348]