Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.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.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_10_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_10_Buildings_Controls_Continuous_Examples_LimPID",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.007101/0.007101, allocations: 101.5 kB / 15.73 MB, free: 6.062 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.001445/0.001445, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.268/1.268, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.327/2.327, allocations: 437.1 MB / 0.7105 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 64.12 kB / 1.018 GB, free: 9.895 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.038/1.04, allocations: 151.6 MB / 1.166 GB, free: 3.773 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005743/1.045, allocations: 3.725 MB / 1.17 GB, free: 24 kB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.003619/1.049, allocations: 1.321 MB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008852/1.05, allocations: 31.81 kB / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0005443/1.051, allocations: 126.6 kB / 1.171 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0009765/1.052, allocations: 186.5 kB / 1.171 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001598/1.053, allocations: 0.5721 MB / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001207/1.054, allocations: 0.9682 MB / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005231/1.055, allocations: 353.5 kB / 1.173 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004137/1.055, allocations: 378.4 kB / 1.174 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003746/1.056, allocations: 342.1 kB / 1.174 GB, free: 11.76 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001199/1.056, allocations: 80 kB / 1.174 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001241/1.056, allocations: 76 kB / 1.174 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001597/1.056, allocations: 187.2 kB / 1.174 GB, free: 11.42 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0003126/1.057, allocations: 377.7 kB / 1.175 GB, free: 11.05 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0009107/1.057, allocations: 0.8972 MB / 1.175 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/1.057, allocations: 4 kB / 1.175 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.804e-06/1.057, allocations: 0 / 1.175 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.556e-05/1.057, allocations: 0 / 1.175 GB, free: 10.15 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002023/1.06, allocations: 1.18 MB / 1.177 GB, free: 8.91 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/1.06, allocations: 16.92 kB / 1.177 GB, free: 8.895 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001097/1.06, allocations: 90.7 kB / 1.177 GB, free: 8.797 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001385/1.06, allocations: 91.81 kB / 1.177 GB, free: 8.707 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001064/1.061, allocations: 0.6143 MB / 1.177 GB, free: 8.051 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001255/1.061, allocations: 101 kB / 1.178 GB, free: 7.938 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.134e-05/1.061, allocations: 48.38 kB / 1.178 GB, free: 7.891 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00105/1.062, allocations: 0.6078 MB / 1.178 GB, free: 7.242 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/1.062, allocations: 8 kB / 1.178 GB, free: 7.234 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.842e-05/1.062, allocations: 20 kB / 1.178 GB, free: 7.215 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/1.062, allocations: 12 kB / 1.178 GB, free: 7.203 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009514/1.063, allocations: 427.6 kB / 1.179 GB, free: 6.785 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002676/1.066, allocations: 2.102 MB / 1.181 GB, free: 4.598 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/1.067, allocations: 0.4999 MB / 1.181 GB, free: 4.086 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004409/1.068, allocations: 212.8 kB / 1.181 GB, free: 3.875 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 4.358e-05/1.068, allocations: 7.984 kB / 1.181 GB, free: 3.867 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006265/1.068, allocations: 286.2 kB / 1.182 GB, free: 3.574 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=45): time 5.831e-06/1.068, allocations: 0 / 1.182 GB, free: 3.574 MB / 0.9044 GB Notification: Performance of matching and sorting (n=45): time 0.001359/1.07, allocations: 0.61 MB / 1.182 GB, free: 2.957 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.827e-05/1.07, allocations: 92.86 kB / 1.182 GB, free: 2.848 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006914/1.07, allocations: 0.61 MB / 1.183 GB, free: 2.23 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.117e-05/1.071, allocations: 37.7 kB / 1.183 GB, free: 2.188 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002665/1.071, allocations: 356.8 kB / 1.183 GB, free: 1.832 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/1.071, allocations: 157.7 kB / 1.183 GB, free: 1.676 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001555/1.071, allocations: 94.16 kB / 1.184 GB, free: 1.578 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001447/1.071, allocations: 330 kB / 1.184 GB, free: 1.25 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004291/1.072, allocations: 187 kB / 1.184 GB, free: 1.066 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004931/1.072, allocations: 280.2 kB / 1.184 GB, free: 0.7578 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009032/1.073, allocations: 477.9 kB / 1.185 GB, free: 256 kB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/1.073, allocations: 3.984 kB / 1.185 GB, free: 252 kB / 0.9044 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00119/1.074, allocations: 0.5984 MB / 1.185 GB, free: 15.63 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.726e-05/1.074, allocations: 29.7 kB / 1.185 GB, free: 15.6 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/1.074, allocations: 4 kB / 1.185 GB, free: 15.59 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.353e-05/1.074, allocations: 4 kB / 1.185 GB, free: 15.59 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004574/1.075, allocations: 107.8 kB / 1.185 GB, free: 15.48 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.613e-05/1.075, allocations: 11.98 kB / 1.185 GB, free: 15.47 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003765/1.075, allocations: 59.45 kB / 1.186 GB, free: 15.41 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.042e-05/1.075, allocations: 28.11 kB / 1.186 GB, free: 15.39 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005255/1.076, allocations: 305.2 kB / 1.186 GB, free: 15.09 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004353/1.076, allocations: 264.3 kB / 1.186 GB, free: 14.79 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007884/1.077, allocations: 453.9 kB / 1.187 GB, free: 14.31 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.92e-06/1.077, allocations: 4 kB / 1.187 GB, free: 14.31 MB / 0.92 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001021/1.078, allocations: 0.5786 MB / 1.187 GB, free: 13.71 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.254e-05/1.078, allocations: 37.69 kB / 1.187 GB, free: 13.67 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.026e-06/1.078, allocations: 320 / 1.187 GB, free: 13.67 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.434e-06/1.078, allocations: 12 kB / 1.187 GB, free: 13.66 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004448/1.079, allocations: 95.89 kB / 1.187 GB, free: 13.57 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.437e-06/1.079, allocations: 7.938 kB / 1.187 GB, free: 13.56 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000334/1.079, allocations: 59.5 kB / 1.187 GB, free: 13.5 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.412e-05/1.079, allocations: 16 kB / 1.187 GB, free: 13.48 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * 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.0002112/1.079, allocations: 213.2 kB / 1.188 GB, free: 13.27 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.54e-05/1.079, allocations: 75.16 kB / 1.188 GB, free: 13.2 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001544/1.08, allocations: 87.14 kB / 1.188 GB, free: 13.11 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/1.08, allocations: 4 kB / 1.188 GB, free: 13.11 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/1.08, allocations: 0 / 1.188 GB, free: 13.11 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.325e-06/1.08, allocations: 3.984 kB / 1.188 GB, free: 13.1 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006845/1.08, allocations: 0.6218 MB / 1.188 GB, free: 12.43 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/1.08, allocations: 0 / 1.188 GB, free: 12.43 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004571/1.081, allocations: 83.89 kB / 1.188 GB, free: 12.35 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/1.081, allocations: 0 / 1.188 GB, free: 12.35 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.697e-05/1.081, allocations: 23.97 kB / 1.188 GB, free: 12.32 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/1.081, allocations: 0 / 1.188 GB, free: 12.32 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/1.081, allocations: 4 kB / 1.188 GB, free: 12.32 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001431/1.082, allocations: 0.7247 MB / 1.189 GB, free: 11.57 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002318/1.083, allocations: 192.1 kB / 1.189 GB, free: 11.37 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.501e-05/1.083, allocations: 8 kB / 1.189 GB, free: 11.36 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003631/1.083, allocations: 35.95 kB / 1.189 GB, free: 11.32 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.061e-05/1.083, allocations: 27.97 kB / 1.189 GB, free: 11.3 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-05/1.083, allocations: 23.92 kB / 1.189 GB, free: 11.27 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0004896/1.084, allocations: 435 kB / 1.19 GB, free: 10.85 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.31e-07/1.084, allocations: 0 / 1.19 GB, free: 10.85 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0005882/1.084, allocations: 219.2 kB / 1.19 GB, free: 10.64 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001737/1.086, allocations: 1.281 MB / 1.191 GB, free: 9.328 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001542/1.087, allocations: 0.7855 MB / 1.192 GB, free: 8.52 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/1.088, allocations: 0 / 1.192 GB, free: 8.52 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.000429/1.088, allocations: 223.6 kB / 1.192 GB, free: 8.301 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008184/1.089, allocations: 201.1 kB / 1.192 GB, free: 8.117 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00795/1.097, allocations: 5.353 MB / 1.198 GB, free: 2.602 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005078/1.097, allocations: 0.9102 MB / 1.199 GB, free: 1.664 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0004033/1.098, allocations: 97.11 kB / 1.199 GB, free: 1.566 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003677/1.098, allocations: 263.3 kB / 1.199 GB, free: 1.309 MB / 0.92 GB Notification: Performance of SimCode: time 6.51e-07/1.098, allocations: 3.938 kB / 1.199 GB, free: 1.305 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0509/1.149, allocations: 14.05 MB / 1.213 GB, free: 3.422 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.322/10.47, allocations: 12.05 kB / 1.213 GB, free: 3.41 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.Continuous.Examples.LimPID_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches