Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.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.001414/0.001414, allocations: 108.2 kB / 17.54 MB, free: 4.746 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.001386/0.001386, allocations: 186.7 kB / 20.71 MB, free: 1.586 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.295/1.295, allocations: 225.6 MB / 249.3 MB, free: 3.172 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.508/2.508, allocations: 476.7 MB / 0.7628 GB, free: 15.21 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.RequestCounter,fileNamePrefix="Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00182/0.00182, allocations: 63.91 kB / 1.107 GB, free: 5.211 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7749/0.7767, allocations: 168.7 MB / 1.271 GB, free: 7.723 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002329/0.779, allocations: 1.553 MB / 1.273 GB, free: 6.676 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0006685/0.7797, allocations: 454.5 kB / 1.273 GB, free: 6.367 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.95e-05/0.7797, allocations: 0.75 kB / 1.273 GB, free: 6.367 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 8.349e-05/0.7798, allocations: 5.75 kB / 1.273 GB, free: 6.363 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.453e-05/0.7798, allocations: 19.23 kB / 1.273 GB, free: 6.348 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001832/0.78, allocations: 34.31 kB / 1.273 GB, free: 6.328 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001383/0.7802, allocations: 81.39 kB / 1.273 GB, free: 6.293 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.335e-05/0.7803, allocations: 19.44 kB / 1.273 GB, free: 6.281 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001152/0.7804, allocations: 37.08 kB / 1.274 GB, free: 6.266 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.134e-05/0.7805, allocations: 40.44 kB / 1.274 GB, free: 6.246 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.502e-05/0.7805, allocations: 6 kB / 1.274 GB, free: 6.246 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.829e-05/0.7805, allocations: 6 kB / 1.274 GB, free: 6.246 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 5.326e-05/0.7806, allocations: 18.89 kB / 1.274 GB, free: 6.234 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.447e-05/0.7806, allocations: 35.98 kB / 1.274 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000129/0.7807, allocations: 72.38 kB / 1.274 GB, free: 6.184 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.7807, allocations: 0 / 1.274 GB, free: 6.184 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.734e-06/0.7807, allocations: 4.688 kB / 1.274 GB, free: 6.18 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.199e-06/0.7808, allocations: 4 kB / 1.274 GB, free: 6.176 MB / 0.9981 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.0005557/0.7813, allocations: 446.4 kB / 1.274 GB, free: 5.73 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.7813, allocations: 9.812 kB / 1.274 GB, free: 5.73 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.026e-05/0.7814, allocations: 37.8 kB / 1.274 GB, free: 5.688 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.398e-05/0.7814, allocations: 9.828 kB / 1.274 GB, free: 5.684 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001265/0.7815, allocations: 188.1 kB / 1.274 GB, free: 5.477 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.7815, allocations: 2.75 kB / 1.274 GB, free: 5.477 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.627e-05/0.7816, allocations: 4.906 kB / 1.274 GB, free: 5.477 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002602/0.7818, allocations: 103.6 kB / 1.274 GB, free: 5.418 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.7818, allocations: 0.8438 kB / 1.274 GB, free: 5.418 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.7818, allocations: 5.719 kB / 1.274 GB, free: 5.414 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.7818, allocations: 5.062 kB / 1.274 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002669/0.7821, allocations: 70.62 kB / 1.275 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000444/0.7826, allocations: 343.7 kB / 1.275 GB, free: 5.09 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00027/0.7828, allocations: 76.27 kB / 1.275 GB, free: 5.059 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000151/0.783, allocations: 52.77 kB / 1.275 GB, free: 5.039 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.279e-05/0.783, allocations: 4.875 kB / 1.275 GB, free: 5.035 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002616/0.7833, allocations: 110.8 kB / 1.275 GB, free: 4.969 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.452e-06/0.7833, allocations: 0 / 1.275 GB, free: 4.969 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0005785/0.7838, allocations: 209.2 kB / 1.275 GB, free: 4.871 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.963e-05/0.7839, allocations: 85.2 kB / 1.275 GB, free: 4.773 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.233e-05/0.7839, allocations: 132.4 kB / 1.276 GB, free: 4.66 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.784, allocations: 27.14 kB / 1.276 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.541e-05/0.784, allocations: 96.95 kB / 1.276 GB, free: 4.535 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.816e-05/0.784, allocations: 16.27 kB / 1.276 GB, free: 4.523 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.876e-05/0.7841, allocations: 26.27 kB / 1.276 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.223e-05/0.7841, allocations: 323 kB / 1.276 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.7843, allocations: 54.64 kB / 1.276 GB, free: 4.168 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001528/0.7844, allocations: 46.34 kB / 1.276 GB, free: 4.16 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002876/0.7847, allocations: 171.5 kB / 1.276 GB, free: 4.035 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.7847, allocations: 0 / 1.276 GB, free: 4.035 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003891/0.7851, allocations: 216.1 kB / 1.276 GB, free: 3.902 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.194e-05/0.7851, allocations: 60.3 kB / 1.276 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.7851, allocations: 80 / 1.276 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.7851, allocations: 0.75 kB / 1.276 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.7853, allocations: 16.27 kB / 1.277 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.7853, allocations: 4.984 kB / 1.277 GB, free: 3.836 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001316/0.7854, allocations: 30.23 kB / 1.277 GB, free: 3.82 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.541e-05/0.7854, allocations: 4.188 kB / 1.277 GB, free: 3.82 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (act1.count,$PRE.act1.count,act1.T_start,$PRE.act1.T_start,reqCou.nInc,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * 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 prepare postOptimizeDAE: time 7.224e-05/0.7855, allocations: 149.1 kB / 1.277 GB, free: 3.668 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.85e-05/0.7855, allocations: 8.109 kB / 1.277 GB, free: 3.664 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.757e-05/0.7855, allocations: 12.88 kB / 1.277 GB, free: 3.648 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.095e-06/0.7855, allocations: 1.375 kB / 1.277 GB, free: 3.648 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.7855, allocations: 0 / 1.277 GB, free: 3.648 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.7856, allocations: 5.797 kB / 1.277 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004604/0.786, allocations: 428.5 kB / 1.277 GB, free: 3.281 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.786, allocations: 4.75 kB / 1.277 GB, free: 3.277 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.49e-05/0.7861, allocations: 17.14 kB / 1.277 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.7861, allocations: 3.078 kB / 1.277 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.7861, allocations: 0.8125 kB / 1.277 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.7861, allocations: 4.906 kB / 1.277 GB, free: 3.27 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.7861, allocations: 0 / 1.277 GB, free: 3.27 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003714/0.7865, allocations: 272 kB / 1.277 GB, free: 3.074 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.207e-05/0.7865, allocations: 89.41 kB / 1.278 GB, free: 2.973 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.219e-05/0.7865, allocations: 5.812 kB / 1.278 GB, free: 2.969 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001439/0.7867, allocations: 21.95 kB / 1.278 GB, free: 2.961 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.469e-05/0.7868, allocations: 20.52 kB / 1.278 GB, free: 2.957 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.055e-05/0.7868, allocations: 2.688 kB / 1.278 GB, free: 2.957 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.93e-05/0.7868, allocations: 105.6 kB / 1.278 GB, free: 2.875 MB / 0.9981 GB Notification: Performance of sort global known variables: time 9e-08/0.7868, allocations: 0.625 kB / 1.278 GB, free: 2.875 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002276/0.787, allocations: 27.69 kB / 1.278 GB, free: 2.863 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,reqCou.nInc,act1.T_start,act1.count) * Number of discrete states: 2 (act1.count,reqCou.nInc) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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.0005472/0.7876, allocations: 0.7969 MB / 1.278 GB, free: 2.148 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003974/0.788, allocations: 215.8 kB / 1.279 GB, free: 2 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.788, allocations: 0 / 1.279 GB, free: 2 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001905/0.7882, allocations: 116.2 kB / 1.279 GB, free: 1.918 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002624/0.7884, allocations: 16.44 kB / 1.279 GB, free: 1.91 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002114/0.7906, allocations: 1.721 MB / 1.28 GB, free: 16.52 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002754/0.7908, allocations: 0.6918 MB / 1.281 GB, free: 15.82 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 5.854e-05/0.7909, allocations: 9.5 kB / 1.281 GB, free: 15.82 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.591e-05/0.791, allocations: 30.75 kB / 1.281 GB, free: 15.8 MB / 1.014 GB Notification: Performance of SimCode: time 4.91e-07/0.791, allocations: 0 / 1.281 GB, free: 15.8 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02573/0.8167, allocations: 2.521 MB / 1.284 GB, free: 15.36 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.13/7.947, allocations: 5.156 kB / 1.284 GB, free: 15.36 MB / 1.014 GB " [Timeout remaining time 292] (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat --tempDir=temp_Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,act1.y,act2.y,act3.y,reqCou.nInc Variables in the result:act1.amplitude,act1.nperiod,act1.offset,act1.period,act1.startTime,act1.width,act1.y,act2.amplitude,act2.f,act2.offset,act2.phase,act2.startTime,act2.y,act3.k,act3.y,reqCou.nAct,reqCou.nInc,reqCou.uAct[1],reqCou.uAct[2],reqCou.uAct[3],reqCou.uTri,time [Calling sys.exit(0), Time elapsed: 13.249381698000434]