Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule7to19.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.WeeklySchedule7to19,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sch.y.1.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule7to19") translateModel(Buildings.Utilities.IO.Files.Examples.WeeklySchedule7to19,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sch.y.1.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule7to19") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001545/0.001545, 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.001804/0.001804, allocations: 195.8 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.358/1.358, allocations: 222.9 MB / 240.5 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.661/2.661, allocations: 461.9 MB / 0.7348 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 64.72 kB / 0.899 GB, free: 37.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3109/0.3122, allocations: 157.4 MB / 1.053 GB, free: 8.324 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.WeeklySchedule7to19): time 0.002699/0.315, allocations: 1.428 MB / 1.054 GB, free: 6.883 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001446/0.3151, allocations: 39.77 kB / 1.054 GB, free: 6.844 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.977e-05/0.3152, allocations: 4 kB / 1.054 GB, free: 6.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001663/0.3154, allocations: 15.92 kB / 1.054 GB, free: 6.824 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001064/0.3155, allocations: 11.98 kB / 1.054 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 3.497e-06/0.3155, allocations: 0 / 1.054 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.02e-05/0.3156, allocations: 15.94 kB / 1.054 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.956e-05/0.3156, allocations: 0 / 1.054 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.051e-05/0.3157, allocations: 7.938 kB / 1.054 GB, free: 6.789 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.827e-05/0.3157, allocations: 11.98 kB / 1.054 GB, free: 6.777 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.093e-05/0.3158, allocations: 3.984 kB / 1.054 GB, free: 6.773 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 4.408e-05/0.3158, allocations: 8 kB / 1.054 GB, free: 6.766 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.224e-05/0.3158, allocations: 7.938 kB / 1.054 GB, free: 6.758 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.399e-05/0.3159, allocations: 11.94 kB / 1.054 GB, free: 6.746 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.091e-05/0.316, allocations: 19.97 kB / 1.054 GB, free: 6.727 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.316, allocations: 4 kB / 1.054 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.42e-07/0.316, allocations: 3.938 kB / 1.054 GB, free: 6.719 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.058e-06/0.316, allocations: 0 / 1.054 GB, free: 6.719 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003554/0.3164, allocations: 343.6 kB / 1.055 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.3164, allocations: 8.031 kB / 1.055 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.414e-05/0.3164, allocations: 0.9375 kB / 1.055 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001721/0.3166, allocations: 176.3 kB / 1.055 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.78e-05/0.3166, allocations: 4.375 kB / 1.055 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.654e-06/0.3167, allocations: 384 / 1.055 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.409e-05/0.3168, allocations: 38.25 kB / 1.055 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.3168, allocations: 4.125 kB / 1.055 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.3168, allocations: 7.922 kB / 1.055 GB, free: 6.055 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.881e-05/0.3168, allocations: 0 / 1.055 GB, free: 6.055 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.809e-05/0.3168, allocations: 0 / 1.055 GB, free: 6.055 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000159/0.317, allocations: 157.6 kB / 1.055 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 3.829e-05/0.317, allocations: 22.61 kB / 1.055 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.559e-05/0.3171, allocations: 4.859 kB / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.421e-05/0.3171, allocations: 4.062 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.3171, allocations: 38.55 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/0.3171, allocations: 0 / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001274/0.3173, allocations: 41.58 kB / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.299e-05/0.3173, allocations: 55.53 kB / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001149/0.3174, allocations: 113.8 kB / 1.055 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.154e-05/0.3174, allocations: 25.7 kB / 1.055 GB, free: 5.496 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.772e-05/0.3175, allocations: 92.08 kB / 1.055 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.019e-05/0.3175, allocations: 3.906 kB / 1.055 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.46e-05/0.3175, allocations: 13.7 kB / 1.055 GB, free: 5.379 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.3177, allocations: 318.8 kB / 1.056 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.127e-05/0.3177, allocations: 0 / 1.056 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.683e-06/0.3177, allocations: 4 kB / 1.056 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.656e-05/0.3177, allocations: 8.859 kB / 1.056 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.3177, allocations: 0 / 1.056 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.698e-05/0.3178, allocations: 45.62 kB / 1.056 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.3178, allocations: 8 kB / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.3178, allocations: 3.938 kB / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.3178, allocations: 0 / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.462e-05/0.3179, allocations: 0 / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.3179, allocations: 0 / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.279e-05/0.3179, allocations: 4.094 kB / 1.056 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-06/0.3179, allocations: 4 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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 7.422e-05/0.318, allocations: 105.8 kB / 1.056 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.233e-05/0.318, allocations: 7.984 kB / 1.056 GB, free: 4.852 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.659e-05/0.3181, allocations: 41.17 kB / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.3181, allocations: 0 / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.3181, allocations: 11.94 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.3182, allocations: 0 / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000115/0.3183, allocations: 165.5 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.3183, allocations: 4 kB / 1.056 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.186e-05/0.3183, allocations: 0 / 1.056 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.3183, allocations: 0 / 1.056 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.766e-06/0.3183, allocations: 7.938 kB / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.3183, allocations: 0 / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.3183, allocations: 0 / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.184e-05/0.3184, allocations: 61.12 kB / 1.056 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.483e-05/0.3185, allocations: 81.14 kB / 1.056 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.344e-05/0.3185, allocations: 3.938 kB / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.008e-05/0.3185, allocations: 0 / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.293e-05/0.3185, allocations: 4 kB / 1.056 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-06/0.3185, allocations: 0 / 1.056 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.589e-05/0.3186, allocations: 95.58 kB / 1.056 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3186, allocations: 0 / 1.056 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001943/0.3188, allocations: 7.938 kB / 1.056 GB, free: 4.285 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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.0002087/0.319, allocations: 122.2 kB / 1.056 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 6.847e-05/0.3191, allocations: 4 kB / 1.056 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3191, allocations: 0 / 1.056 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.808e-06/0.3191, allocations: 4 kB / 1.056 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001384/0.3193, allocations: 4 kB / 1.056 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002926/0.3195, allocations: 156.9 kB / 1.057 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002461/0.3198, allocations: 0.677 MB / 1.057 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.06e-05/0.3198, allocations: 11.44 kB / 1.057 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of SimCode: time 3.11e-07/0.3198, allocations: 0 / 1.057 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of Templates: time 0.002185/0.322, allocations: 0.7643 MB / 1.058 GB, free: 2.48 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule7to19.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule7to19.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule7to19.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule7to19.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule7to19.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule7to19 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule7to19.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule7to19_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_WeeklySchedule7to19.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule7to19.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches