Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.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.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",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.007441/0.007441, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.002217/0.002217, allocations: 200.2 kB / 16.68 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.223/1.223, allocations: 222.9 MB / 240.4 MB, free: 4.34 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.302/2.302, allocations: 437.1 MB / 0.7106 GB, free: 5 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0025/0.0025, allocations: 63.91 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2667, allocations: 151.6 MB / 1.166 GB, free: 7.32 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001637/0.2684, allocations: 0.7215 MB / 1.167 GB, free: 6.586 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001324/0.2697, allocations: 1.19 MB / 1.168 GB, free: 5.379 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.664e-05/0.2698, allocations: 0 / 1.168 GB, free: 5.379 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.471e-05/0.2698, allocations: 3.938 kB / 1.168 GB, free: 5.375 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.174e-05/0.2699, allocations: 15.84 kB / 1.168 GB, free: 5.359 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004373/0.2703, allocations: 136.7 kB / 1.168 GB, free: 5.227 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001603/0.2705, allocations: 127.7 kB / 1.168 GB, free: 5.102 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 7.417e-05/0.2706, allocations: 19.92 kB / 1.168 GB, free: 5.082 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 7.95e-05/0.2706, allocations: 51.83 kB / 1.168 GB, free: 5.031 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.311e-05/0.2707, allocations: 43.89 kB / 1.168 GB, free: 4.988 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.644e-05/0.2708, allocations: 12 kB / 1.168 GB, free: 4.977 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 6.059e-05/0.2708, allocations: 19.98 kB / 1.168 GB, free: 4.957 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.409e-05/0.2709, allocations: 19.91 kB / 1.168 GB, free: 4.938 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.703e-05/0.2709, allocations: 35.92 kB / 1.169 GB, free: 4.902 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001601/0.2711, allocations: 111.9 kB / 1.169 GB, free: 4.793 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.2711, allocations: 0 / 1.169 GB, free: 4.793 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2711, allocations: 4 kB / 1.169 GB, free: 4.789 MB / 0.92 GB Notification: Performance of Transformations before backend: time 3.587e-06/0.2711, allocations: 0 / 1.169 GB, free: 4.789 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005356/0.2716, allocations: 408.9 kB / 1.169 GB, free: 4.332 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.2717, allocations: 12.03 kB / 1.169 GB, free: 4.32 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.983e-05/0.2717, allocations: 34.75 kB / 1.169 GB, free: 4.277 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.486e-05/0.2718, allocations: 8.891 kB / 1.169 GB, free: 4.27 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001102/0.2719, allocations: 172.3 kB / 1.169 GB, free: 4.062 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.478e-05/0.2719, allocations: 8.359 kB / 1.169 GB, free: 4.055 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.061e-05/0.2719, allocations: 8.375 kB / 1.169 GB, free: 4.047 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001712/0.2721, allocations: 70.2 kB / 1.169 GB, free: 3.973 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.2721, allocations: 7.922 kB / 1.169 GB, free: 3.965 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.868e-06/0.2721, allocations: 4 kB / 1.169 GB, free: 3.961 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.366e-06/0.2721, allocations: 0 / 1.169 GB, free: 3.961 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001711/0.2723, allocations: 39.95 kB / 1.169 GB, free: 3.922 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004166/0.2727, allocations: 328.6 kB / 1.17 GB, free: 3.551 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001431/0.2729, allocations: 50.55 kB / 1.17 GB, free: 3.492 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.488e-05/0.273, allocations: 28.94 kB / 1.17 GB, free: 3.461 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.88e-05/0.273, allocations: 0 / 1.17 GB, free: 3.461 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001944/0.2732, allocations: 91.3 kB / 1.17 GB, free: 3.359 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.173e-06/0.2732, allocations: 0 / 1.17 GB, free: 3.359 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0004027/0.2736, allocations: 145.6 kB / 1.17 GB, free: 3.211 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.437e-05/0.2737, allocations: 51.41 kB / 1.17 GB, free: 3.148 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.355e-05/0.2738, allocations: 117.8 kB / 1.17 GB, free: 3.023 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.515e-05/0.2738, allocations: 25.7 kB / 1.17 GB, free: 2.992 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.387e-05/0.2738, allocations: 100 kB / 1.17 GB, free: 2.891 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.018e-05/0.2739, allocations: 19.89 kB / 1.17 GB, free: 2.871 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.749e-05/0.2739, allocations: 37.7 kB / 1.17 GB, free: 2.828 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.2741, allocations: 318.8 kB / 1.171 GB, free: 2.508 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001422/0.2742, allocations: 47.97 kB / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001578/0.2744, allocations: 83.27 kB / 1.171 GB, free: 2.367 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002531/0.2746, allocations: 129.1 kB / 1.171 GB, free: 2.223 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2747, allocations: 3.938 kB / 1.171 GB, free: 2.219 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004/0.2751, allocations: 203.3 kB / 1.171 GB, free: 2.008 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.457e-05/0.2751, allocations: 37.69 kB / 1.171 GB, free: 1.965 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.466e-06/0.2751, allocations: 0 / 1.171 GB, free: 1.965 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.729e-06/0.2751, allocations: 0 / 1.171 GB, free: 1.965 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.132e-05/0.2752, allocations: 11.98 kB / 1.171 GB, free: 1.953 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.2752, allocations: 4 kB / 1.171 GB, free: 1.949 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001901/0.2754, allocations: 31.97 kB / 1.171 GB, free: 1.918 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.007e-05/0.2754, allocations: 7.984 kB / 1.171 GB, free: 1.91 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition3,booPul.y,$PRE.booPul.y,$whenCondition1,triggeredMax.y,$PRE.triggeredMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * 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 9.277e-05/0.2755, allocations: 129.7 kB / 1.171 GB, free: 1.773 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.217e-05/0.2756, allocations: 3.953 kB / 1.171 GB, free: 1.77 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002733/0.2758, allocations: 121.9 kB / 1.171 GB, free: 1.645 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.2758, allocations: 0 / 1.171 GB, free: 1.645 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.2759, allocations: 0 / 1.171 GB, free: 1.645 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.2759, allocations: 0 / 1.171 GB, free: 1.645 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004119/0.2763, allocations: 370.4 kB / 1.172 GB, free: 1.227 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2763, allocations: 0 / 1.172 GB, free: 1.227 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.903e-05/0.2763, allocations: 11.98 kB / 1.172 GB, free: 1.215 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.2764, allocations: 0 / 1.172 GB, free: 1.215 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.085e-06/0.2764, allocations: 3.938 kB / 1.172 GB, free: 1.211 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.2764, allocations: 0 / 1.172 GB, free: 1.211 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.2764, allocations: 3.938 kB / 1.172 GB, free: 1.207 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002894/0.2767, allocations: 207.4 kB / 1.172 GB, free: 0.9883 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.263e-05/0.2767, allocations: 85.06 kB / 1.172 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.677e-05/0.2767, allocations: 4 kB / 1.172 GB, free: 0.8828 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.234e-05/0.2768, allocations: 7.984 kB / 1.172 GB, free: 0.875 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.652e-05/0.2769, allocations: 12.48 kB / 1.172 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.344e-06/0.2769, allocations: 3.984 kB / 1.172 GB, free: 0.8594 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.965e-05/0.2769, allocations: 95.2 kB / 1.172 GB, free: 0.7656 MB / 0.92 GB Notification: Performance of sort global known variables: time 1e-07/0.2769, allocations: 0 / 1.172 GB, free: 0.7656 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002316/0.2772, allocations: 28 kB / 1.172 GB, free: 0.7383 MB / 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: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.000584/0.2778, allocations: 0.7364 MB / 1.173 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003473/0.2781, allocations: 171.3 kB / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.2781, allocations: 0 / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001169/0.2783, allocations: 43.97 kB / 1.173 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002394/0.2785, allocations: 15.92 kB / 1.173 GB, free: 15.74 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001839/0.2804, allocations: 1.641 MB / 1.175 GB, free: 14 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002644/0.2806, allocations: 0.6923 MB / 1.175 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.825e-05/0.2807, allocations: 7.984 kB / 1.175 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.8e-05/0.2807, allocations: 19.44 kB / 1.175 GB, free: 13.25 MB / 0.9356 GB Notification: Performance of SimCode: time 2.3e-07/0.2807, allocations: 0 / 1.175 GB, free: 13.25 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8315/1.112, allocations: 2.449 MB / 1.178 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/12.49, allocations: 7.828 kB / 1.178 GB, free: 10.9 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches