Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.002099/0.002099, allocations: 104.4 kB / 19.7 MB, free: 2.125 MB / 14.72 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.002468/0.002468, allocations: 216.9 kB / 22.99 MB, free: 4.945 MB / 14.72 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.792/1.792, allocations: 230.6 MB / 256.8 MB, free: 7.824 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.863/2.863, allocations: 476 MB / 0.7707 GB, free: 4.75 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/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_11_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_11_Buildings.Utilities.IO.Files.Examples.CSVWriter") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002241/0.002241, allocations: 66.38 kB / 1.118 GB, free: 41.02 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3895/0.3917, allocations: 170 MB / 1.284 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.004015/0.3957, allocations: 1.635 MB / 1.285 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001428/0.3971, allocations: 0.6408 MB / 1.286 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.289e-05/0.3972, allocations: 3.938 kB / 1.286 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001962/0.3974, allocations: 19.86 kB / 1.286 GB, free: 9.664 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002872/0.3977, allocations: 39.77 kB / 1.286 GB, free: 9.625 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000613/0.3983, allocations: 131.7 kB / 1.286 GB, free: 9.496 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003148/0.3987, allocations: 187.6 kB / 1.286 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001339/0.3988, allocations: 17.62 kB / 1.286 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002357/0.399, allocations: 99.67 kB / 1.286 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001719/0.3992, allocations: 79.72 kB / 1.287 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.589e-05/0.3992, allocations: 12 kB / 1.287 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.738e-05/0.3993, allocations: 36 kB / 1.287 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.962e-05/0.3994, allocations: 35.89 kB / 1.287 GB, free: 9.035 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.919e-05/0.3995, allocations: 59.73 kB / 1.287 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003166/0.3999, allocations: 183.2 kB / 1.287 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3999, allocations: 0 / 1.287 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.312e-06/0.3999, allocations: 0 / 1.287 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.041e-06/0.3999, allocations: 0 / 1.287 GB, free: 8.797 MB / 0.9825 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.0008492/0.4007, allocations: 0.4886 MB / 1.287 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.4008, allocations: 8.031 kB / 1.287 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002121/0.401, allocations: 28.83 kB / 1.287 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003729/0.4013, allocations: 186.5 kB / 1.288 GB, free: 8.012 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.4014, allocations: 8.375 kB / 1.288 GB, free: 8.004 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.238e-05/0.4014, allocations: 12.38 kB / 1.288 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00037/0.4018, allocations: 173.1 kB / 1.288 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.4018, allocations: 0 / 1.288 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.814e-05/0.4018, allocations: 8 kB / 1.288 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.4018, allocations: 3.938 kB / 1.288 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002541/0.402, allocations: 131.3 kB / 1.288 GB, free: 7.652 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006731/0.4027, allocations: 348.2 kB / 1.288 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002539/0.403, allocations: 129.9 kB / 1.288 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002235/0.4032, allocations: 132.2 kB / 1.288 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.4032, allocations: 0 / 1.288 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003436/0.4036, allocations: 238.1 kB / 1.289 GB, free: 6.719 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.332e-06/0.4036, allocations: 4 kB / 1.289 GB, free: 6.715 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0009369/0.4045, allocations: 479.8 kB / 1.289 GB, free: 6.203 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001458/0.4047, allocations: 162.2 kB / 1.289 GB, free: 6.008 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000217/0.4049, allocations: 183.5 kB / 1.289 GB, free: 5.816 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.148e-05/0.4049, allocations: 29.7 kB / 1.29 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.55e-05/0.405, allocations: 108.4 kB / 1.29 GB, free: 5.668 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.818e-05/0.405, allocations: 31.73 kB / 1.29 GB, free: 5.637 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.939e-05/0.4051, allocations: 41.7 kB / 1.29 GB, free: 5.59 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002467/0.4054, allocations: 334.8 kB / 1.29 GB, free: 5.254 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002326/0.4056, allocations: 162.8 kB / 1.29 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002726/0.4059, allocations: 211.2 kB / 1.29 GB, free: 4.816 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004263/0.4063, allocations: 316.9 kB / 1.291 GB, free: 4.445 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.4063, allocations: 4 kB / 1.291 GB, free: 4.441 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0007203/0.407, allocations: 458.9 kB / 1.291 GB, free: 3.938 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001035/0.4071, allocations: 120.8 kB / 1.291 GB, free: 3.797 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.4071, allocations: 4.25 kB / 1.291 GB, free: 3.793 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.4072, allocations: 8 kB / 1.291 GB, free: 3.785 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/0.4073, allocations: 15.98 kB / 1.291 GB, free: 3.77 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.343e-06/0.4073, allocations: 0 / 1.291 GB, free: 3.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.4074, allocations: 23.92 kB / 1.291 GB, free: 3.746 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.11e-05/0.4074, allocations: 8 kB / 1.291 GB, free: 3.738 MB / 0.9825 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.0002683/0.4077, allocations: 197.1 kB / 1.291 GB, free: 3.523 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.084e-05/0.4078, allocations: 19.91 kB / 1.291 GB, free: 3.504 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.299e-05/0.4078, allocations: 21.67 kB / 1.291 GB, free: 3.473 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.4078, allocations: 0 / 1.291 GB, free: 3.473 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.4078, allocations: 4 kB / 1.291 GB, free: 3.469 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.4078, allocations: 3.938 kB / 1.292 GB, free: 3.465 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009338/0.4088, allocations: 0.5789 MB / 1.292 GB, free: 2.824 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.4088, allocations: 3.984 kB / 1.292 GB, free: 2.82 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.347e-05/0.4089, allocations: 8 kB / 1.292 GB, free: 2.812 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.4089, allocations: 0 / 1.292 GB, free: 2.812 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.896e-05/0.4089, allocations: 7.984 kB / 1.292 GB, free: 2.805 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.838e-06/0.4089, allocations: 4 kB / 1.292 GB, free: 2.801 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.4089, allocations: 7.922 kB / 1.292 GB, free: 2.793 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008132/0.4097, allocations: 474 kB / 1.293 GB, free: 2.289 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.079e-05/0.4097, allocations: 7.953 kB / 1.293 GB, free: 2.281 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.748e-05/0.4098, allocations: 8 kB / 1.293 GB, free: 2.273 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.4099, allocations: 4 kB / 1.293 GB, free: 2.27 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.889e-05/0.41, allocations: 7.984 kB / 1.293 GB, free: 2.262 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.112e-05/0.41, allocations: 11.98 kB / 1.293 GB, free: 2.25 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001292/0.4101, allocations: 125.8 kB / 1.293 GB, free: 2.129 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.4101, allocations: 0 / 1.293 GB, free: 2.129 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003295/0.4104, allocations: 47.83 kB / 1.293 GB, free: 2.082 MB / 0.9825 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.000318/0.4108, allocations: 137 kB / 1.293 GB, free: 1.945 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000712/0.4115, allocations: 0.5158 MB / 1.293 GB, free: 1.344 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4115, allocations: 4.188 kB / 1.293 GB, free: 1.34 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003034/0.4118, allocations: 246.1 kB / 1.294 GB, free: 1.062 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004832/0.4123, allocations: 30.42 kB / 1.294 GB, free: 1.035 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008502/0.4131, allocations: 381.2 kB / 1.294 GB, free: 0.6211 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001197/0.4132, allocations: 105 kB / 1.294 GB, free: 0.5 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.291e-05/0.4133, allocations: 15.44 kB / 1.294 GB, free: 496 kB / 0.9825 GB Notification: Performance of SimCode: time 1.242e-06/0.4133, allocations: 0 / 1.294 GB, free: 496 kB / 0.9825 GB Notification: Performance of Templates: time 0.005427/0.4187, allocations: 2.222 MB / 1.296 GB, free: 14.28 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 12.770294948946685]