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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 109.4 kB / 17.08 MB, free: 5.984 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 192.7 kB / 20.03 MB, free: 3.059 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 222.9 MB / 245.7 MB, free: 4.195 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.89/2.89, allocations: 489.2 MB / 0.7687 GB, free: 3.809 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001949/0.001949, allocations: 67.88 kB / 1.103 GB, free: 0.8008 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.014/1.016, allocations: 163.8 MB / 1.263 GB, free: 7.988 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002957/1.019, allocations: 1.624 MB / 1.264 GB, free: 6.879 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001027/1.02, allocations: 0.6028 MB / 1.265 GB, free: 6.465 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.375e-05/1.02, allocations: 4.531 kB / 1.265 GB, free: 6.465 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001672/1.02, allocations: 25.5 kB / 1.265 GB, free: 6.445 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002309/1.02, allocations: 48.28 kB / 1.265 GB, free: 6.414 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003645/1.021, allocations: 107.4 kB / 1.265 GB, free: 6.359 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002962/1.021, allocations: 200.7 kB / 1.265 GB, free: 6.27 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001244/1.021, allocations: 20.56 kB / 1.265 GB, free: 6.266 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001684/1.021, allocations: 82.56 kB / 1.265 GB, free: 6.234 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/1.021, allocations: 88.12 kB / 1.265 GB, free: 6.195 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.84e-05/1.021, allocations: 17.38 kB / 1.265 GB, free: 6.191 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.342e-05/1.021, allocations: 30.84 kB / 1.265 GB, free: 6.184 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 9.588e-05/1.022, allocations: 35.23 kB / 1.265 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001191/1.022, allocations: 68.97 kB / 1.265 GB, free: 6.129 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003076/1.022, allocations: 172.4 kB / 1.266 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/1.022, allocations: 0 / 1.266 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.974e-06/1.022, allocations: 0 / 1.266 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.703e-06/1.022, allocations: 0.9375 kB / 1.266 GB, free: 6.062 MB / 0.9981 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.000659/1.023, allocations: 0.5648 MB / 1.266 GB, free: 5.508 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/1.023, allocations: 9.906 kB / 1.266 GB, free: 5.508 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.901e-05/1.023, allocations: 16.14 kB / 1.266 GB, free: 5.504 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003367/1.023, allocations: 233.6 kB / 1.266 GB, free: 5.277 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.521e-05/1.023, allocations: 11.16 kB / 1.266 GB, free: 5.273 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.698e-05/1.023, allocations: 15 kB / 1.266 GB, free: 5.27 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003215/1.024, allocations: 120 kB / 1.267 GB, free: 5.211 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/1.024, allocations: 4 kB / 1.267 GB, free: 5.207 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.079e-05/1.024, allocations: 3.312 kB / 1.267 GB, free: 5.207 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/1.024, allocations: 4.734 kB / 1.267 GB, free: 5.203 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002217/1.024, allocations: 68.92 kB / 1.267 GB, free: 5.188 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006646/1.025, allocations: 423 kB / 1.267 GB, free: 4.855 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002318/1.025, allocations: 90.09 kB / 1.267 GB, free: 4.809 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001869/1.025, allocations: 75.58 kB / 1.267 GB, free: 4.781 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.22e-05/1.025, allocations: 6.031 kB / 1.267 GB, free: 4.777 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002964/1.025, allocations: 178.5 kB / 1.267 GB, free: 4.645 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/1.025, allocations: 0 / 1.267 GB, free: 4.645 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10): time 0.0008487/1.026, allocations: 359.2 kB / 1.268 GB, free: 4.473 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.206e-05/1.026, allocations: 162.2 kB / 1.268 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001838/1.026, allocations: 173.4 kB / 1.268 GB, free: 4.16 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.116e-05/1.026, allocations: 29.69 kB / 1.268 GB, free: 4.129 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.247e-05/1.027, allocations: 111 kB / 1.268 GB, free: 4.023 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.068e-05/1.027, allocations: 29.44 kB / 1.268 GB, free: 4 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.933e-05/1.027, allocations: 43.62 kB / 1.268 GB, free: 3.973 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.911e-05/1.027, allocations: 331.6 kB / 1.269 GB, free: 3.648 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001489/1.027, allocations: 50.08 kB / 1.269 GB, free: 3.637 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001701/1.027, allocations: 101.8 kB / 1.269 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003367/1.027, allocations: 316.7 kB / 1.269 GB, free: 3.262 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/1.027, allocations: 0.75 kB / 1.269 GB, free: 3.262 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000568/1.028, allocations: 344.1 kB / 1.269 GB, free: 3.047 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.912e-05/1.028, allocations: 119.6 kB / 1.269 GB, free: 2.918 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/1.028, allocations: 3.188 kB / 1.269 GB, free: 2.918 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/1.028, allocations: 2.5 kB / 1.269 GB, free: 2.918 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/1.028, allocations: 20.2 kB / 1.269 GB, free: 2.914 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/1.028, allocations: 3.234 kB / 1.269 GB, free: 2.914 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.989e-05/1.028, allocations: 14.86 kB / 1.269 GB, free: 2.91 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.82e-05/1.028, allocations: 9.109 kB / 1.269 GB, free: 2.91 MB / 0.9981 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.0001375/1.029, allocations: 204.8 kB / 1.27 GB, free: 2.711 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.701e-05/1.029, allocations: 17.66 kB / 1.27 GB, free: 2.703 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.165e-05/1.029, allocations: 15.05 kB / 1.27 GB, free: 2.684 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/1.029, allocations: 0.9375 kB / 1.27 GB, free: 2.684 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/1.029, allocations: 4.781 kB / 1.27 GB, free: 2.68 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/1.029, allocations: 0.75 kB / 1.27 GB, free: 2.68 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007551/1.029, allocations: 0.5846 MB / 1.27 GB, free: 2.238 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/1.029, allocations: 0 / 1.27 GB, free: 2.238 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.82e-05/1.029, allocations: 11.45 kB / 1.27 GB, free: 2.238 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/1.029, allocations: 4.75 kB / 1.27 GB, free: 2.234 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.481e-05/1.03, allocations: 11.06 kB / 1.27 GB, free: 2.23 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/1.03, allocations: 1.094 kB / 1.27 GB, free: 2.23 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/1.03, allocations: 7.938 kB / 1.27 GB, free: 2.223 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005629/1.03, allocations: 400.5 kB / 1.271 GB, free: 1.969 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.964e-05/1.03, allocations: 88.66 kB / 1.271 GB, free: 1.867 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.757e-05/1.03, allocations: 13.28 kB / 1.271 GB, free: 1.859 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/1.03, allocations: 7.891 kB / 1.271 GB, free: 1.859 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.1e-05/1.03, allocations: 13.69 kB / 1.271 GB, free: 1.852 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.029e-05/1.03, allocations: 12.11 kB / 1.271 GB, free: 1.848 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 9.903e-05/1.03, allocations: 133 kB / 1.271 GB, free: 1.754 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/1.031, allocations: 1.188 kB / 1.271 GB, free: 1.754 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003072/1.031, allocations: 30.94 kB / 1.271 GB, free: 1.754 MB / 0.9981 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.0002875/1.031, allocations: 138.8 kB / 1.271 GB, free: 1.645 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004911/1.032, allocations: 357.2 kB / 1.271 GB, free: 1.359 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/1.032, allocations: 0 / 1.271 GB, free: 1.359 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002367/1.032, allocations: 208.4 kB / 1.272 GB, free: 1.199 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003143/1.032, allocations: 19.67 kB / 1.272 GB, free: 1.195 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006431/1.033, allocations: 331.9 kB / 1.272 GB, free: 0.9609 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003353/1.033, allocations: 0.7099 MB / 1.273 GB, free: 16.26 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.086e-05/1.033, allocations: 15.47 kB / 1.273 GB, free: 16.25 MB / 1.014 GB Notification: Performance of SimCode: time 2.41e-07/1.033, allocations: 0 / 1.273 GB, free: 16.25 MB / 1.014 GB Notification: Performance of Templates: time 0.005019/1.038, allocations: 2.173 MB / 1.275 GB, free: 15.97 MB / 1.014 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 -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_2/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.273896191967651]