Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 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.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_latest_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.0009596/0.0009599, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001062/0.001062, allocations: 168.7 kB / 15.95 MB, free: 204 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.449/1.449, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.595/2.595, allocations: 409.4 MB / 0.684 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003484/0.0003485, allocations: 12 kB / 0.8378 GB, free: 6.469 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8374/0.8377, allocations: 146.8 MB / 0.9811 GB, free: 6.223 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.0009911/0.8388, allocations: 483.1 kB / 0.9816 GB, free: 5.758 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00165/0.8404, allocations: 1.117 MB / 0.9827 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.13e-05/0.8405, allocations: 0 / 0.9827 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.393e-05/0.8406, allocations: 7.922 kB / 0.9827 GB, free: 4.613 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.087e-05/0.8406, allocations: 11.92 kB / 0.9827 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004696/0.8411, allocations: 126.8 kB / 0.9828 GB, free: 4.48 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001201/0.8412, allocations: 95.81 kB / 0.9829 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/0.8414, allocations: 24.11 kB / 0.983 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 9.468e-05/0.8415, allocations: 47.83 kB / 0.983 GB, free: 4.312 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.451e-05/0.8416, allocations: 31.89 kB / 0.983 GB, free: 4.281 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.528e-05/0.8416, allocations: 8 kB / 0.983 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.141e-05/0.8417, allocations: 15.98 kB / 0.9831 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.335e-05/0.8417, allocations: 15.92 kB / 0.9831 GB, free: 4.242 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.625e-05/0.8418, allocations: 37.7 kB / 0.9831 GB, free: 4.199 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001376/0.8419, allocations: 79.81 kB / 0.9832 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.8419, allocations: 0 / 0.9832 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.103e-06/0.8419, allocations: 0 / 0.9832 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.873e-06/0.8419, allocations: 0 / 0.9832 GB, free: 4.121 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000592/0.8425, allocations: 415 kB / 0.9836 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.8426, allocations: 8.031 kB / 0.9836 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.846e-05/0.8426, allocations: 34.5 kB / 0.9836 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.446e-05/0.8427, allocations: 15.91 kB / 0.9836 GB, free: 3.598 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001534/0.8429, allocations: 171 kB / 0.9838 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.8429, allocations: 4 kB / 0.9838 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.707e-05/0.8429, allocations: 8 kB / 0.9838 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002241/0.8431, allocations: 77.61 kB / 0.9839 GB, free: 3.297 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.8432, allocations: 7.938 kB / 0.9839 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.8432, allocations: 4 kB / 0.9839 GB, free: 3.285 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.8432, allocations: 0 / 0.9839 GB, free: 3.285 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001903/0.8434, allocations: 55.95 kB / 0.9839 GB, free: 3.23 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005955/0.844, allocations: 348.7 kB / 0.9843 GB, free: 2.84 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001772/0.8442, allocations: 70.48 kB / 0.9843 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.8443, allocations: 32.97 kB / 0.9844 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.557e-05/0.8443, allocations: 4 kB / 0.9844 GB, free: 2.723 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002511/0.8446, allocations: 87.36 kB / 0.9845 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.613e-06/0.8446, allocations: 4 kB / 0.9845 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8): time 0.0004892/0.8451, allocations: 165.7 kB / 0.9846 GB, free: 2.453 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.075e-05/0.8452, allocations: 59.39 kB / 0.9847 GB, free: 2.383 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.8453, allocations: 129.7 kB / 0.9848 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.914e-05/0.8453, allocations: 29.7 kB / 0.9848 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.419e-05/0.8454, allocations: 100 kB / 0.9849 GB, free: 2.109 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.429e-05/0.8454, allocations: 15.81 kB / 0.9849 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.211e-05/0.8454, allocations: 0 / 0.9849 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001507/0.8456, allocations: 326.8 kB / 0.9853 GB, free: 1.766 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001698/0.8458, allocations: 63.95 kB / 0.9853 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001697/0.846, allocations: 85.12 kB / 0.9854 GB, free: 1.602 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001842/0.8462, allocations: 93.61 kB / 0.9855 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.8462, allocations: 0 / 0.9855 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004558/0.8466, allocations: 219.2 kB / 0.9857 GB, free: 1.277 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.269e-05/0.8467, allocations: 41.69 kB / 0.9857 GB, free: 1.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.8467, allocations: 4.078 kB / 0.9857 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.8467, allocations: 0 / 0.9857 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.8468, allocations: 19.98 kB / 0.9858 GB, free: 1.207 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.8469, allocations: 3.984 kB / 0.9858 GB, free: 1.203 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002292/0.8471, allocations: 63.77 kB / 0.9858 GB, free: 1.141 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.8471, allocations: 8 kB / 0.9858 GB, free: 1.133 MB / 0.7325 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 0.0001097/0.8472, allocations: 125.7 kB / 0.986 GB, free: 1 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.99e-05/0.8473, allocations: 7.891 kB / 0.986 GB, free: 0.9922 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003031/0.8476, allocations: 134 kB / 0.9861 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.8476, allocations: 4 kB / 0.9861 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.8476, allocations: 0 / 0.9861 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.8476, allocations: 0 / 0.9861 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004795/0.8481, allocations: 390.4 kB / 0.9865 GB, free: 420 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.8481, allocations: 4 kB / 0.9865 GB, free: 416 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.775e-05/0.8482, allocations: 15.98 kB / 0.9865 GB, free: 400 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.586e-06/0.8482, allocations: 0 / 0.9865 GB, free: 400 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.178e-06/0.8482, allocations: 4 kB / 0.9865 GB, free: 396 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.8482, allocations: 0 / 0.9865 GB, free: 396 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.8482, allocations: 3.938 kB / 0.9865 GB, free: 392 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003186/0.8485, allocations: 235.3 kB / 0.9867 GB, free: 140 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.034e-05/0.8486, allocations: 77.11 kB / 0.9868 GB, free: 44 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.334e-05/0.8486, allocations: 11.98 kB / 0.9868 GB, free: 32 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.273e-05/0.8487, allocations: 4.047 kB / 0.9868 GB, free: 28 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.443e-05/0.8488, allocations: 11.97 kB / 0.9868 GB, free: 16 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.187e-06/0.8488, allocations: 4 kB / 0.9868 GB, free: 12 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.11e-05/0.8489, allocations: 91.31 kB / 0.9869 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8489, allocations: 0 / 0.9869 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002837/0.8492, allocations: 27.91 kB / 0.9869 GB, free: 15.89 MB / 0.7481 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.0007182/0.8499, allocations: 0.7719 MB / 0.9877 GB, free: 15.1 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004067/0.8503, allocations: 183.2 kB / 0.9879 GB, free: 14.91 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.8503, allocations: 0 / 0.9879 GB, free: 14.91 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001248/0.8505, allocations: 48.28 kB / 0.9879 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002916/0.8508, allocations: 12.88 kB / 0.9879 GB, free: 14.85 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001401/0.8522, allocations: 0.7134 MB / 0.9886 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002517/0.8524, allocations: 0.6887 MB / 0.9893 GB, free: 13.36 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.024e-05/0.8525, allocations: 11.98 kB / 0.9893 GB, free: 13.35 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.901e-05/0.8525, allocations: 23.44 kB / 0.9893 GB, free: 13.33 MB / 0.7481 GB Notification: Performance of SimCode: time 4.01e-07/0.8525, allocations: 3.938 kB / 0.9893 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01404/0.8666, allocations: 2.215 MB / 0.9915 GB, free: 11.28 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000188/0.8668, allocations: 212.1 kB / 0.9917 GB, free: 11.04 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.83/2.697, allocations: 0 / 0.9917 GB, free: 11.04 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat does not exist to compare? outputFormat=mat