Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) 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.RequestCounter,fileNamePrefix="Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",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.006705/0.006705, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.001559/0.001559, allocations: 193.2 kB / 16.67 MB, free: 5.969 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.323/1.323, allocations: 222.9 MB / 240.4 MB, free: 4.332 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.482/2.482, allocations: 437 MB / 0.7105 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 71.89 kB / 1.018 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2512, allocations: 151.6 MB / 1.166 GB, free: 7.312 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002473/0.2537, allocations: 1.523 MB / 1.168 GB, free: 5.773 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0006734/0.2544, allocations: 454.9 kB / 1.168 GB, free: 5.324 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.272e-05/0.2544, allocations: 0 / 1.168 GB, free: 5.324 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 8.53e-05/0.2545, allocations: 11.92 kB / 1.168 GB, free: 5.312 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.606e-05/0.2546, allocations: 7.875 kB / 1.168 GB, free: 5.305 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001711/0.2548, allocations: 27.91 kB / 1.168 GB, free: 5.277 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001461/0.2549, allocations: 99.75 kB / 1.168 GB, free: 5.18 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 8.829e-05/0.255, allocations: 16.17 kB / 1.168 GB, free: 5.164 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.2551, allocations: 35.86 kB / 1.168 GB, free: 5.129 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.575e-05/0.2552, allocations: 43.81 kB / 1.168 GB, free: 5.086 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.507e-05/0.2552, allocations: 4 kB / 1.168 GB, free: 5.082 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.825e-05/0.2553, allocations: 12 kB / 1.168 GB, free: 5.07 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.17e-05/0.2553, allocations: 15.98 kB / 1.168 GB, free: 5.055 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.469e-05/0.2554, allocations: 35.73 kB / 1.168 GB, free: 5.02 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001319/0.2555, allocations: 68 kB / 1.168 GB, free: 4.953 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2555, allocations: 3.938 kB / 1.168 GB, free: 4.949 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.615e-06/0.2555, allocations: 0 / 1.168 GB, free: 4.949 MB / 0.92 GB Notification: Performance of Transformations before backend: time 3.967e-06/0.2555, allocations: 3.938 kB / 1.168 GB, free: 4.945 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006295/0.2562, allocations: 454.5 kB / 1.169 GB, free: 4.441 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.2562, allocations: 12.03 kB / 1.169 GB, free: 4.43 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.469e-05/0.2562, allocations: 38.75 kB / 1.169 GB, free: 4.383 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.215e-05/0.2563, allocations: 8.891 kB / 1.169 GB, free: 4.375 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001616/0.2564, allocations: 184.3 kB / 1.169 GB, free: 4.156 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.2565, allocations: 8.375 kB / 1.169 GB, free: 4.148 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.699e-05/0.2565, allocations: 4.375 kB / 1.169 GB, free: 4.145 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002712/0.2568, allocations: 97.5 kB / 1.169 GB, free: 4.043 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.2568, allocations: 0 / 1.169 GB, free: 4.043 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.2568, allocations: 8 kB / 1.169 GB, free: 4.035 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.2568, allocations: 0 / 1.169 GB, free: 4.035 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002737/0.2571, allocations: 71.94 kB / 1.169 GB, free: 3.965 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005246/0.2576, allocations: 336.6 kB / 1.17 GB, free: 3.586 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002805/0.2579, allocations: 86.52 kB / 1.17 GB, free: 3.492 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00016/0.2581, allocations: 52.95 kB / 1.17 GB, free: 3.438 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.187e-05/0.2581, allocations: 0 / 1.17 GB, free: 3.438 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002767/0.2584, allocations: 103.3 kB / 1.17 GB, free: 3.324 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 4.228e-06/0.2584, allocations: 4 kB / 1.17 GB, free: 3.32 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.000602/0.259, allocations: 207.3 kB / 1.17 GB, free: 3.105 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.065e-05/0.2591, allocations: 85.09 kB / 1.17 GB, free: 3.004 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.2592, allocations: 130.1 kB / 1.17 GB, free: 2.863 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.928e-05/0.2592, allocations: 29.7 kB / 1.17 GB, free: 2.828 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.789e-05/0.2593, allocations: 92.14 kB / 1.17 GB, free: 2.734 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.422e-05/0.2593, allocations: 31.77 kB / 1.17 GB, free: 2.703 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.921e-05/0.2594, allocations: 25.72 kB / 1.17 GB, free: 2.672 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.2595, allocations: 322.8 kB / 1.171 GB, free: 2.348 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000168/0.2596, allocations: 51.95 kB / 1.171 GB, free: 2.297 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001531/0.2598, allocations: 51.84 kB / 1.171 GB, free: 2.246 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003157/0.2601, allocations: 169.9 kB / 1.171 GB, free: 2.059 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.2601, allocations: 0 / 1.171 GB, free: 2.059 MB / 0.92 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004294/0.2606, allocations: 212.9 kB / 1.171 GB, free: 1.832 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.067e-05/0.2606, allocations: 65.53 kB / 1.171 GB, free: 1.758 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.868e-06/0.2606, allocations: 0 / 1.171 GB, free: 1.758 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/0.2606, allocations: 0 / 1.171 GB, free: 1.758 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/0.2608, allocations: 19.97 kB / 1.171 GB, free: 1.738 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.2608, allocations: 4 kB / 1.171 GB, free: 1.734 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001391/0.2609, allocations: 27.86 kB / 1.171 GB, free: 1.707 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.738e-05/0.261, allocations: 8 kB / 1.171 GB, free: 1.699 MB / 0.92 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 9.635e-05/0.2611, allocations: 143.5 kB / 1.171 GB, free: 1.543 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.805e-05/0.2611, allocations: 7.953 kB / 1.171 GB, free: 1.535 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.805e-05/0.2611, allocations: 12.7 kB / 1.171 GB, free: 1.523 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.2611, allocations: 4 kB / 1.171 GB, free: 1.52 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.2611, allocations: 0 / 1.171 GB, free: 1.52 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2611, allocations: 7.938 kB / 1.171 GB, free: 1.512 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005621/0.2617, allocations: 436.4 kB / 1.172 GB, free: 1.023 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2617, allocations: 0 / 1.172 GB, free: 1.023 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.977e-05/0.2618, allocations: 15.98 kB / 1.172 GB, free: 1.008 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.2618, allocations: 0 / 1.172 GB, free: 1.008 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.2618, allocations: 0 / 1.172 GB, free: 1.008 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.2618, allocations: 3.938 kB / 1.172 GB, free: 1.004 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.2619, allocations: 8.281 kB / 1.172 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004197/0.2623, allocations: 261.1 kB / 1.172 GB, free: 0.7188 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.123e-05/0.2623, allocations: 92.98 kB / 1.172 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.28e-05/0.2624, allocations: 11.94 kB / 1.172 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001574/0.2625, allocations: 15.92 kB / 1.172 GB, free: 0.582 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.256e-05/0.2626, allocations: 23.97 kB / 1.172 GB, free: 0.5586 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.2626, allocations: 8 kB / 1.172 GB, free: 0.5508 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.638e-05/0.2627, allocations: 97.09 kB / 1.172 GB, free: 468 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2627, allocations: 0 / 1.172 GB, free: 468 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.000243/0.263, allocations: 20 kB / 1.172 GB, free: 448 kB / 0.92 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.000703/0.2637, allocations: 0.8038 MB / 1.173 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004249/0.2641, allocations: 222.7 kB / 1.173 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2641, allocations: 0 / 1.173 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000208/0.2643, allocations: 111.3 kB / 1.174 GB, free: 15.24 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00027/0.2646, allocations: 19.92 kB / 1.174 GB, free: 15.22 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002126/0.2667, allocations: 1.709 MB / 1.175 GB, free: 13.41 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002455/0.267, allocations: 0.6962 MB / 1.176 GB, free: 12.69 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.095e-05/0.2671, allocations: 15.92 kB / 1.176 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.455e-05/0.2671, allocations: 23.44 kB / 1.176 GB, free: 12.65 MB / 0.9356 GB Notification: Performance of SimCode: time 2.6e-07/0.2671, allocations: 0 / 1.176 GB, free: 12.65 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01751/0.2847, allocations: 2.541 MB / 1.178 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.287/7.571, allocations: 11.81 kB / 1.178 GB, free: 10.25 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches