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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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=5000,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=5000,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006879/0.006879, allocations: 107.4 kB / 15.74 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001564/0.001564, allocations: 197 kB / 16.67 MB, free: 5.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.591/2.591, allocations: 461.9 MB / 0.7348 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 67.89 kB / 1.054 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9166/0.9179, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003135/0.9211, allocations: 1.619 MB / 1.209 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009462/0.9221, allocations: 0.6078 MB / 1.21 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.41e-05/0.9222, allocations: 3.938 kB / 1.21 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001651/0.9223, allocations: 19.84 kB / 1.21 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0002139/0.9226, allocations: 39.77 kB / 1.21 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003874/0.923, allocations: 115.8 kB / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002956/0.9233, allocations: 203.5 kB / 1.21 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.9234, allocations: 25.12 kB / 1.21 GB, free: 11 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001779/0.9236, allocations: 87.73 kB / 1.21 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001367/0.9237, allocations: 79.72 kB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.906e-05/0.9238, allocations: 12 kB / 1.21 GB, free: 10.83 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.315e-05/0.9239, allocations: 31.94 kB / 1.21 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 9.721e-05/0.924, allocations: 31.91 kB / 1.211 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001255/0.9241, allocations: 75.59 kB / 1.211 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002454/0.9244, allocations: 167.5 kB / 1.211 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.9244, allocations: 4 kB / 1.211 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.373e-06/0.9244, allocations: 0 / 1.211 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.47e-06/0.9244, allocations: 4 kB / 1.211 GB, free: 10.52 MB / 0.9356 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.0007419/0.9251, allocations: 0.5463 MB / 1.211 GB, free: 9.906 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.9252, allocations: 8.031 kB / 1.211 GB, free: 9.898 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.843e-05/0.9253, allocations: 20.75 kB / 1.211 GB, free: 9.879 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003264/0.9256, allocations: 241.3 kB / 1.212 GB, free: 9.605 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/0.9256, allocations: 24.23 kB / 1.212 GB, free: 9.582 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.904e-05/0.9256, allocations: 16.38 kB / 1.212 GB, free: 9.566 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002736/0.9259, allocations: 109.8 kB / 1.212 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.9259, allocations: 0 / 1.212 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.062e-05/0.926, allocations: 7.984 kB / 1.212 GB, free: 9.445 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.926, allocations: 0 / 1.212 GB, free: 9.445 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000191/0.9262, allocations: 67.95 kB / 1.212 GB, free: 9.379 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006864/0.9269, allocations: 420.6 kB / 1.212 GB, free: 8.918 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001942/0.9271, allocations: 82.55 kB / 1.212 GB, free: 8.828 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001523/0.9272, allocations: 76.91 kB / 1.212 GB, free: 8.75 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.725e-05/0.9273, allocations: 7.922 kB / 1.212 GB, free: 8.742 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002637/0.9275, allocations: 182.7 kB / 1.212 GB, free: 8.539 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=10): time 1.683e-06/0.9276, allocations: 0 / 1.212 GB, free: 8.539 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10): time 0.0007206/0.9283, allocations: 352.8 kB / 1.213 GB, free: 8.176 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001326/0.9284, allocations: 166.2 kB / 1.213 GB, free: 7.977 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001699/0.9286, allocations: 171.2 kB / 1.213 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.746e-05/0.9286, allocations: 33.98 kB / 1.213 GB, free: 7.754 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.9288, allocations: 112.3 kB / 1.213 GB, free: 7.637 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.246e-05/0.9288, allocations: 31.64 kB / 1.213 GB, free: 7.605 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.037e-05/0.9289, allocations: 41.64 kB / 1.213 GB, free: 7.559 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001576/0.929, allocations: 326.8 kB / 1.214 GB, free: 7.23 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001353/0.9292, allocations: 51.97 kB / 1.214 GB, free: 7.18 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001696/0.9294, allocations: 109.5 kB / 1.214 GB, free: 7.051 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003558/0.9297, allocations: 312.9 kB / 1.214 GB, free: 6.684 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.9297, allocations: 4 kB / 1.214 GB, free: 6.68 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005077/0.9303, allocations: 344 kB / 1.214 GB, free: 6.312 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 8.586e-05/0.9304, allocations: 123 kB / 1.215 GB, free: 6.168 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.9304, allocations: 4 kB / 1.215 GB, free: 6.164 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.9304, allocations: 0 / 1.215 GB, free: 6.164 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.9305, allocations: 19.98 kB / 1.215 GB, free: 6.145 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.679e-06/0.9305, allocations: 3.938 kB / 1.215 GB, free: 6.141 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.507e-05/0.9306, allocations: 15.92 kB / 1.215 GB, free: 6.125 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.348e-05/0.9307, allocations: 12 kB / 1.215 GB, free: 6.113 MB / 0.9356 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.0001728/0.9308, allocations: 193.2 kB / 1.215 GB, free: 5.902 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.443e-05/0.9309, allocations: 19.75 kB / 1.215 GB, free: 5.883 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.291e-05/0.9309, allocations: 21.39 kB / 1.215 GB, free: 5.855 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.9309, allocations: 4 kB / 1.215 GB, free: 5.852 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.931, allocations: 0 / 1.215 GB, free: 5.852 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.931, allocations: 0 / 1.215 GB, free: 5.852 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007511/0.9317, allocations: 0.5798 MB / 1.215 GB, free: 5.203 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.9317, allocations: 4 kB / 1.215 GB, free: 5.199 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.344e-05/0.9318, allocations: 15.98 kB / 1.215 GB, free: 5.184 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.9318, allocations: 0 / 1.215 GB, free: 5.184 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.253e-05/0.9318, allocations: 15.92 kB / 1.215 GB, free: 5.168 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.9319, allocations: 0 / 1.215 GB, free: 5.168 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.9319, allocations: 3.938 kB / 1.215 GB, free: 5.164 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006304/0.9325, allocations: 402.6 kB / 1.216 GB, free: 4.742 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.362e-05/0.9326, allocations: 84.92 kB / 1.216 GB, free: 4.641 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.224e-05/0.9326, allocations: 4 kB / 1.216 GB, free: 4.637 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.9327, allocations: 23.92 kB / 1.216 GB, free: 4.613 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.061e-05/0.9328, allocations: 7.938 kB / 1.216 GB, free: 4.605 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.822e-05/0.9328, allocations: 11.92 kB / 1.216 GB, free: 4.594 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001059/0.9329, allocations: 127.2 kB / 1.216 GB, free: 4.469 MB / 0.9356 GB Notification: Performance of sort global known variables: time 3e-07/0.9329, allocations: 0 / 1.216 GB, free: 4.469 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003008/0.9332, allocations: 39.94 kB / 1.216 GB, free: 4.43 MB / 0.9356 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.0002703/0.9335, allocations: 124.5 kB / 1.216 GB, free: 4.305 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004941/0.934, allocations: 357.5 kB / 1.217 GB, free: 3.906 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.934, allocations: 0 / 1.217 GB, free: 3.906 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000229/0.9343, allocations: 211.2 kB / 1.217 GB, free: 3.676 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002999/0.9346, allocations: 23.92 kB / 1.217 GB, free: 3.652 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000602/0.9352, allocations: 288 kB / 1.217 GB, free: 3.348 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003991/0.9356, allocations: 0.7119 MB / 1.218 GB, free: 2.609 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.474e-05/0.9357, allocations: 20.48 kB / 1.218 GB, free: 2.59 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.741e-05/0.9357, allocations: 23.42 kB / 1.218 GB, free: 2.566 MB / 0.9356 GB Notification: Performance of SimCode: time 2.81e-07/0.9357, allocations: 0 / 1.218 GB, free: 2.566 MB / 0.9356 GB Notification: Performance of Templates: time 0.005449/0.9412, allocations: 2.128 MB / 1.22 GB, free: 484 kB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) 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) Reference file matches