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.002403/0.002403, allocations: 85.48 kB / 19.44 MB, free: 336 kB / 13.93 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.002727/0.002727, allocations: 173.2 kB / 22.76 MB, free: 1.656 MB / 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.581/1.581, allocations: 177.1 MB / 203.1 MB, free: 5.602 MB / 186.7 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.378/3.378, allocations: 429.4 MB / 0.6729 GB, free: 4.016 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.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: Performance of FrontEnd - loaded program: time 1.362e-06/1.362e-06, allocations: 0 / 0.8774 GB, free: 6.684 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.373e-05/2.509e-05, allocations: 7.938 kB / 0.8774 GB, free: 6.676 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003345/0.00337, allocations: 1.66 MB / 0.8791 GB, free: 5.031 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001344/0.004714, allocations: 0.6621 MB / 0.8797 GB, free: 4.367 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.004816, allocations: 7.938 kB / 0.8797 GB, free: 4.359 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001801/0.004996, allocations: 11.86 kB / 0.8797 GB, free: 4.348 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0002604/0.005257, allocations: 55.62 kB / 0.8798 GB, free: 4.293 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004388/0.005695, allocations: 121.5 kB / 0.8799 GB, free: 4.176 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0003372/0.006032, allocations: 191.6 kB / 0.8801 GB, free: 3.988 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.006159, allocations: 17.62 kB / 0.8801 GB, free: 3.969 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002759/0.006435, allocations: 119.7 kB / 0.8802 GB, free: 3.852 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001516/0.006586, allocations: 76.55 kB / 0.8803 GB, free: 3.777 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 4.704e-05/0.006633, allocations: 12 kB / 0.8803 GB, free: 3.766 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 9.954e-05/0.006733, allocations: 33.64 kB / 0.8803 GB, free: 3.734 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 9.897e-05/0.006832, allocations: 31.84 kB / 0.8803 GB, free: 3.703 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 9.778e-05/0.00693, allocations: 55.89 kB / 0.8804 GB, free: 3.648 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.000341/0.007271, allocations: 203.4 kB / 0.8806 GB, free: 3.449 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.007276, allocations: 0.5 kB / 0.8806 GB, free: 3.449 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.333e-06/0.007277, allocations: 0 / 0.8806 GB, free: 3.449 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.007283, allocations: 1.844 kB / 0.8806 GB, free: 3.449 MB / 0.8386 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.0008593/0.008142, allocations: 0.5843 MB / 0.8812 GB, free: 2.805 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.00818, allocations: 12.03 kB / 0.8812 GB, free: 2.793 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001972/0.008377, allocations: 28.84 kB / 0.8812 GB, free: 2.766 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003486/0.008726, allocations: 186.1 kB / 0.8814 GB, free: 2.559 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.008748, allocations: 8.375 kB / 0.8814 GB, free: 2.551 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.246e-05/0.00878, allocations: 17.91 kB / 0.8814 GB, free: 2.535 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003191/0.009099, allocations: 165.5 kB / 0.8816 GB, free: 2.355 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.009109, allocations: 192 / 0.8816 GB, free: 2.355 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.034e-05/0.00913, allocations: 8.125 kB / 0.8816 GB, free: 2.348 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.087e-06/0.009134, allocations: 4 kB / 0.8816 GB, free: 2.344 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002342/0.009368, allocations: 119.4 kB / 0.8817 GB, free: 2.215 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000713/0.01008, allocations: 403.5 kB / 0.8821 GB, free: 1.785 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002519/0.01033, allocations: 138.4 kB / 0.8822 GB, free: 1.625 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001984/0.01053, allocations: 123.1 kB / 0.8823 GB, free: 1.488 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.953e-05/0.01056, allocations: 11.92 kB / 0.8823 GB, free: 1.477 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003573/0.01092, allocations: 239.8 kB / 0.8826 GB, free: 1.203 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.232e-06/0.01092, allocations: 4 kB / 0.8826 GB, free: 1.199 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0009196/0.01184, allocations: 467.6 kB / 0.883 GB, free: 0.6992 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001309/0.01197, allocations: 166.2 kB / 0.8832 GB, free: 0.5 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002636/0.01223, allocations: 250.7 kB / 0.8834 GB, free: 240 kB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.892e-05/0.01226, allocations: 25.7 kB / 0.8834 GB, free: 208 kB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001253/0.01239, allocations: 167.2 kB / 0.8836 GB, free: 32 kB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.651e-05/0.01242, allocations: 27.75 kB / 0.8836 GB, free: 4 kB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.01254, allocations: 51.44 kB / 0.8837 GB, free: 15.94 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002719/0.01281, allocations: 0.5001 MB / 0.8842 GB, free: 15.43 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002208/0.01303, allocations: 158.8 kB / 0.8843 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002788/0.01331, allocations: 232.3 kB / 0.8845 GB, free: 14.96 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000522/0.01383, allocations: 315.6 kB / 0.8848 GB, free: 14.59 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.01383, allocations: 4 kB / 0.8848 GB, free: 14.58 MB / 0.8542 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0007043/0.01454, allocations: 462.9 kB / 0.8853 GB, free: 14.07 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 9.979e-05/0.01464, allocations: 114.8 kB / 0.8854 GB, free: 13.94 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.01464, allocations: 4 kB / 0.8854 GB, free: 13.93 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.01466, allocations: 0 / 0.8854 GB, free: 13.93 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.01476, allocations: 15.98 kB / 0.8854 GB, free: 13.92 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.01478, allocations: 8.188 kB / 0.8854 GB, free: 13.91 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.583e-05/0.01487, allocations: 23.89 kB / 0.8854 GB, free: 13.89 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.254e-05/0.0149, allocations: 8 kB / 0.8854 GB, free: 13.88 MB / 0.8542 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.000211/0.01511, allocations: 235.9 kB / 0.8857 GB, free: 13.62 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.341e-05/0.01516, allocations: 27.89 kB / 0.8857 GB, free: 13.6 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.419e-05/0.01521, allocations: 17.45 kB / 0.8857 GB, free: 13.58 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.01521, allocations: 0 / 0.8857 GB, free: 13.58 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.01521, allocations: 0 / 0.8857 GB, free: 13.58 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.01521, allocations: 0 / 0.8857 GB, free: 13.58 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000903/0.01612, allocations: 0.6444 MB / 0.8863 GB, free: 12.87 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.01612, allocations: 4 kB / 0.8863 GB, free: 12.87 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.645e-05/0.01619, allocations: 15.92 kB / 0.8864 GB, free: 12.85 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.01619, allocations: 0 / 0.8864 GB, free: 12.85 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.371e-05/0.01621, allocations: 11.98 kB / 0.8864 GB, free: 12.84 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.01621, allocations: 4 kB / 0.8864 GB, free: 12.84 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.01622, allocations: 0 / 0.8864 GB, free: 12.84 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007343/0.01695, allocations: 0.5063 MB / 0.8869 GB, free: 12.29 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.177e-05/0.01697, allocations: 15.84 kB / 0.8869 GB, free: 12.27 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.042e-05/0.01701, allocations: 8 kB / 0.8869 GB, free: 12.26 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.01712, allocations: 15.98 kB / 0.8869 GB, free: 12.25 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.958e-05/0.01717, allocations: 7.984 kB / 0.8869 GB, free: 12.24 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.059e-05/0.0172, allocations: 8 kB / 0.8869 GB, free: 12.23 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001601/0.01736, allocations: 170.2 kB / 0.8871 GB, free: 12.07 MB / 0.8542 GB Notification: Performance of sort global known variables: time 8e-08/0.01736, allocations: 0 / 0.8871 GB, free: 12.07 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002996/0.01765, allocations: 43.92 kB / 0.8871 GB, free: 12.02 MB / 0.8542 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.0003046/0.01796, allocations: 132.6 kB / 0.8873 GB, free: 11.89 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0007049/0.01866, allocations: 0.5267 MB / 0.8878 GB, free: 11.27 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.01867, allocations: 0 / 0.8878 GB, free: 11.27 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.000318/0.01898, allocations: 253.8 kB / 0.888 GB, free: 10.98 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003344/0.01932, allocations: 31.92 kB / 0.888 GB, free: 10.95 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006829/0.02, allocations: 349.2 kB / 0.8884 GB, free: 10.57 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001088/0.02011, allocations: 101.1 kB / 0.8885 GB, free: 10.45 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 6.706e-05/0.02018, allocations: 20.47 kB / 0.8885 GB, free: 10.43 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.935e-05/0.02022, allocations: 12.5 kB / 0.8885 GB, free: 10.42 MB / 0.8542 GB Notification: Performance of SimCode: time 4.71e-07/0.02022, allocations: 0 / 0.8885 GB, free: 10.42 MB / 0.8542 GB Notification: Performance of Templates: time 0.006346/0.02656, allocations: 2.217 MB / 0.8907 GB, free: 8.25 MB / 0.8542 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 240] 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/jenkins/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.498494363971986]