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.001392/0.001392, allocations: 76.81 kB / 20.75 MB, free: 3.738 MB / 18.57 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.001628/0.001628, allocations: 161 kB / 24.17 MB, free: 328 kB / 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 1.035/1.035, allocations: 177.1 MB / 204.6 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.974/1.974, allocations: 377.9 MB / 0.624 GB, free: 8.359 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 0.76 GB, free: 6.609 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.846e-05/1.985e-05, allocations: 2.906 kB / 0.76 GB, free: 6.605 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002237/0.002257, allocations: 1.734 MB / 0.7617 GB, free: 4.883 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.0007664/0.003024, allocations: 0.6784 MB / 0.7624 GB, free: 4.207 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.295e-05/0.003086, allocations: 0 / 0.7624 GB, free: 4.207 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001372/0.003224, allocations: 23.73 kB / 0.7624 GB, free: 4.184 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0001808/0.003405, allocations: 47.03 kB / 0.7625 GB, free: 4.145 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002555/0.00366, allocations: 120.9 kB / 0.7626 GB, free: 4.027 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0001994/0.003859, allocations: 199.7 kB / 0.7628 GB, free: 3.84 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 9.346e-05/0.003953, allocations: 27.62 kB / 0.7628 GB, free: 3.809 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001912/0.004144, allocations: 119.8 kB / 0.7629 GB, free: 3.691 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001625/0.004307, allocations: 71.84 kB / 0.763 GB, free: 3.621 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 2.769e-05/0.004334, allocations: 12.62 kB / 0.763 GB, free: 3.609 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 7.016e-05/0.004404, allocations: 31.98 kB / 0.763 GB, free: 3.578 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 6.091e-05/0.004465, allocations: 28.66 kB / 0.7631 GB, free: 3.551 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 5.42e-05/0.00452, allocations: 60.48 kB / 0.7631 GB, free: 3.492 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001729/0.004692, allocations: 147.5 kB / 0.7633 GB, free: 3.348 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.004695, allocations: 0.75 kB / 0.7633 GB, free: 3.348 MB / 0.7136 GB Notification: Performance of FrontEnd: time 7.61e-07/0.004695, allocations: 0 / 0.7633 GB, free: 3.348 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.128e-06/0.0047, allocations: 4.812 kB / 0.7633 GB, free: 3.344 MB / 0.7136 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.0004119/0.005111, allocations: 471 kB / 0.7637 GB, free: 2.836 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.005147, allocations: 13.34 kB / 0.7637 GB, free: 2.824 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001203/0.005268, allocations: 28.91 kB / 0.7637 GB, free: 2.797 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001832/0.005451, allocations: 170 kB / 0.7639 GB, free: 2.605 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.005464, allocations: 9.531 kB / 0.7639 GB, free: 2.598 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.674e-05/0.005481, allocations: 12.38 kB / 0.7639 GB, free: 2.586 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000153/0.005633, allocations: 158.3 kB / 0.7641 GB, free: 2.41 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.191e-06/0.00564, allocations: 1.281 kB / 0.7641 GB, free: 2.41 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-06/0.005649, allocations: 4.375 kB / 0.7641 GB, free: 2.406 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.005653, allocations: 5.188 kB / 0.7641 GB, free: 2.402 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.739e-05/0.005711, allocations: 87.33 kB / 0.7642 GB, free: 2.305 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003085/0.006019, allocations: 235.8 kB / 0.7644 GB, free: 2.059 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 9.141e-05/0.006111, allocations: 105.9 kB / 0.7645 GB, free: 1.934 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.872e-05/0.006169, allocations: 99.12 kB / 0.7646 GB, free: 1.824 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.804e-05/0.006187, allocations: 0 / 0.7646 GB, free: 1.824 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001247/0.006312, allocations: 206.1 kB / 0.7648 GB, free: 1.586 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=10): time 1.012e-06/0.006313, allocations: 0 / 0.7648 GB, free: 1.586 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10): time 0.0002419/0.006555, allocations: 323.7 kB / 0.7651 GB, free: 1.227 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.563e-05/0.006611, allocations: 158.2 kB / 0.7653 GB, free: 1.035 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.494e-05/0.006705, allocations: 175.9 kB / 0.7654 GB, free: 0.8477 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.512e-05/0.006721, allocations: 36.48 kB / 0.7655 GB, free: 0.8086 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.616e-05/0.006757, allocations: 96.34 kB / 0.7655 GB, free: 0.707 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.199e-05/0.006779, allocations: 27.73 kB / 0.7656 GB, free: 0.6797 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.72e-05/0.006826, allocations: 41.69 kB / 0.7656 GB, free: 0.6328 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 7.396e-05/0.0069, allocations: 330.8 kB / 0.7659 GB, free: 308 kB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.485e-05/0.006975, allocations: 137.6 kB / 0.7661 GB, free: 144 kB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.875e-05/0.007073, allocations: 191.7 kB / 0.7662 GB, free: 15.91 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000289/0.007362, allocations: 269.5 kB / 0.7665 GB, free: 15.58 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.007365, allocations: 0 / 0.7665 GB, free: 15.58 MB / 0.7292 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001986/0.007563, allocations: 355.2 kB / 0.7668 GB, free: 15.18 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 5.477e-05/0.007618, allocations: 122.7 kB / 0.767 GB, free: 15.04 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.007624, allocations: 0 / 0.767 GB, free: 15.04 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.007636, allocations: 4 kB / 0.767 GB, free: 15.03 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.243e-05/0.007709, allocations: 19.92 kB / 0.767 GB, free: 15.01 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.007713, allocations: 6.094 kB / 0.767 GB, free: 15.01 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.406e-05/0.007757, allocations: 8 kB / 0.767 GB, free: 15 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.302e-05/0.00777, allocations: 11.98 kB / 0.767 GB, free: 14.99 MB / 0.7292 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.0001012/0.007871, allocations: 197.2 kB / 0.7672 GB, free: 14.77 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.209e-05/0.007894, allocations: 15.98 kB / 0.7672 GB, free: 14.76 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.988e-05/0.007923, allocations: 18.44 kB / 0.7672 GB, free: 14.74 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.007926, allocations: 4 kB / 0.7672 GB, free: 14.73 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.007929, allocations: 0 / 0.7672 GB, free: 14.73 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.007932, allocations: 4.922 kB / 0.7672 GB, free: 14.73 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002691/0.008201, allocations: 405.4 kB / 0.7676 GB, free: 14.29 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.008203, allocations: 2.469 kB / 0.7676 GB, free: 14.29 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.544e-05/0.008238, allocations: 11.98 kB / 0.7676 GB, free: 14.27 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.008242, allocations: 7.922 kB / 0.7676 GB, free: 14.27 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/0.008254, allocations: 8 kB / 0.7676 GB, free: 14.26 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.008255, allocations: 3.938 kB / 0.7677 GB, free: 14.25 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.008256, allocations: 0 / 0.7677 GB, free: 14.25 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001756/0.008432, allocations: 336.6 kB / 0.768 GB, free: 13.89 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 1.083e-05/0.008442, allocations: 11.94 kB / 0.768 GB, free: 13.88 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.151e-05/0.008464, allocations: 7.938 kB / 0.768 GB, free: 13.87 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.965e-05/0.008514, allocations: 4 kB / 0.768 GB, free: 13.86 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.33e-05/0.008547, allocations: 11.98 kB / 0.768 GB, free: 13.85 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.03e-05/0.008557, allocations: 4 kB / 0.768 GB, free: 13.85 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 3.674e-05/0.008594, allocations: 51.28 kB / 0.7681 GB, free: 13.8 MB / 0.7292 GB Notification: Performance of sort global known variables: time 5e-08/0.008594, allocations: 1.312 kB / 0.7681 GB, free: 13.8 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0001676/0.008762, allocations: 43.89 kB / 0.7681 GB, free: 13.75 MB / 0.7292 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.0001878/0.008949, allocations: 102.9 kB / 0.7682 GB, free: 13.65 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002491/0.009198, allocations: 481.4 kB / 0.7687 GB, free: 13.1 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.009202, allocations: 0.75 kB / 0.7687 GB, free: 13.1 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 9.983e-05/0.009302, allocations: 223.2 kB / 0.7689 GB, free: 12.84 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001658/0.009468, allocations: 24.61 kB / 0.7689 GB, free: 12.82 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005262/0.009994, allocations: 343.6 kB / 0.7692 GB, free: 12.45 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.595e-05/0.01003, allocations: 63.94 kB / 0.7693 GB, free: 12.36 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 3.446e-05/0.01006, allocations: 13.98 kB / 0.7693 GB, free: 12.35 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.01018, allocations: 91.34 kB / 0.7694 GB, free: 12.26 MB / 0.7292 GB Notification: Performance of SimCode: time 9.22e-07/0.01018, allocations: 0 / 0.7694 GB, free: 12.26 MB / 0.7292 GB Notification: Performance of Templates: time 0.004025/0.01421, allocations: 2.338 MB / 0.7717 GB, free: 10.09 MB / 0.7292 GB " [Timeout remaining time 300] 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.1506952797062695]