Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_latest_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.001099/0.001099, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001493/0.001494, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.511/1.511, allocations: 223.3 MB / 240 MB, free: 5.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.64/2.64, allocations: 409.4 MB / 0.684 GB, free: 0.8555 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004006/0.0004008, allocations: 8 kB / 0.8378 GB, free: 6.465 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8045/0.8049, allocations: 146.8 MB / 0.9812 GB, free: 6.223 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001033/0.806, allocations: 445 kB / 0.9816 GB, free: 5.793 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001754/0.8077, allocations: 1.158 MB / 0.9827 GB, free: 4.617 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.252e-05/0.8078, allocations: 4 kB / 0.9827 GB, free: 4.613 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.925e-05/0.8078, allocations: 3.938 kB / 0.9827 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.801e-05/0.8079, allocations: 7.922 kB / 0.9827 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005833/0.8085, allocations: 126.8 kB / 0.9828 GB, free: 4.48 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001207/0.8087, allocations: 95.81 kB / 0.9829 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.316e-05/0.8088, allocations: 7.984 kB / 0.9829 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.896e-05/0.8089, allocations: 39.91 kB / 0.983 GB, free: 4.34 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.913e-05/0.8089, allocations: 35.89 kB / 0.983 GB, free: 4.305 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.065e-05/0.809, allocations: 4 kB / 0.983 GB, free: 4.301 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.496e-05/0.8091, allocations: 23.97 kB / 0.983 GB, free: 4.277 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.923e-05/0.8091, allocations: 7.938 kB / 0.983 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.951e-05/0.8091, allocations: 37.7 kB / 0.9831 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001342/0.8093, allocations: 78.2 kB / 0.9832 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.8093, allocations: 0 / 0.9832 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.633e-06/0.8093, allocations: 0 / 0.9832 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.8093, allocations: 0 / 0.9832 GB, free: 4.152 MB / 0.7325 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.0006108/0.8099, allocations: 396.8 kB / 0.9835 GB, free: 3.711 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/0.81, allocations: 8.031 kB / 0.9835 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.094e-05/0.81, allocations: 30.56 kB / 0.9836 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.378e-05/0.8101, allocations: 19.94 kB / 0.9836 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001329/0.8102, allocations: 174.8 kB / 0.9838 GB, free: 3.434 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.8102, allocations: 4 kB / 0.9838 GB, free: 3.43 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.418e-05/0.8103, allocations: 12 kB / 0.9838 GB, free: 3.418 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000198/0.8105, allocations: 73.61 kB / 0.9838 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.834e-06/0.8105, allocations: 0 / 0.9838 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.408e-06/0.8105, allocations: 0 / 0.9838 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.8105, allocations: 4 kB / 0.9838 GB, free: 3.336 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001683/0.8107, allocations: 47.95 kB / 0.9839 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004773/0.8112, allocations: 328.7 kB / 0.9842 GB, free: 2.918 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001631/0.8114, allocations: 54.55 kB / 0.9843 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.018e-05/0.8114, allocations: 28.94 kB / 0.9843 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.8115, allocations: 11.98 kB / 0.9843 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002349/0.8117, allocations: 91.38 kB / 0.9844 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.573e-06/0.8117, allocations: 0 / 0.9844 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.000465/0.8122, allocations: 153.5 kB / 0.9845 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.298e-05/0.8123, allocations: 55.34 kB / 0.9846 GB, free: 2.488 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.417e-05/0.8124, allocations: 113.8 kB / 0.9847 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.8124, allocations: 29.7 kB / 0.9847 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.009e-05/0.8125, allocations: 96.22 kB / 0.9848 GB, free: 2.23 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.149e-05/0.8125, allocations: 23.73 kB / 0.9848 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.443e-05/0.8125, allocations: 4 kB / 0.9848 GB, free: 2.203 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001315/0.8127, allocations: 314.8 kB / 0.9851 GB, free: 1.887 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001517/0.8128, allocations: 59.89 kB / 0.9852 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.813, allocations: 87.39 kB / 0.9853 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001733/0.8132, allocations: 85.62 kB / 0.9854 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.8132, allocations: 0 / 0.9854 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004315/0.8136, allocations: 207.2 kB / 0.9856 GB, free: 1.426 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.142e-05/0.8137, allocations: 35.11 kB / 0.9856 GB, free: 1.387 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.8137, allocations: 0 / 0.9856 GB, free: 1.387 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.8137, allocations: 0 / 0.9856 GB, free: 1.387 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.633e-05/0.8138, allocations: 19.92 kB / 0.9856 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.433e-06/0.8138, allocations: 8 kB / 0.9856 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002041/0.814, allocations: 49.08 kB / 0.9857 GB, free: 1.312 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.084e-05/0.814, allocations: 8 kB / 0.9857 GB, free: 1.305 MB / 0.7325 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,$whenCondition1,$PRE.booPul.y,booPul.y,$PRE.triggeredMax.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000123/0.8142, allocations: 125.8 kB / 0.9858 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.346e-05/0.8142, allocations: 7.906 kB / 0.9858 GB, free: 1.164 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002885/0.8145, allocations: 126 kB / 0.9859 GB, free: 1.031 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.8145, allocations: 0 / 0.9859 GB, free: 1.031 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.8145, allocations: 96 / 0.9859 GB, free: 1.031 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.8145, allocations: 7.984 kB / 0.9859 GB, free: 1.023 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004218/0.8149, allocations: 366.9 kB / 0.9863 GB, free: 0.6094 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.815, allocations: 0 / 0.9863 GB, free: 0.6094 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.346e-05/0.815, allocations: 23.92 kB / 0.9863 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.815, allocations: 0 / 0.9863 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-06/0.8151, allocations: 0 / 0.9863 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.8151, allocations: 4.469 kB / 0.9863 GB, free: 0.582 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.8151, allocations: 4.062 kB / 0.9863 GB, free: 0.5781 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000297/0.8154, allocations: 219.4 kB / 0.9865 GB, free: 356 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.809e-05/0.8154, allocations: 81.02 kB / 0.9866 GB, free: 256 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.999e-05/0.8155, allocations: 4 kB / 0.9866 GB, free: 252 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.163e-05/0.8155, allocations: 15.92 kB / 0.9866 GB, free: 236 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.86e-05/0.8156, allocations: 4 kB / 0.9866 GB, free: 232 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/0.8156, allocations: 0 / 0.9866 GB, free: 232 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.746e-05/0.8156, allocations: 91.27 kB / 0.9867 GB, free: 140 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8157, allocations: 4 kB / 0.9867 GB, free: 136 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000248/0.8159, allocations: 24 kB / 0.9867 GB, free: 112 kB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006595/0.8166, allocations: 0.763 MB / 0.9875 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003522/0.8169, allocations: 179.3 kB / 0.9876 GB, free: 15.13 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.817, allocations: 4 kB / 0.9877 GB, free: 15.13 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001276/0.8171, allocations: 44.11 kB / 0.9877 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002719/0.8174, allocations: 7.984 kB / 0.9877 GB, free: 15.08 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001169/0.8185, allocations: 0.651 MB / 0.9883 GB, free: 14.37 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002768/0.8188, allocations: 0.6887 MB / 0.989 GB, free: 13.66 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 3.16e-05/0.8189, allocations: 4.188 kB / 0.989 GB, free: 13.65 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.081e-05/0.8189, allocations: 19.44 kB / 0.989 GB, free: 13.63 MB / 0.7481 GB Notification: Performance of SimCode: time 1.894e-06/0.8189, allocations: 0 / 0.989 GB, free: 13.63 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01228/0.8312, allocations: 2.117 MB / 0.9911 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001767/0.8314, allocations: 203.1 kB / 0.9913 GB, free: 11.43 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.831/2.663, allocations: 0 / 0.9913 GB, free: 11.43 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat does not exist to compare? outputFormat=mat