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.002176/0.002176, allocations: 106 kB / 16.45 MB, free: 6.445 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.002442/0.002442, allocations: 187.7 kB / 19.4 MB, free: 3.66 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.464/1.464, allocations: 225.6 MB / 247.8 MB, free: 3.738 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.637/2.637, allocations: 443.5 MB / 0.7287 GB, free: 14.49 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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002219/0.002219, allocations: 67.89 kB / 1.056 GB, free: 2.43 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.312, allocations: 160.7 MB / 1.213 GB, free: 1.402 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003316/0.3153, allocations: 1.626 MB / 1.214 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001075/0.3163, allocations: 0.6164 MB / 1.215 GB, free: 15.13 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.977e-05/0.3164, allocations: 3.938 kB / 1.215 GB, free: 15.13 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001693/0.3166, allocations: 19.84 kB / 1.215 GB, free: 15.11 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002271/0.3168, allocations: 51.75 kB / 1.215 GB, free: 15.06 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003955/0.3172, allocations: 111.8 kB / 1.215 GB, free: 14.95 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002633/0.3175, allocations: 183.6 kB / 1.215 GB, free: 14.77 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.3176, allocations: 17.11 kB / 1.215 GB, free: 14.75 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001472/0.3177, allocations: 79.81 kB / 1.216 GB, free: 14.67 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001543/0.3179, allocations: 91.59 kB / 1.216 GB, free: 14.58 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.859e-05/0.3179, allocations: 16 kB / 1.216 GB, free: 14.57 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.38e-05/0.318, allocations: 35.92 kB / 1.216 GB, free: 14.53 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.089e-05/0.3181, allocations: 31.92 kB / 1.216 GB, free: 14.5 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 9.975e-05/0.3182, allocations: 75.64 kB / 1.216 GB, free: 14.43 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002652/0.3184, allocations: 171.6 kB / 1.216 GB, free: 14.26 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.3184, allocations: 0 / 1.216 GB, free: 14.26 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.833e-06/0.3184, allocations: 0 / 1.216 GB, free: 14.26 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.993e-06/0.3185, allocations: 0 / 1.216 GB, free: 14.26 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.000782/0.3192, allocations: 0.5523 MB / 1.216 GB, free: 13.63 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.3193, allocations: 12.03 kB / 1.216 GB, free: 13.62 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.011e-05/0.3193, allocations: 42.73 kB / 1.217 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.779e-05/0.3194, allocations: 24.84 kB / 1.217 GB, free: 13.55 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003895/0.3198, allocations: 237.2 kB / 1.217 GB, free: 13.28 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.3198, allocations: 12.31 kB / 1.217 GB, free: 13.27 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.151e-05/0.3199, allocations: 16.38 kB / 1.217 GB, free: 13.25 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002721/0.3201, allocations: 113.5 kB / 1.217 GB, free: 13.13 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.3201, allocations: 0 / 1.217 GB, free: 13.13 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.748e-05/0.3202, allocations: 4 kB / 1.217 GB, free: 13.13 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.3202, allocations: 0 / 1.217 GB, free: 13.13 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002005/0.3204, allocations: 79.88 kB / 1.217 GB, free: 13.05 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006955/0.3211, allocations: 412.6 kB / 1.217 GB, free: 12.6 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001933/0.3212, allocations: 82.56 kB / 1.217 GB, free: 12.51 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001571/0.3214, allocations: 64.81 kB / 1.218 GB, free: 12.44 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.307e-05/0.3214, allocations: 4 kB / 1.218 GB, free: 12.44 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000298/0.3217, allocations: 178.7 kB / 1.218 GB, free: 12.24 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 1.412e-06/0.3217, allocations: 0 / 1.218 GB, free: 12.24 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0007572/0.3225, allocations: 357.2 kB / 1.218 GB, free: 11.87 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001283/0.3226, allocations: 170.2 kB / 1.218 GB, free: 11.67 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001902/0.3228, allocations: 174.6 kB / 1.218 GB, free: 11.48 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.993e-05/0.3228, allocations: 37.64 kB / 1.218 GB, free: 11.44 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.493e-05/0.3229, allocations: 108.4 kB / 1.219 GB, free: 11.33 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.976e-05/0.3229, allocations: 23.81 kB / 1.219 GB, free: 11.3 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.481e-05/0.323, allocations: 37.7 kB / 1.219 GB, free: 11.26 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001479/0.3232, allocations: 326.8 kB / 1.219 GB, free: 10.93 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001415/0.3233, allocations: 55.95 kB / 1.219 GB, free: 10.88 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/0.3235, allocations: 106.8 kB / 1.219 GB, free: 10.75 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003762/0.3239, allocations: 309 kB / 1.219 GB, free: 10.39 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.3239, allocations: 0 / 1.219 GB, free: 10.39 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005707/0.3244, allocations: 356.1 kB / 1.22 GB, free: 10.01 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 9.896e-05/0.3245, allocations: 122.8 kB / 1.22 GB, free: 9.863 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.3245, allocations: 0 / 1.22 GB, free: 9.863 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.3246, allocations: 4 kB / 1.22 GB, free: 9.859 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.3247, allocations: 19.92 kB / 1.22 GB, free: 9.84 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.3247, allocations: 7.938 kB / 1.22 GB, free: 9.832 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.3248, allocations: 24.19 kB / 1.22 GB, free: 9.809 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.213e-05/0.3248, allocations: 8 kB / 1.22 GB, free: 9.801 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.325, allocations: 197.2 kB / 1.22 GB, free: 9.586 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.373e-05/0.325, allocations: 15.91 kB / 1.22 GB, free: 9.57 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.105e-05/0.3251, allocations: 21.34 kB / 1.22 GB, free: 9.547 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.3251, allocations: 0 / 1.22 GB, free: 9.547 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3251, allocations: 0 / 1.22 GB, free: 9.547 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.3251, allocations: 0 / 1.22 GB, free: 9.547 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00081/0.3259, allocations: 0.6031 MB / 1.221 GB, free: 8.875 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.3259, allocations: 0 / 1.221 GB, free: 8.875 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.677e-05/0.3259, allocations: 11.98 kB / 1.221 GB, free: 8.863 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.3259, allocations: 0 / 1.221 GB, free: 8.863 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.442e-05/0.326, allocations: 12 kB / 1.221 GB, free: 8.852 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.326, allocations: 0 / 1.221 GB, free: 8.852 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.326, allocations: 3.938 kB / 1.221 GB, free: 8.848 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005988/0.3266, allocations: 418.6 kB / 1.221 GB, free: 8.41 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.96e-05/0.3266, allocations: 89.05 kB / 1.221 GB, free: 8.305 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.548e-05/0.3267, allocations: 4 kB / 1.221 GB, free: 8.301 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.3268, allocations: 4 kB / 1.221 GB, free: 8.297 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.728e-05/0.3268, allocations: 15.92 kB / 1.221 GB, free: 8.281 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.759e-05/0.3269, allocations: 8 kB / 1.221 GB, free: 8.273 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001129/0.327, allocations: 132.8 kB / 1.221 GB, free: 8.145 MB / 0.9669 GB Notification: Performance of sort global known variables: time 9e-08/0.327, allocations: 4 kB / 1.221 GB, free: 8.141 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000299/0.3273, allocations: 35.94 kB / 1.221 GB, free: 8.105 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.001076/0.3283, allocations: 0.9616 MB / 1.222 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0005217/0.3289, allocations: 357.5 kB / 1.223 GB, free: 6.715 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.3289, allocations: 0 / 1.223 GB, free: 6.715 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002481/0.3291, allocations: 182.7 kB / 1.223 GB, free: 6.512 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000333/0.3295, allocations: 24.42 kB / 1.223 GB, free: 6.488 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002742/0.3322, allocations: 2.112 MB / 1.225 GB, free: 4.23 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003681/0.3326, allocations: 0.7157 MB / 1.226 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 7.343e-05/0.3326, allocations: 20.53 kB / 1.226 GB, free: 3.469 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.973e-05/0.3327, allocations: 35.42 kB / 1.226 GB, free: 3.434 MB / 0.9669 GB Notification: Performance of SimCode: time 3.51e-07/0.3327, allocations: 4 kB / 1.226 GB, free: 3.43 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0273/0.36, allocations: 3.655 MB / 1.229 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.475/8.835, allocations: 3.984 kB / 1.229 GB, free: 15.88 MB / 0.9825 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --stepSize=0.004484 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 420.0] 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: 14.946902352385223]