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 12.0.0-master/package.mo", uses=false) 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=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.001525/0.001525, allocations: 108 kB / 15.61 MB, free: 152 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.001811/0.00181, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.345/1.345, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.772/2.772, allocations: 472.6 MB / 0.7451 GB, free: 4.648 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 60.39 kB / 0.912 GB, free: 33.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3163/0.3176, allocations: 159.9 MB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.005052/0.3227, allocations: 1.61 MB / 1.07 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001844/0.3245, allocations: 0.6155 MB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001183/0.3247, allocations: 7.938 kB / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002315/0.3249, allocations: 11.88 kB / 1.07 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003419/0.3253, allocations: 47.12 kB / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008399/0.3262, allocations: 123.6 kB / 1.071 GB, free: 8 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004281/0.3266, allocations: 195.6 kB / 1.071 GB, free: 7.809 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001923/0.3269, allocations: 33.09 kB / 1.071 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002384/0.3271, allocations: 79.81 kB / 1.071 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002412/0.3274, allocations: 87.66 kB / 1.071 GB, free: 7.613 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.88e-05/0.3275, allocations: 16 kB / 1.071 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001108/0.3276, allocations: 20 kB / 1.071 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001197/0.3277, allocations: 31.91 kB / 1.071 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001575/0.3279, allocations: 79.64 kB / 1.071 GB, free: 7.469 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003578/0.3283, allocations: 163.8 kB / 1.071 GB, free: 7.309 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.3283, allocations: 4 kB / 1.071 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.783e-06/0.3283, allocations: 0 / 1.071 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.148e-05/0.3283, allocations: 0 / 1.071 GB, free: 7.305 MB / 0.8262 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.001083/0.3294, allocations: 0.5524 MB / 1.072 GB, free: 6.68 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.3295, allocations: 8.031 kB / 1.072 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.3296, allocations: 20.75 kB / 1.072 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000504/0.3301, allocations: 241.1 kB / 1.072 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.687e-05/0.3302, allocations: 4.375 kB / 1.072 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.232e-05/0.3302, allocations: 16.38 kB / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004553/0.3307, allocations: 125.6 kB / 1.072 GB, free: 6.23 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.3307, allocations: 0 / 1.072 GB, free: 6.23 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.611e-05/0.3308, allocations: 0 / 1.072 GB, free: 6.23 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.198e-06/0.3308, allocations: 4 kB / 1.072 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003724/0.3312, allocations: 63.95 kB / 1.072 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00105/0.3323, allocations: 416.6 kB / 1.073 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003225/0.3326, allocations: 90.53 kB / 1.073 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003211/0.3329, allocations: 76.81 kB / 1.073 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.311e-05/0.333, allocations: 4 kB / 1.073 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005522/0.3336, allocations: 178.9 kB / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 2.685e-06/0.3336, allocations: 0 / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.001312/0.3349, allocations: 356.6 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001444/0.3351, allocations: 166.2 kB / 1.073 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002855/0.3354, allocations: 183.1 kB / 1.074 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.438e-05/0.3354, allocations: 33.7 kB / 1.074 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.3356, allocations: 108.3 kB / 1.074 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.024e-05/0.3356, allocations: 27.69 kB / 1.074 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001226/0.3358, allocations: 37.7 kB / 1.074 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001795/0.336, allocations: 330.8 kB / 1.074 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002485/0.3362, allocations: 47.95 kB / 1.074 GB, free: 3.973 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003188/0.3366, allocations: 106.9 kB / 1.074 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006369/0.3372, allocations: 308.9 kB / 1.075 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.3372, allocations: 0 / 1.075 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.001052/0.3383, allocations: 348 kB / 1.075 GB, free: 3.109 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.000128/0.3385, allocations: 122.8 kB / 1.075 GB, free: 2.965 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/0.3385, allocations: 3.984 kB / 1.075 GB, free: 2.961 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/0.3385, allocations: 7.938 kB / 1.075 GB, free: 2.953 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001895/0.3387, allocations: 19.98 kB / 1.075 GB, free: 2.934 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.262e-05/0.3388, allocations: 4 kB / 1.075 GB, free: 2.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001953/0.339, allocations: 20.17 kB / 1.075 GB, free: 2.91 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.439e-05/0.339, allocations: 15.94 kB / 1.075 GB, free: 2.895 MB / 0.8262 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.0002677/0.3393, allocations: 196 kB / 1.075 GB, free: 2.684 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.19e-05/0.3394, allocations: 15.81 kB / 1.075 GB, free: 2.668 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.383e-05/0.3394, allocations: 21.39 kB / 1.075 GB, free: 2.645 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.3395, allocations: 0 / 1.075 GB, free: 2.645 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.999e-06/0.3395, allocations: 4 kB / 1.075 GB, free: 2.641 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.3395, allocations: 0 / 1.075 GB, free: 2.641 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/0.3406, allocations: 0.5875 MB / 1.076 GB, free: 1.984 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.3406, allocations: 0 / 1.076 GB, free: 1.984 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.792e-05/0.3407, allocations: 8 kB / 1.076 GB, free: 1.977 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/0.3408, allocations: 4 kB / 1.076 GB, free: 1.973 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.812e-05/0.3408, allocations: 7.984 kB / 1.076 GB, free: 1.965 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.3408, allocations: 0 / 1.076 GB, free: 1.965 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.3408, allocations: 4.219 kB / 1.076 GB, free: 1.961 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009702/0.3418, allocations: 414.5 kB / 1.076 GB, free: 1.527 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.766e-05/0.3419, allocations: 88.92 kB / 1.076 GB, free: 1.422 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.395e-05/0.342, allocations: 11.98 kB / 1.076 GB, free: 1.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002127/0.3422, allocations: 11.98 kB / 1.076 GB, free: 1.398 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.613e-05/0.3423, allocations: 7.938 kB / 1.076 GB, free: 1.391 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.411e-05/0.3423, allocations: 11.98 kB / 1.076 GB, free: 1.379 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.00018/0.3425, allocations: 124.3 kB / 1.077 GB, free: 1.258 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.41e-07/0.3425, allocations: 0 / 1.077 GB, free: 1.258 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000572/0.3431, allocations: 44 kB / 1.077 GB, free: 1.215 MB / 0.8262 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.0003642/0.3435, allocations: 119.8 kB / 1.077 GB, free: 1.094 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007899/0.3443, allocations: 373.5 kB / 1.077 GB, free: 0.6797 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.3443, allocations: 0 / 1.077 GB, free: 0.6797 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004007/0.3447, allocations: 206.7 kB / 1.077 GB, free: 464 kB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005425/0.3453, allocations: 23.92 kB / 1.077 GB, free: 440 kB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000935/0.3462, allocations: 292.3 kB / 1.078 GB, free: 120 kB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004177/0.3467, allocations: 0.7118 MB / 1.078 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001074/0.3468, allocations: 24.53 kB / 1.078 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.886e-05/0.3469, allocations: 11.44 kB / 1.078 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of SimCode: time 3.857e-06/0.3469, allocations: 0 / 1.078 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of Templates: time 0.0086/0.3555, allocations: 2.078 MB / 1.08 GB, free: 13.3 MB / 0.8419 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