Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007797/0.0007797, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008625/0.0008625, allocations: 165.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8537/0.8537, allocations: 177.1 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.673/1.673, allocations: 377.8 MB / 0.6221 GB, free: 8.656 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.415e-06/2.415e-06, allocations: 0 / 0.9809 GB, free: 2.594 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.224e-05/2.466e-05, allocations: 5.234 kB / 0.981 GB, free: 2.59 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002914/0.002939, allocations: 1.545 MB / 0.9825 GB, free: 1.035 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001011/0.003949, allocations: 486.7 kB / 0.9829 GB, free: 0.5547 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.178e-05/0.004021, allocations: 0 / 0.9829 GB, free: 0.5547 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 0.0001064/0.004128, allocations: 7.922 kB / 0.9829 GB, free: 0.5469 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.648e-05/0.004194, allocations: 19.81 kB / 0.983 GB, free: 0.5273 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003324/0.004526, allocations: 47.81 kB / 0.983 GB, free: 492 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0002272/0.004754, allocations: 87.7 kB / 0.9831 GB, free: 404 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.00491, allocations: 19.97 kB / 0.9831 GB, free: 384 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002665/0.005177, allocations: 55.83 kB / 0.9832 GB, free: 328 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001041/0.005281, allocations: 27.95 kB / 0.9832 GB, free: 300 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 3.011e-05/0.005311, allocations: 7.938 kB / 0.9832 GB, free: 292 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 5.802e-05/0.005369, allocations: 12 kB / 0.9832 GB, free: 280 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 4.443e-05/0.005413, allocations: 11.98 kB / 0.9832 GB, free: 268 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 5.918e-05/0.005473, allocations: 27.91 kB / 0.9832 GB, free: 240 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001849/0.005658, allocations: 83.7 kB / 0.9833 GB, free: 156 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.005661, allocations: 4 kB / 0.9833 GB, free: 152 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.222e-06/0.005662, allocations: 0 / 0.9833 GB, free: 152 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 5.23e-06/0.005667, allocations: 0 / 0.9833 GB, free: 152 kB / 0.9323 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.0006729/0.00634, allocations: 377.4 kB / 0.9837 GB, free: 15.74 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.006383, allocations: 12.03 kB / 0.9837 GB, free: 15.73 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.986e-05/0.006423, allocations: 34.75 kB / 0.9837 GB, free: 15.68 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001635/0.006586, allocations: 20.88 kB / 0.9837 GB, free: 15.66 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002235/0.00681, allocations: 133.6 kB / 0.9839 GB, free: 15.51 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.708e-05/0.006827, allocations: 12.38 kB / 0.9839 GB, free: 15.5 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.744e-05/0.006844, allocations: 4.375 kB / 0.9839 GB, free: 15.49 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002953/0.007139, allocations: 123.9 kB / 0.984 GB, free: 15.36 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/0.007149, allocations: 4.125 kB / 0.984 GB, free: 15.36 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.007164, allocations: 4.125 kB / 0.984 GB, free: 15.35 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.00717, allocations: 0 / 0.984 GB, free: 15.35 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002572/0.007427, allocations: 105.6 kB / 0.9841 GB, free: 15.24 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005675/0.007994, allocations: 295.8 kB / 0.9844 GB, free: 14.91 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002603/0.008255, allocations: 108.2 kB / 0.9845 GB, free: 14.79 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/0.008402, allocations: 86.58 kB / 0.9846 GB, free: 14.7 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.008416, allocations: 0 / 0.9846 GB, free: 14.7 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002783/0.008694, allocations: 137 kB / 0.9847 GB, free: 14.54 MB / 0.948 GB Notification: Performance of pre-optimization done (n=7): time 2.064e-06/0.008696, allocations: 0 / 0.9847 GB, free: 14.54 MB / 0.948 GB Notification: Performance of matching and sorting (n=7): time 0.0005821/0.009278, allocations: 262.6 kB / 0.985 GB, free: 14.26 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.383e-05/0.009332, allocations: 81.11 kB / 0.985 GB, free: 14.16 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.009443, allocations: 136.3 kB / 0.9852 GB, free: 14.02 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.047e-05/0.009463, allocations: 29.7 kB / 0.9852 GB, free: 13.99 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 6.41e-05/0.009527, allocations: 100.1 kB / 0.9853 GB, free: 13.89 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.234e-05/0.00955, allocations: 23.89 kB / 0.9853 GB, free: 13.86 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.069e-05/0.00961, allocations: 29.66 kB / 0.9853 GB, free: 13.83 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.995e-05/0.00971, allocations: 322.8 kB / 0.9857 GB, free: 13.5 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001736/0.009884, allocations: 107.4 kB / 0.9858 GB, free: 13.39 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.01003, allocations: 103.4 kB / 0.9859 GB, free: 13.27 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002669/0.0103, allocations: 169.8 kB / 0.986 GB, free: 13.09 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.0103, allocations: 4 kB / 0.986 GB, free: 13.08 MB / 0.948 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004193/0.01072, allocations: 264.4 kB / 0.9863 GB, free: 12.79 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 5.463e-05/0.01077, allocations: 63.39 kB / 0.9863 GB, free: 12.72 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.01078, allocations: 0 / 0.9863 GB, free: 12.72 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.0108, allocations: 0 / 0.9863 GB, free: 12.72 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.01091, allocations: 20.2 kB / 0.9864 GB, free: 12.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.01092, allocations: 0 / 0.9864 GB, free: 12.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001058/0.01102, allocations: 23.92 kB / 0.9864 GB, free: 12.68 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/0.01104, allocations: 11.92 kB / 0.9864 GB, free: 12.66 MB / 0.948 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 0.0001185/0.01116, allocations: 147.5 kB / 0.9865 GB, free: 12.5 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.957e-05/0.01118, allocations: 7.953 kB / 0.9865 GB, free: 12.5 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.391e-05/0.01121, allocations: 20.77 kB / 0.9866 GB, free: 12.48 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.01121, allocations: 0 / 0.9866 GB, free: 12.48 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.01122, allocations: 0 / 0.9866 GB, free: 12.48 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.768e-06/0.01122, allocations: 0 / 0.9866 GB, free: 12.48 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005493/0.01177, allocations: 428.8 kB / 0.987 GB, free: 12 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.01178, allocations: 0 / 0.987 GB, free: 12 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.782e-05/0.01185, allocations: 15.98 kB / 0.987 GB, free: 11.98 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.01186, allocations: 0 / 0.987 GB, free: 11.98 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.01187, allocations: 3.984 kB / 0.987 GB, free: 11.98 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.01188, allocations: 400 / 0.987 GB, free: 11.98 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.01188, allocations: 3.984 kB / 0.987 GB, free: 11.97 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004527/0.01233, allocations: 310.7 kB / 0.9873 GB, free: 11.64 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 2.165e-05/0.01235, allocations: 15.91 kB / 0.9873 GB, free: 11.62 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.488e-05/0.01238, allocations: 0 / 0.9873 GB, free: 11.62 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.01251, allocations: 15.97 kB / 0.9873 GB, free: 11.61 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.01262, allocations: 27.91 kB / 0.9873 GB, free: 11.58 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.01264, allocations: 7.938 kB / 0.9873 GB, free: 11.57 MB / 0.948 GB Notification: Performance of sorting global known variables: time 7.091e-05/0.01271, allocations: 103.3 kB / 0.9874 GB, free: 11.47 MB / 0.948 GB Notification: Performance of sort global known variables: time 2.21e-07/0.01271, allocations: 0 / 0.9874 GB, free: 11.47 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002718/0.01298, allocations: 16 kB / 0.9875 GB, free: 11.46 MB / 0.948 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.000698/0.01368, allocations: 0.8256 MB / 0.9883 GB, free: 10.59 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0004455/0.01412, allocations: 315.8 kB / 0.9886 GB, free: 10.24 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.01412, allocations: 0 / 0.9886 GB, free: 10.24 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001956/0.01432, allocations: 129.1 kB / 0.9887 GB, free: 10.1 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003242/0.01464, allocations: 25.95 kB / 0.9887 GB, free: 10.07 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/0.01698, allocations: 1.965 MB / 0.9906 GB, free: 7.957 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.413e-05/0.01705, allocations: 83.33 kB / 0.9907 GB, free: 7.855 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 6.896e-05/0.01712, allocations: 12.2 kB / 0.9907 GB, free: 7.844 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.843e-05/0.01719, allocations: 24.5 kB / 0.9908 GB, free: 7.816 MB / 0.948 GB Notification: Performance of SimCode: time 5.21e-07/0.01719, allocations: 4 kB / 0.9908 GB, free: 7.812 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02233/0.03952, allocations: 3.337 MB / 0.994 GB, free: 4.66 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.277/7.316, allocations: 6.172 kB / 0.994 GB, free: 4.66 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat --tempDir=temp_Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --stepSize=0.24 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.243703374639153]