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.001567/0.001567, allocations: 98.92 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.001553/0.001553, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.149/2.149, 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 10.0.0-master/package.mo): time 3.164/3.164, allocations: 409.2 MB / 0.6838 GB, free: 0.8984 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003826/0.0003827, allocations: 8 kB / 0.8375 GB, free: 6.508 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9258/0.9262, allocations: 146.8 MB / 0.9809 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.0008799/0.9271, allocations: 483.4 kB / 0.9813 GB, free: 5.801 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001301/0.9284, allocations: 1.105 MB / 0.9824 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.623e-05/0.9285, allocations: 4 kB / 0.9824 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.762e-05/0.9285, allocations: 7.922 kB / 0.9824 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.796e-05/0.9286, allocations: 15.97 kB / 0.9824 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004511/0.929, allocations: 121.2 kB / 0.9826 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.628e-05/0.9291, allocations: 63.92 kB / 0.9826 GB, free: 4.473 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.565e-05/0.9292, allocations: 20.17 kB / 0.9826 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.348e-05/0.9293, allocations: 43.83 kB / 0.9827 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.513e-05/0.9294, allocations: 35.89 kB / 0.9827 GB, free: 4.371 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.062e-05/0.9294, allocations: 4 kB / 0.9827 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 5.98e-05/0.9295, allocations: 19.98 kB / 0.9827 GB, free: 4.348 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.986e-05/0.9295, allocations: 11.94 kB / 0.9827 GB, free: 4.336 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.559e-05/0.9296, allocations: 33.7 kB / 0.9828 GB, free: 4.297 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001172/0.9297, allocations: 87.8 kB / 0.9829 GB, free: 4.211 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.9297, allocations: 0 / 0.9829 GB, free: 4.211 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.753e-06/0.9297, allocations: 0 / 0.9829 GB, free: 4.211 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 3.867e-06/0.9297, allocations: 4 kB / 0.9829 GB, free: 4.207 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.0005129/0.9303, allocations: 399.1 kB / 0.9832 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.9303, allocations: 8.031 kB / 0.9833 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.394e-05/0.9303, allocations: 38.55 kB / 0.9833 GB, free: 3.711 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.196e-05/0.9304, allocations: 11.91 kB / 0.9833 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.9305, allocations: 171 kB / 0.9835 GB, free: 3.492 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.9305, allocations: 4 kB / 0.9835 GB, free: 3.488 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.687e-05/0.9306, allocations: 15.98 kB / 0.9835 GB, free: 3.473 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002119/0.9308, allocations: 77.61 kB / 0.9836 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.9308, allocations: 3.938 kB / 0.9836 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.249e-05/0.9308, allocations: 7.938 kB / 0.9836 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.9308, allocations: 4 kB / 0.9836 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001953/0.931, allocations: 59.89 kB / 0.9836 GB, free: 3.316 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005236/0.9316, allocations: 344.6 kB / 0.984 GB, free: 2.93 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001701/0.9317, allocations: 66.58 kB / 0.984 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.22e-05/0.9318, allocations: 3.984 kB / 0.984 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002139/0.932, allocations: 107.5 kB / 0.9841 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.553e-06/0.932, allocations: 0 / 0.9841 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8): time 0.0004392/0.9325, allocations: 157.5 kB / 0.9843 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.754e-05/0.9325, allocations: 63.41 kB / 0.9843 GB, free: 2.5 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.537e-05/0.9326, allocations: 121.8 kB / 0.9845 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.515e-05/0.9326, allocations: 29.7 kB / 0.9845 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.471e-05/0.9327, allocations: 96.03 kB / 0.9846 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.036e-05/0.9327, allocations: 15.8 kB / 0.9846 GB, free: 2.223 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.268e-05/0.9327, allocations: 4 kB / 0.9846 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.9329, allocations: 314.8 kB / 0.9849 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.933, allocations: 63.95 kB / 0.985 GB, free: 1.84 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001737/0.9332, allocations: 93.11 kB / 0.985 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001731/0.9334, allocations: 93.62 kB / 0.9851 GB, free: 1.633 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.9334, allocations: 0 / 0.9851 GB, free: 1.633 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004313/0.9338, allocations: 227.1 kB / 0.9854 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.974e-05/0.9339, allocations: 33.7 kB / 0.9854 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/0.9339, allocations: 0 / 0.9854 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.9339, allocations: 4 kB / 0.9854 GB, free: 1.355 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.934, allocations: 15.98 kB / 0.9854 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.934, allocations: 4 kB / 0.9854 GB, free: 1.336 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002342/0.9343, allocations: 59.89 kB / 0.9855 GB, free: 1.277 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.129e-05/0.9343, allocations: 8 kB / 0.9855 GB, free: 1.27 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 9.991e-05/0.9344, allocations: 125.7 kB / 0.9856 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.349e-05/0.9344, allocations: 15.84 kB / 0.9856 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003112/0.9348, allocations: 130 kB / 0.9857 GB, free: 0.9844 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.9348, allocations: 0 / 0.9857 GB, free: 0.9844 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/0.9348, allocations: 7.984 kB / 0.9857 GB, free: 0.9766 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.9348, allocations: 0 / 0.9857 GB, free: 0.9766 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004218/0.9352, allocations: 386.4 kB / 0.9861 GB, free: 0.543 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.9352, allocations: 0 / 0.9861 GB, free: 0.543 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.012e-05/0.9353, allocations: 11.98 kB / 0.9861 GB, free: 0.5312 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.9353, allocations: 4 kB / 0.9861 GB, free: 0.5273 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/0.9353, allocations: 4 kB / 0.9861 GB, free: 0.5234 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.9353, allocations: 0 / 0.9861 GB, free: 0.5234 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.9353, allocations: 0 / 0.9861 GB, free: 0.5234 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003763/0.9357, allocations: 239.2 kB / 0.9864 GB, free: 280 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.666e-05/0.9358, allocations: 85.09 kB / 0.9864 GB, free: 176 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.672e-05/0.9358, allocations: 0 / 0.9864 GB, free: 176 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.736e-05/0.9359, allocations: 8 kB / 0.9864 GB, free: 168 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.429e-05/0.9359, allocations: 7.984 kB / 0.9864 GB, free: 160 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.053e-06/0.9359, allocations: 48 / 0.9864 GB, free: 160 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.773e-05/0.936, allocations: 91.27 kB / 0.9865 GB, free: 68 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.936, allocations: 0 / 0.9865 GB, free: 68 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002697/0.9363, allocations: 35.91 kB / 0.9866 GB, free: 32 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: 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.0006376/0.9369, allocations: 0.7593 MB / 0.9873 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003747/0.9373, allocations: 191.2 kB / 0.9875 GB, free: 15.05 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.9373, allocations: 0 / 0.9875 GB, free: 15.05 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001252/0.9375, allocations: 52.27 kB / 0.9875 GB, free: 15 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001951/0.9377, allocations: 9.547 kB / 0.9876 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008543/0.9385, allocations: 1.192 MB / 0.9887 GB, free: 13.73 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002458/0.9388, allocations: 0.6926 MB / 0.9894 GB, free: 13.01 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 3.49e-05/0.9388, allocations: 4 kB / 0.9894 GB, free: 13.01 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.033e-05/0.9389, allocations: 24.3 kB / 0.9894 GB, free: 12.98 MB / 0.7481 GB Notification: Performance of SimCode: time 2.2e-07/0.9389, allocations: 4 kB / 0.9894 GB, free: 12.98 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1417/1.081, allocations: 2.193 MB / 0.9916 GB, free: 10.95 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002839/1.081, allocations: 194.4 kB / 0.9918 GB, free: 10.71 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.306/3.387, allocations: 0 / 0.9918 GB, free: 10.71 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