Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_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_9_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.001489/0.001489, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001891/0.001891, allocations: 198.5 kB / 16.79 MB, free: 6.809 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.371/1.371, allocations: 222.9 MB / 240.5 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.318/2.318, allocations: 390.2 MB / 0.6649 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 63.88 kB / 0.8125 GB, free: 14.85 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5896/0.591, allocations: 140.4 MB / 0.9496 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002482/0.5935, allocations: 1.662 MB / 0.9512 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000759/0.5943, allocations: 0.6307 MB / 0.9518 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.45e-05/0.5944, allocations: 9.312 kB / 0.9518 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000134/0.5945, allocations: 12.05 kB / 0.9518 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001684/0.5947, allocations: 37.22 kB / 0.9519 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003221/0.595, allocations: 102.1 kB / 0.952 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001318/0.5951, allocations: 164.5 kB / 0.9521 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.5953, allocations: 37.19 kB / 0.9522 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001207/0.5954, allocations: 76.25 kB / 0.9522 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001042/0.5955, allocations: 80.25 kB / 0.9523 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.629e-05/0.5955, allocations: 7.031 kB / 0.9523 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.465e-05/0.5956, allocations: 14.81 kB / 0.9523 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.53e-05/0.5957, allocations: 31.03 kB / 0.9524 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.732e-05/0.5958, allocations: 69.34 kB / 0.9524 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001406/0.5959, allocations: 121.7 kB / 0.9526 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.5959, allocations: 0 / 0.9526 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.71e-07/0.5959, allocations: 0 / 0.9526 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.5959, allocations: 4 kB / 0.9526 GB, free: 6.898 MB / 0.7169 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.000518/0.5965, allocations: 0.5501 MB / 0.9531 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.5965, allocations: 9.75 kB / 0.9531 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.78e-05/0.5966, allocations: 19.38 kB / 0.9531 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002169/0.5968, allocations: 239.2 kB / 0.9534 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.58e-05/0.5968, allocations: 10.03 kB / 0.9534 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.113e-05/0.5969, allocations: 12.09 kB / 0.9534 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002448/0.5971, allocations: 119 kB / 0.9535 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.5971, allocations: 4.953 kB / 0.9535 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.72e-05/0.5971, allocations: 2.188 kB / 0.9535 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.5972, allocations: 1.281 kB / 0.9535 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001836/0.5973, allocations: 66.33 kB / 0.9536 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005127/0.5979, allocations: 425.3 kB / 0.954 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001732/0.598, allocations: 86.56 kB / 0.954 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001402/0.5982, allocations: 80.98 kB / 0.9541 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.156e-05/0.5982, allocations: 1.344 kB / 0.9541 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002215/0.5984, allocations: 181.5 kB / 0.9543 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.463e-06/0.5985, allocations: 0 / 0.9543 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0006643/0.5991, allocations: 347.4 kB / 0.9546 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.898e-05/0.5992, allocations: 166.8 kB / 0.9548 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001261/0.5993, allocations: 177.9 kB / 0.955 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.814e-05/0.5993, allocations: 32.86 kB / 0.955 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.647e-05/0.5994, allocations: 108.5 kB / 0.9551 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.158e-05/0.5994, allocations: 31.89 kB / 0.9551 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.194e-05/0.5995, allocations: 39.45 kB / 0.9552 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.555e-05/0.5995, allocations: 330.1 kB / 0.9555 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001273/0.5997, allocations: 53.69 kB / 0.9555 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/0.5998, allocations: 104 kB / 0.9556 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002559/0.6001, allocations: 313.5 kB / 0.9559 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.6001, allocations: 1.062 kB / 0.9559 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004518/0.6005, allocations: 348.7 kB / 0.9563 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.699e-05/0.6006, allocations: 128.5 kB / 0.9564 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.6006, allocations: 2.188 kB / 0.9564 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.6006, allocations: 2.219 kB / 0.9564 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.6007, allocations: 16.92 kB / 0.9564 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.6008, allocations: 2.688 kB / 0.9564 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.572e-05/0.6009, allocations: 21.55 kB / 0.9564 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.111e-05/0.6009, allocations: 10.88 kB / 0.9564 GB, free: 3.414 MB / 0.7169 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.0001129/0.601, allocations: 197.2 kB / 0.9566 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.525e-05/0.601, allocations: 17.28 kB / 0.9566 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.608e-05/0.6011, allocations: 20.8 kB / 0.9567 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.6011, allocations: 1.188 kB / 0.9567 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.6011, allocations: 0 / 0.9567 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.6011, allocations: 0 / 0.9567 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005678/0.6017, allocations: 0.5832 MB / 0.9572 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.6017, allocations: 0 / 0.9572 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.26e-05/0.6018, allocations: 15.7 kB / 0.9572 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.6018, allocations: 1.094 kB / 0.9572 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.99e-05/0.6018, allocations: 9.578 kB / 0.9573 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.6018, allocations: 0 / 0.9573 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.6018, allocations: 5.406 kB / 0.9573 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004632/0.6023, allocations: 399.8 kB / 0.9576 GB, free: 2.395 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.463e-05/0.6023, allocations: 84.61 kB / 0.9577 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.408e-05/0.6024, allocations: 7.625 kB / 0.9577 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.6025, allocations: 13.3 kB / 0.9577 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.846e-05/0.6025, allocations: 11.47 kB / 0.9578 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.715e-05/0.6025, allocations: 15.19 kB / 0.9578 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.135e-05/0.6026, allocations: 125.6 kB / 0.9579 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6026, allocations: 0 / 0.9579 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002892/0.6029, allocations: 38.97 kB / 0.9579 GB, free: 2.164 MB / 0.7169 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.0002083/0.6031, allocations: 138.5 kB / 0.9581 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004085/0.6035, allocations: 358.1 kB / 0.9584 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.6036, allocations: 1.344 kB / 0.9584 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001972/0.6038, allocations: 213.7 kB / 0.9586 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003028/0.6041, allocations: 19.77 kB / 0.9586 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005257/0.6046, allocations: 346.2 kB / 0.959 GB, free: 1.281 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000126/0.6047, allocations: 0.7084 MB / 0.9596 GB, free: 0.5703 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.429e-05/0.6048, allocations: 13.38 kB / 0.9597 GB, free: 0.5625 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.6048, allocations: 1.25 kB / 0.9597 GB, free: 0.5625 MB / 0.7169 GB Notification: Performance of Templates: time 0.003718/0.6085, allocations: 2.156 MB / 0.9618 GB, free: 15.44 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches