Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.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 10.1.1-maint.10.0.x/package.mo", uses=false) 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.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005145/0.005145, allocations: 102.7 kB / 15.73 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 190 kB / 16.67 MB, free: 5.883 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.642/2.642, allocations: 437.1 MB / 0.7105 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002443/0.002443, allocations: 67.89 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.3055, allocations: 151.6 MB / 1.166 GB, free: 7.32 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003292/0.3088, allocations: 1.764 MB / 1.168 GB, free: 5.539 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001525/0.3103, allocations: 0.9279 MB / 1.169 GB, free: 4.605 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.3105, allocations: 4 kB / 1.169 GB, free: 4.602 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.000534/0.311, allocations: 179.2 kB / 1.169 GB, free: 4.43 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000434/0.3115, allocations: 162.2 kB / 1.169 GB, free: 4.273 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004828/0.312, allocations: 211.2 kB / 1.169 GB, free: 4.07 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.000337/0.3123, allocations: 243.5 kB / 1.17 GB, free: 3.832 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001694/0.3125, allocations: 60.45 kB / 1.17 GB, free: 3.773 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001936/0.3127, allocations: 99.66 kB / 1.17 GB, free: 3.676 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002355/0.3129, allocations: 147.5 kB / 1.17 GB, free: 3.531 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 5.455e-05/0.313, allocations: 20 kB / 1.17 GB, free: 3.512 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001159/0.3131, allocations: 51.94 kB / 1.17 GB, free: 3.461 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.3132, allocations: 87.73 kB / 1.17 GB, free: 3.375 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001177/0.3134, allocations: 119.2 kB / 1.17 GB, free: 3.258 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003698/0.3137, allocations: 347.7 kB / 1.17 GB, free: 2.918 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.3137, allocations: 0 / 1.17 GB, free: 2.918 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.422e-06/0.3137, allocations: 0 / 1.17 GB, free: 2.918 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.012e-05/0.3138, allocations: 0 / 1.17 GB, free: 2.918 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0008069/0.3146, allocations: 0.6069 MB / 1.171 GB, free: 2.262 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.3146, allocations: 8.031 kB / 1.171 GB, free: 2.254 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.857e-05/0.3147, allocations: 38.75 kB / 1.171 GB, free: 2.207 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.671e-05/0.3147, allocations: 32.47 kB / 1.171 GB, free: 2.176 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005193/0.3153, allocations: 410.3 kB / 1.172 GB, free: 1.738 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.3153, allocations: 8.375 kB / 1.172 GB, free: 1.73 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.669e-05/0.3153, allocations: 7.938 kB / 1.172 GB, free: 1.723 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001621/0.3155, allocations: 81.53 kB / 1.172 GB, free: 1.637 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.204e-06/0.3155, allocations: 4 kB / 1.172 GB, free: 1.633 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.3155, allocations: 4 kB / 1.172 GB, free: 1.629 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.3155, allocations: 0 / 1.172 GB, free: 1.629 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001184/0.3157, allocations: 43.97 kB / 1.172 GB, free: 1.586 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005568/0.3162, allocations: 488.3 kB / 1.172 GB, free: 1.059 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001307/0.3164, allocations: 50.55 kB / 1.172 GB, free: 1 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.265e-05/0.3164, allocations: 24.91 kB / 1.172 GB, free: 0.9727 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.3165, allocations: 0 / 1.172 GB, free: 0.9727 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.3165, allocations: 34.56 kB / 1.172 GB, free: 0.9297 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.3165, allocations: 3.938 kB / 1.172 GB, free: 0.9258 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0002748/0.3168, allocations: 105.3 kB / 1.172 GB, free: 0.8164 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.16e-05/0.3168, allocations: 51.41 kB / 1.172 GB, free: 0.7539 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005899/0.3174, allocations: 0.5523 MB / 1.173 GB, free: 196 kB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.347e-05/0.3174, allocations: 29.81 kB / 1.173 GB, free: 160 kB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.3176, allocations: 176 kB / 1.173 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.025e-05/0.3176, allocations: 11.84 kB / 1.173 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.472e-05/0.3176, allocations: 17.66 kB / 1.173 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001152/0.3178, allocations: 346.8 kB / 1.173 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.209e-05/0.3178, allocations: 11.98 kB / 1.173 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.787e-05/0.3179, allocations: 8 kB / 1.173 GB, free: 15.58 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.354e-05/0.318, allocations: 48.77 kB / 1.174 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.318, allocations: 0 / 1.174 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001624/0.3181, allocations: 81.31 kB / 1.174 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.3182, allocations: 11.98 kB / 1.174 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.3182, allocations: 0 / 1.174 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.3182, allocations: 3.938 kB / 1.174 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.452e-05/0.3183, allocations: 4 kB / 1.174 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.3183, allocations: 4 kB / 1.174 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.716e-05/0.3184, allocations: 4 kB / 1.174 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.3184, allocations: 3.984 kB / 1.174 GB, free: 15.41 MB / 0.9356 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 (3): * Single equations (assignments): 3 * 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 0.0001386/0.3185, allocations: 181.8 kB / 1.174 GB, free: 15.22 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.727e-05/0.3186, allocations: 27.62 kB / 1.174 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002093/0.3188, allocations: 108.1 kB / 1.174 GB, free: 15.08 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.3188, allocations: 0 / 1.174 GB, free: 15.08 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.3188, allocations: 3.984 kB / 1.174 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.3188, allocations: 4 kB / 1.174 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002579/0.3191, allocations: 285.5 kB / 1.174 GB, free: 14.74 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3191, allocations: 0 / 1.174 GB, free: 14.74 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.049e-05/0.3192, allocations: 7.984 kB / 1.174 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3192, allocations: 4 kB / 1.174 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.769e-06/0.3192, allocations: 3.938 kB / 1.174 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3192, allocations: 3.938 kB / 1.174 GB, free: 14.72 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3192, allocations: 0 / 1.174 GB, free: 14.72 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002086/0.3194, allocations: 187.5 kB / 1.174 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 8.822e-05/0.3195, allocations: 120.7 kB / 1.175 GB, free: 14.39 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.992e-05/0.3195, allocations: 3.938 kB / 1.175 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.518e-05/0.3196, allocations: 4.047 kB / 1.175 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.13e-05/0.3197, allocations: 7.984 kB / 1.175 GB, free: 14.37 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-06/0.3197, allocations: 0 / 1.175 GB, free: 14.37 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0004236/0.3201, allocations: 423.1 kB / 1.175 GB, free: 13.96 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3201, allocations: 3.938 kB / 1.175 GB, free: 13.96 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002649/0.3204, allocations: 23.94 kB / 1.175 GB, free: 13.94 MB / 0.9356 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 (3): * Single equations (assignments): 3 * 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.001112/0.3215, allocations: 0.9691 MB / 1.176 GB, free: 13.07 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001442/0.3217, allocations: 31.92 kB / 1.176 GB, free: 13.04 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3217, allocations: 0 / 1.176 GB, free: 13.04 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.435e-05/0.3217, allocations: 19.98 kB / 1.176 GB, free: 13.02 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004167/0.3222, allocations: 45.52 kB / 1.176 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003108/0.3253, allocations: 2.885 MB / 1.179 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.3256, allocations: 0.787 MB / 1.18 GB, free: 9.203 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001061/0.3257, allocations: 38.94 kB / 1.18 GB, free: 9.164 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/0.3259, allocations: 95.39 kB / 1.18 GB, free: 9.07 MB / 0.9356 GB Notification: Performance of SimCode: time 2.51e-07/0.3259, allocations: 4 kB / 1.18 GB, free: 9.066 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02324/0.3491, allocations: 5.46 MB / 1.185 GB, free: 3.777 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.625/7.974, allocations: 10.39 kB / 1.185 GB, free: 3.77 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches