Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",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.0008719/0.000872, allocations: 94.03 kB / 15.06 MB, free: 1.086 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.001013/0.001013, 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.431/1.431, allocations: 223.2 MB / 240 MB, free: 5.227 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.656/2.656, allocations: 409.4 MB / 0.684 GB, free: 0.8867 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003682/0.0003684, allocations: 8 kB / 0.8378 GB, free: 6.426 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8289/0.8293, allocations: 146.8 MB / 0.9812 GB, free: 6.211 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.0009888/0.8304, allocations: 479.2 kB / 0.9816 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001457/0.8318, allocations: 1.043 MB / 0.9826 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.996e-05/0.8319, allocations: 7.938 kB / 0.9826 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.842e-05/0.832, allocations: 0 / 0.9826 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.238e-05/0.832, allocations: 11.86 kB / 0.9827 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002957/0.8323, allocations: 43.89 kB / 0.9827 GB, free: 4.625 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001163/0.8325, allocations: 67.78 kB / 0.9828 GB, free: 4.559 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.457e-05/0.8326, allocations: 12.17 kB / 0.9828 GB, free: 4.543 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.455e-05/0.8327, allocations: 23.92 kB / 0.9828 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.589e-05/0.8327, allocations: 27.84 kB / 0.9828 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.721e-05/0.8328, allocations: 8 kB / 0.9828 GB, free: 4.484 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.476e-05/0.8328, allocations: 15.98 kB / 0.9828 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.818e-05/0.8329, allocations: 7.984 kB / 0.9828 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.168e-05/0.8329, allocations: 37.64 kB / 0.9829 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001018/0.833, allocations: 51.88 kB / 0.9829 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.833, allocations: 0 / 0.9829 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.643e-06/0.833, allocations: 0 / 0.9829 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.749e-06/0.833, allocations: 0 / 0.9829 GB, free: 4.367 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005433/0.8336, allocations: 377.4 kB / 0.9833 GB, free: 3.953 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.8336, allocations: 8.031 kB / 0.9833 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.172e-05/0.8337, allocations: 38.55 kB / 0.9833 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.402e-05/0.8337, allocations: 7.891 kB / 0.9833 GB, free: 3.891 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.8339, allocations: 171 kB / 0.9835 GB, free: 3.684 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.8339, allocations: 11.94 kB / 0.9835 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.459e-05/0.8339, allocations: 4 kB / 0.9835 GB, free: 3.668 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002105/0.8341, allocations: 77.61 kB / 0.9836 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.8342, allocations: 0 / 0.9836 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.251e-05/0.8342, allocations: 8 kB / 0.9836 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.8342, allocations: 4 kB / 0.9836 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001667/0.8344, allocations: 47.95 kB / 0.9837 GB, free: 3.527 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006441/0.835, allocations: 332.6 kB / 0.984 GB, free: 3.152 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001693/0.8352, allocations: 62.55 kB / 0.984 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.821e-05/0.8353, allocations: 40.89 kB / 0.9841 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.8353, allocations: 3.984 kB / 0.9841 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000238/0.8356, allocations: 87.41 kB / 0.9842 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 2.184e-06/0.8356, allocations: 0 / 0.9842 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004287/0.836, allocations: 145.5 kB / 0.9843 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.524e-05/0.8361, allocations: 55.39 kB / 0.9844 GB, free: 2.723 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.8362, allocations: 121.8 kB / 0.9845 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.797e-05/0.8362, allocations: 29.7 kB / 0.9845 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.054e-05/0.8363, allocations: 96.03 kB / 0.9846 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.948e-05/0.8363, allocations: 15.8 kB / 0.9846 GB, free: 2.445 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.671e-06/0.8363, allocations: 0 / 0.9846 GB, free: 2.445 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001403/0.8365, allocations: 322.8 kB / 0.9849 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.8366, allocations: 35.92 kB / 0.9849 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001337/0.8367, allocations: 73.98 kB / 0.985 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001196/0.8369, allocations: 47.92 kB / 0.9851 GB, free: 1.945 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.8369, allocations: 4 kB / 0.9851 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003099/0.8372, allocations: 145.4 kB / 0.9852 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.8372, allocations: 4 kB / 0.9852 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.8372, allocations: 4 kB / 0.9852 GB, free: 1.785 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.8372, allocations: 4.219 kB / 0.9852 GB, free: 1.781 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.8374, allocations: 19.98 kB / 0.9852 GB, free: 1.762 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.317e-06/0.8374, allocations: 7.984 kB / 0.9852 GB, free: 1.754 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.288e-05/0.8375, allocations: 11.94 kB / 0.9853 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.8375, allocations: 8 kB / 0.9853 GB, free: 1.734 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.triggeredSampler1.y,triggeredSampler1.y,$PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,samTri.y,$whenCondition2,samTri1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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.614e-05/0.8376, allocations: 125.7 kB / 0.9854 GB, free: 1.602 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.463e-05/0.8376, allocations: 7.906 kB / 0.9854 GB, free: 1.594 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.955e-05/0.8377, allocations: 16.31 kB / 0.9854 GB, free: 1.574 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.8377, allocations: 3.938 kB / 0.9854 GB, free: 1.57 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.8377, allocations: 4 kB / 0.9854 GB, free: 1.566 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.8377, allocations: 0 / 0.9854 GB, free: 1.566 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004755/0.8382, allocations: 386.4 kB / 0.9858 GB, free: 1.133 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.8382, allocations: 0 / 0.9858 GB, free: 1.133 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.529e-05/0.8382, allocations: 11.98 kB / 0.9858 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.8383, allocations: 0 / 0.9858 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.086e-06/0.8383, allocations: 0 / 0.9858 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.8383, allocations: 0 / 0.9858 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.8383, allocations: 0 / 0.9858 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002921/0.8386, allocations: 215.4 kB / 0.986 GB, free: 0.8945 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.324e-05/0.8386, allocations: 89 kB / 0.9861 GB, free: 0.7891 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.756e-05/0.8387, allocations: 4 kB / 0.9861 GB, free: 0.7852 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.949e-05/0.8388, allocations: 7.984 kB / 0.9861 GB, free: 0.7773 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.762e-05/0.8388, allocations: 11.94 kB / 0.9861 GB, free: 0.7656 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-06/0.8388, allocations: 4 kB / 0.9861 GB, free: 0.7617 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.25e-05/0.8389, allocations: 95.86 kB / 0.9862 GB, free: 0.668 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8389, allocations: 0 / 0.9862 GB, free: 0.668 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002707/0.8392, allocations: 16 kB / 0.9862 GB, free: 0.6523 MB / 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 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * 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.0007735/0.8399, allocations: 0.7475 MB / 0.9869 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002836/0.8402, allocations: 100.4 kB / 0.987 GB, free: 15.78 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.8402, allocations: 0 / 0.987 GB, free: 15.78 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001131/0.8404, allocations: 35.97 kB / 0.9871 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002695/0.8406, allocations: 8.375 kB / 0.9871 GB, free: 15.74 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/0.8417, allocations: 0.6118 MB / 0.9877 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002673/0.842, allocations: 0.6848 MB / 0.9883 GB, free: 14.36 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.065e-05/0.8421, allocations: 11.98 kB / 0.9884 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.952e-05/0.8421, allocations: 19.44 kB / 0.9884 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of SimCode: time 3.51e-07/0.8421, allocations: 0 / 0.9884 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01239/0.8545, allocations: 1.805 MB / 0.9901 GB, free: 12.71 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001842/0.8548, allocations: 211.1 kB / 0.9903 GB, free: 12.47 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.772/2.627, allocations: 0 / 0.9903 GB, free: 12.47 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat does not exist to compare? outputFormat=mat