Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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.TriggeredSampler,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",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.001338/0.001338, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.00145/0.00145, allocations: 177.3 kB / 15.94 MB, free: 220 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.486/1.486, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.384/2.384, allocations: 390.3 MB / 0.6653 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004553/0.0004554, allocations: 12 kB / 0.8146 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.831/0.8315, allocations: 142.3 MB / 0.9536 GB, free: 8.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.0009048/0.8324, allocations: 472 kB / 0.9541 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00124/0.8337, allocations: 1.107 MB / 0.9551 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.081e-05/0.8338, allocations: 1.344 kB / 0.9551 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.639e-05/0.8338, allocations: 3.938 kB / 0.9551 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.111e-05/0.8339, allocations: 14.12 kB / 0.9552 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003975/0.8343, allocations: 123 kB / 0.9553 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.247e-05/0.8344, allocations: 60.27 kB / 0.9553 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.336e-05/0.8345, allocations: 15.7 kB / 0.9553 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.612e-05/0.8346, allocations: 35.77 kB / 0.9554 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.922e-05/0.8346, allocations: 41.62 kB / 0.9554 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.079e-05/0.8347, allocations: 9.188 kB / 0.9554 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.108e-05/0.8347, allocations: 23.8 kB / 0.9554 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.956e-05/0.8348, allocations: 11.64 kB / 0.9555 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.617e-05/0.8348, allocations: 41.08 kB / 0.9555 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001089/0.8349, allocations: 79.3 kB / 0.9556 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.8349, allocations: 0 / 0.9556 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.603e-06/0.8349, allocations: 0 / 0.9556 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.384e-06/0.835, allocations: 0 / 0.9556 GB, free: 6.586 MB / 0.7169 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.0004581/0.8354, allocations: 409.3 kB / 0.956 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.8355, allocations: 9.25 kB / 0.956 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.775e-05/0.8355, allocations: 31.72 kB / 0.956 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.152e-05/0.8355, allocations: 18.66 kB / 0.956 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.256e-05/0.8356, allocations: 170.1 kB / 0.9562 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.563e-05/0.8356, allocations: 8.594 kB / 0.9562 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.266e-05/0.8357, allocations: 6.812 kB / 0.9562 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00019/0.8359, allocations: 80 kB / 0.9563 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.682e-06/0.8359, allocations: 0 / 0.9563 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.908e-06/0.8359, allocations: 5.125 kB / 0.9563 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.8359, allocations: 5.078 kB / 0.9563 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001877/0.8361, allocations: 59.31 kB / 0.9563 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004464/0.8366, allocations: 341.1 kB / 0.9567 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001695/0.8367, allocations: 60.61 kB / 0.9567 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.8368, allocations: 5.062 kB / 0.9567 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000238/0.837, allocations: 109.1 kB / 0.9568 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.383e-06/0.837, allocations: 0 / 0.9568 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.000428/0.8374, allocations: 169.9 kB / 0.957 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.907e-05/0.8375, allocations: 53.66 kB / 0.957 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.194e-05/0.8376, allocations: 116 kB / 0.9572 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.041e-05/0.8376, allocations: 32.11 kB / 0.9572 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.592e-05/0.8376, allocations: 103.5 kB / 0.9573 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.98e-05/0.8377, allocations: 23.39 kB / 0.9573 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.461e-05/0.8377, allocations: 6.625 kB / 0.9573 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.219e-05/0.8377, allocations: 320.1 kB / 0.9576 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001558/0.8379, allocations: 52.16 kB / 0.9577 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001571/0.8381, allocations: 97.05 kB / 0.9578 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001618/0.8382, allocations: 89.64 kB / 0.9578 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.8382, allocations: 0 / 0.9578 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000424/0.8387, allocations: 217.7 kB / 0.9581 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.439e-05/0.8387, allocations: 46.02 kB / 0.9581 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.8387, allocations: 1.375 kB / 0.9581 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.8388, allocations: 2.188 kB / 0.9581 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.8389, allocations: 21.58 kB / 0.9581 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.8389, allocations: 1 kB / 0.9581 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002498/0.8392, allocations: 61.08 kB / 0.9582 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.527e-05/0.8392, allocations: 6.906 kB / 0.9582 GB, free: 4.227 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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 9.538e-05/0.8393, allocations: 117.2 kB / 0.9583 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.231e-05/0.8393, allocations: 3.531 kB / 0.9583 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003229/0.8396, allocations: 146.3 kB / 0.9584 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.8397, allocations: 5.422 kB / 0.9584 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.8397, allocations: 0 / 0.9584 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.8397, allocations: 0 / 0.9584 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004385/0.8401, allocations: 387.3 kB / 0.9588 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.8401, allocations: 0 / 0.9588 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.607e-05/0.8402, allocations: 21.5 kB / 0.9588 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.8402, allocations: 1.375 kB / 0.9588 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.8402, allocations: 4 kB / 0.9588 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.8402, allocations: 1.375 kB / 0.9588 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.8402, allocations: 0 / 0.9588 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003046/0.8406, allocations: 221.7 kB / 0.9591 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.928e-05/0.8406, allocations: 83.73 kB / 0.9591 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.349e-05/0.8406, allocations: 5.422 kB / 0.9591 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.761e-05/0.8407, allocations: 17.45 kB / 0.9592 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.824e-05/0.8408, allocations: 7.234 kB / 0.9592 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.177e-05/0.8408, allocations: 10.34 kB / 0.9592 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.374e-05/0.8408, allocations: 92.28 kB / 0.9593 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8408, allocations: 0 / 0.9593 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002699/0.8411, allocations: 21.75 kB / 0.9593 GB, free: 3.258 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0005585/0.8417, allocations: 0.7652 MB / 0.96 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004145/0.8421, allocations: 189.7 kB / 0.9602 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.8421, allocations: 0 / 0.9602 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001282/0.8423, allocations: 45.42 kB / 0.9603 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002098/0.8425, allocations: 21.08 kB / 0.9603 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007653/0.8432, allocations: 1.163 MB / 0.9614 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001825/0.8434, allocations: 0.6988 MB / 0.9621 GB, free: 0.5039 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.931e-05/0.8435, allocations: 7.938 kB / 0.9621 GB, free: 0.5 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.715e-05/0.8435, allocations: 26.36 kB / 0.9621 GB, free: 488 kB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.8436, allocations: 1 kB / 0.9621 GB, free: 488 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0128/0.8564, allocations: 2.195 MB / 0.9643 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001744/0.8566, allocations: 193 kB / 0.9645 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.69/2.546, allocations: 1 kB / 0.9645 GB, free: 15.2 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat does not exist to compare? outputFormat=mat