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.001871/0.001871, allocations: 88.72 kB / 19.44 MB, free: 356 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.002339/0.002339, allocations: 161.7 kB / 22.76 MB, free: 1.68 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.474/1.474, allocations: 177.2 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.204/3.204, allocations: 429.6 MB / 0.673 GB, free: 3.883 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 2.054e-06/2.054e-06, allocations: 0 / 0.8776 GB, free: 6.492 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.642e-05/2.847e-05, allocations: 2.312 kB / 0.8776 GB, free: 6.488 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003268/0.003296, allocations: 1.639 MB / 0.8792 GB, free: 4.863 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001347/0.004643, allocations: 0.6565 MB / 0.8798 GB, free: 4.203 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.4e-05/0.004737, allocations: 4.969 kB / 0.8798 GB, free: 4.199 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001727/0.00491, allocations: 15.8 kB / 0.8798 GB, free: 4.184 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0002469/0.005157, allocations: 48.83 kB / 0.8799 GB, free: 4.137 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004991/0.005656, allocations: 119.7 kB / 0.88 GB, free: 4.02 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0003402/0.005996, allocations: 192.6 kB / 0.8802 GB, free: 3.832 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.0061, allocations: 17.62 kB / 0.8802 GB, free: 3.812 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002861/0.006386, allocations: 127.6 kB / 0.8803 GB, free: 3.688 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.006536, allocations: 68.97 kB / 0.8804 GB, free: 3.621 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.779e-05/0.006574, allocations: 12 kB / 0.8804 GB, free: 3.609 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 9.489e-05/0.006668, allocations: 31.98 kB / 0.8804 GB, free: 3.578 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 0.0001009/0.006769, allocations: 32.81 kB / 0.8805 GB, free: 3.547 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 9.837e-05/0.006868, allocations: 55.89 kB / 0.8805 GB, free: 3.492 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003491/0.007217, allocations: 205 kB / 0.8807 GB, free: 3.293 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.00722, allocations: 0 / 0.8807 GB, free: 3.293 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.62e-07/0.00722, allocations: 0 / 0.8807 GB, free: 3.293 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.007226, allocations: 0 / 0.8807 GB, free: 3.293 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.0008142/0.00804, allocations: 492.9 kB / 0.8812 GB, free: 2.758 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.008076, allocations: 9.906 kB / 0.8812 GB, free: 2.75 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000222/0.008298, allocations: 36.84 kB / 0.8812 GB, free: 2.715 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003932/0.008691, allocations: 177.7 kB / 0.8814 GB, free: 2.516 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.008715, allocations: 17.66 kB / 0.8814 GB, free: 2.5 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.351e-05/0.008748, allocations: 12.36 kB / 0.8814 GB, free: 2.488 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003528/0.009101, allocations: 173.5 kB / 0.8816 GB, free: 2.301 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.00911, allocations: 1.25 kB / 0.8816 GB, free: 2.301 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.324e-05/0.009133, allocations: 8.125 kB / 0.8816 GB, free: 2.293 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.009138, allocations: 0 / 0.8816 GB, free: 2.293 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000336/0.009474, allocations: 128.9 kB / 0.8817 GB, free: 2.156 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006957/0.01017, allocations: 338.7 kB / 0.882 GB, free: 1.797 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002669/0.01044, allocations: 141.9 kB / 0.8822 GB, free: 1.637 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002328/0.01067, allocations: 120.2 kB / 0.8823 GB, free: 1.504 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.688e-05/0.0107, allocations: 3.938 kB / 0.8823 GB, free: 1.5 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003633/0.01106, allocations: 252.3 kB / 0.8825 GB, free: 1.219 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.01106, allocations: 0 / 0.8825 GB, free: 1.219 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.00096/0.01202, allocations: 483.6 kB / 0.883 GB, free: 0.7031 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/0.01215, allocations: 166.9 kB / 0.8832 GB, free: 0.5039 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002038/0.01235, allocations: 171.6 kB / 0.8833 GB, free: 328 kB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.666e-05/0.01239, allocations: 34.89 kB / 0.8834 GB, free: 288 kB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.638e-05/0.01248, allocations: 108.4 kB / 0.8835 GB, free: 172 kB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.055e-05/0.01252, allocations: 35.72 kB / 0.8835 GB, free: 136 kB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.522e-05/0.01262, allocations: 45.7 kB / 0.8835 GB, free: 84 kB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001963/0.01282, allocations: 326.8 kB / 0.8838 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002281/0.01304, allocations: 158.8 kB / 0.884 GB, free: 15.57 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002707/0.01331, allocations: 209.6 kB / 0.8842 GB, free: 15.32 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004342/0.01375, allocations: 316.9 kB / 0.8845 GB, free: 14.95 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.01375, allocations: 0 / 0.8845 GB, free: 14.95 MB / 0.8542 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000736/0.01449, allocations: 478.9 kB / 0.885 GB, free: 14.43 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001018/0.01459, allocations: 117.2 kB / 0.8851 GB, free: 14.29 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.0146, allocations: 4 kB / 0.8851 GB, free: 14.29 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.01461, allocations: 4 kB / 0.8851 GB, free: 14.28 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.01473, allocations: 19.98 kB / 0.8851 GB, free: 14.26 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.01474, allocations: 11.88 kB / 0.8851 GB, free: 14.25 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001089/0.01485, allocations: 15.95 kB / 0.8851 GB, free: 14.23 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.59e-05/0.01487, allocations: 11.98 kB / 0.8851 GB, free: 14.22 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.000193/0.01507, allocations: 200 kB / 0.8853 GB, free: 14.01 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.84e-05/0.01512, allocations: 23.89 kB / 0.8853 GB, free: 13.98 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.558e-05/0.01516, allocations: 13.47 kB / 0.8854 GB, free: 13.97 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.01516, allocations: 4 kB / 0.8854 GB, free: 13.97 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.01517, allocations: 0 / 0.8854 GB, free: 13.97 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.01517, allocations: 7.969 kB / 0.8854 GB, free: 13.96 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000883/0.01606, allocations: 0.5789 MB / 0.8859 GB, free: 13.32 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.01606, allocations: 0 / 0.8859 GB, free: 13.32 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.426e-05/0.01613, allocations: 15.92 kB / 0.886 GB, free: 13.3 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.01614, allocations: 0 / 0.886 GB, free: 13.3 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.732e-05/0.01616, allocations: 15.98 kB / 0.886 GB, free: 13.29 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.01616, allocations: 0 / 0.886 GB, free: 13.29 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.01616, allocations: 4 kB / 0.886 GB, free: 13.29 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007387/0.0169, allocations: 478 kB / 0.8864 GB, free: 12.78 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.538e-05/0.01693, allocations: 11.91 kB / 0.8864 GB, free: 12.77 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.796e-05/0.01697, allocations: 8 kB / 0.8864 GB, free: 12.76 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.01709, allocations: 4 kB / 0.8865 GB, free: 12.75 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.48e-05/0.01714, allocations: 11.98 kB / 0.8865 GB, free: 12.74 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/0.01716, allocations: 4 kB / 0.8865 GB, free: 12.74 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.000141/0.0173, allocations: 134.3 kB / 0.8866 GB, free: 12.61 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.41e-07/0.0173, allocations: 0 / 0.8866 GB, free: 12.61 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003219/0.01762, allocations: 47.88 kB / 0.8866 GB, free: 12.56 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.0002648/0.01789, allocations: 114.7 kB / 0.8868 GB, free: 12.44 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0007201/0.01861, allocations: 0.5233 MB / 0.8873 GB, free: 11.83 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.01861, allocations: 4 kB / 0.8873 GB, free: 11.83 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003258/0.01894, allocations: 238.2 kB / 0.8875 GB, free: 11.56 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003441/0.01928, allocations: 30.27 kB / 0.8875 GB, free: 11.53 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007232/0.02, allocations: 351.4 kB / 0.8879 GB, free: 11.15 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001119/0.02011, allocations: 101.4 kB / 0.888 GB, free: 11.03 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 7.535e-05/0.02019, allocations: 20.47 kB / 0.888 GB, free: 11.01 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.256e-05/0.02023, allocations: 16.5 kB / 0.888 GB, free: 11 MB / 0.8542 GB Notification: Performance of SimCode: time 5.61e-07/0.02023, allocations: 0 / 0.888 GB, free: 11 MB / 0.8542 GB Notification: Performance of Templates: time 0.006398/0.02663, allocations: 2.226 MB / 0.8902 GB, free: 8.824 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=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/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.070301657076925]