Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001708/0.001708, allocations: 118.2 kB / 17.13 MB, free: 5.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001961/0.001961, allocations: 192.7 kB / 20.08 MB, free: 2.988 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.636/1.636, allocations: 225.6 MB / 248.5 MB, free: 3.605 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.657/2.657, allocations: 443.5 MB / 0.7293 GB, free: 14.48 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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=2500,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_10_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_10_Buildings.Utilities.IO.Files.Examples.CSVWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 67.89 kB / 1.057 GB, free: 1.914 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3067, allocations: 160.7 MB / 1.214 GB, free: 0.8867 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003216/0.3099, allocations: 1.629 MB / 1.216 GB, free: 15.24 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001128/0.311, allocations: 0.628 MB / 1.216 GB, free: 14.61 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.189e-05/0.3111, allocations: 4 kB / 1.216 GB, free: 14.6 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001587/0.3113, allocations: 11.81 kB / 1.216 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002314/0.3115, allocations: 51.75 kB / 1.216 GB, free: 14.54 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004351/0.3119, allocations: 111.8 kB / 1.216 GB, free: 14.43 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000279/0.3122, allocations: 179.6 kB / 1.217 GB, free: 14.25 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.3123, allocations: 21.09 kB / 1.217 GB, free: 14.23 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001615/0.3125, allocations: 83.77 kB / 1.217 GB, free: 14.15 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001494/0.3126, allocations: 87.66 kB / 1.217 GB, free: 14.06 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.156e-05/0.3127, allocations: 12 kB / 1.217 GB, free: 14.05 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.208e-05/0.3128, allocations: 31.98 kB / 1.217 GB, free: 14.02 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 9.207e-05/0.3128, allocations: 31.91 kB / 1.217 GB, free: 13.99 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001077/0.313, allocations: 79.64 kB / 1.217 GB, free: 13.91 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002785/0.3132, allocations: 171.3 kB / 1.217 GB, free: 13.74 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3132, allocations: 0 / 1.217 GB, free: 13.74 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.974e-06/0.3132, allocations: 0 / 1.217 GB, free: 13.74 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.793e-06/0.3132, allocations: 0 / 1.217 GB, free: 13.74 MB / 0.9669 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.0008271/0.3141, allocations: 0.5639 MB / 1.218 GB, free: 13.11 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.3141, allocations: 8.031 kB / 1.218 GB, free: 13.1 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.046e-05/0.3142, allocations: 20.84 kB / 1.218 GB, free: 13.08 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003559/0.3145, allocations: 237.3 kB / 1.218 GB, free: 12.81 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.3146, allocations: 12.38 kB / 1.218 GB, free: 12.8 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.936e-05/0.3146, allocations: 8.375 kB / 1.218 GB, free: 12.79 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003125/0.3149, allocations: 125.6 kB / 1.218 GB, free: 12.66 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.3149, allocations: 0 / 1.218 GB, free: 12.66 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.842e-05/0.3149, allocations: 4 kB / 1.218 GB, free: 12.66 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.3149, allocations: 0 / 1.218 GB, free: 12.66 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002147/0.3151, allocations: 71.94 kB / 1.218 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007194/0.3159, allocations: 416.5 kB / 1.219 GB, free: 12.13 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002083/0.3161, allocations: 78.53 kB / 1.219 GB, free: 12.04 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001648/0.3162, allocations: 68.81 kB / 1.219 GB, free: 11.97 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.525e-05/0.3163, allocations: 4 kB / 1.219 GB, free: 11.97 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002815/0.3165, allocations: 178.8 kB / 1.219 GB, free: 11.77 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 1.553e-06/0.3165, allocations: 0 / 1.219 GB, free: 11.77 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0008424/0.3174, allocations: 356.9 kB / 1.219 GB, free: 11.4 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001363/0.3175, allocations: 170.2 kB / 1.219 GB, free: 11.2 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002024/0.3177, allocations: 174.6 kB / 1.219 GB, free: 11.02 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.444e-05/0.3178, allocations: 33.7 kB / 1.22 GB, free: 10.98 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.96e-05/0.3178, allocations: 108.4 kB / 1.22 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.312e-05/0.3179, allocations: 27.75 kB / 1.22 GB, free: 10.84 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.881e-05/0.318, allocations: 41.7 kB / 1.22 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001663/0.3181, allocations: 330.8 kB / 1.22 GB, free: 10.46 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001414/0.3183, allocations: 47.95 kB / 1.22 GB, free: 10.41 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001933/0.3185, allocations: 106.8 kB / 1.22 GB, free: 10.28 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000397/0.3189, allocations: 316.9 kB / 1.22 GB, free: 9.91 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3189, allocations: 0 / 1.22 GB, free: 9.91 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005973/0.3195, allocations: 352.2 kB / 1.221 GB, free: 9.535 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 9.189e-05/0.3196, allocations: 114.8 kB / 1.221 GB, free: 9.398 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.3196, allocations: 4 kB / 1.221 GB, free: 9.395 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.3196, allocations: 0 / 1.221 GB, free: 9.395 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.3197, allocations: 19.92 kB / 1.221 GB, free: 9.375 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.3197, allocations: 4 kB / 1.221 GB, free: 9.371 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001007/0.3198, allocations: 15.94 kB / 1.221 GB, free: 9.355 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.383e-05/0.3198, allocations: 16.19 kB / 1.221 GB, free: 9.34 MB / 0.9669 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.0001759/0.32, allocations: 209.1 kB / 1.221 GB, free: 9.113 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.75e-05/0.32, allocations: 15.91 kB / 1.221 GB, free: 9.098 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.826e-05/0.3201, allocations: 13.41 kB / 1.221 GB, free: 9.082 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.3201, allocations: 4 kB / 1.221 GB, free: 9.078 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3201, allocations: 0 / 1.221 GB, free: 9.078 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3201, allocations: 0 / 1.221 GB, free: 9.078 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007974/0.3209, allocations: 0.5956 MB / 1.222 GB, free: 8.414 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3209, allocations: 3.938 kB / 1.222 GB, free: 8.41 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.629e-05/0.321, allocations: 11.98 kB / 1.222 GB, free: 8.398 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.321, allocations: 4 kB / 1.222 GB, free: 8.395 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.187e-05/0.321, allocations: 8 kB / 1.222 GB, free: 8.387 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.321, allocations: 0 / 1.222 GB, free: 8.387 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.321, allocations: 3.938 kB / 1.222 GB, free: 8.383 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006286/0.3216, allocations: 422.6 kB / 1.222 GB, free: 7.941 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.279e-05/0.3217, allocations: 85.06 kB / 1.222 GB, free: 7.84 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.189e-05/0.3217, allocations: 4 kB / 1.222 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.3218, allocations: 12 kB / 1.222 GB, free: 7.824 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.629e-05/0.3219, allocations: 11.92 kB / 1.222 GB, free: 7.812 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.77e-05/0.3219, allocations: 8 kB / 1.222 GB, free: 7.805 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.000123/0.322, allocations: 132.8 kB / 1.222 GB, free: 7.676 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1e-07/0.322, allocations: 0 / 1.222 GB, free: 7.676 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003026/0.3223, allocations: 36 kB / 1.222 GB, free: 7.641 MB / 0.9669 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.0002761/0.3226, allocations: 129.9 kB / 1.223 GB, free: 7.516 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0005577/0.3232, allocations: 361.8 kB / 1.223 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3232, allocations: 4.062 kB / 1.223 GB, free: 7.109 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002583/0.3234, allocations: 182.8 kB / 1.223 GB, free: 6.906 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.3237, allocations: 19.94 kB / 1.223 GB, free: 6.887 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006813/0.3244, allocations: 317.4 kB / 1.223 GB, free: 6.547 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00036/0.3248, allocations: 0.7157 MB / 1.224 GB, free: 5.805 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.49e-05/0.3248, allocations: 19.44 kB / 1.224 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of SimCode: time 3.6e-07/0.3248, allocations: 0 / 1.224 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of Templates: time 0.004557/0.3294, allocations: 2.182 MB / 1.226 GB, free: 3.613 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_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: 11.211333180079237]