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.001474/0.001475, allocations: 99.39 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.00172/0.00172, 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.032/2.032, allocations: 223.2 MB / 239.9 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 3.042/3.042, allocations: 409.2 MB / 0.6838 GB, free: 0.8789 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006141/0.0006142, allocations: 8 kB / 0.8375 GB, free: 6.512 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.119/1.119, allocations: 146.8 MB / 0.9809 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001749/1.121, allocations: 479.4 kB / 0.9814 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002348/1.124, allocations: 1.043 MB / 0.9824 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.96e-05/1.124, allocations: 0 / 0.9824 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.662e-05/1.124, allocations: 7.938 kB / 0.9824 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001213/1.124, allocations: 7.984 kB / 0.9824 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004333/1.124, allocations: 43.83 kB / 0.9824 GB, free: 4.711 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001263/1.125, allocations: 39.95 kB / 0.9825 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001577/1.125, allocations: 20.17 kB / 0.9825 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001122/1.125, allocations: 27.84 kB / 0.9825 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001164/1.125, allocations: 23.91 kB / 0.9825 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.392e-05/1.125, allocations: 4 kB / 0.9825 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001044/1.125, allocations: 15.98 kB / 0.9826 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.21e-05/1.125, allocations: 11.92 kB / 0.9826 GB, free: 4.566 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.585e-05/1.125, allocations: 33.7 kB / 0.9826 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001784/1.125, allocations: 55.81 kB / 0.9826 GB, free: 4.473 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/1.125, allocations: 0 / 0.9826 GB, free: 4.473 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.286e-06/1.125, allocations: 0 / 0.9826 GB, free: 4.473 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.783e-06/1.125, allocations: 4 kB / 0.9827 GB, free: 4.469 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.0008928/1.126, allocations: 373.4 kB / 0.983 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.431e-05/1.126, allocations: 8.031 kB / 0.983 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.742e-05/1.127, allocations: 34.5 kB / 0.9831 GB, free: 4.008 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.336e-05/1.127, allocations: 7.906 kB / 0.9831 GB, free: 4 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002093/1.127, allocations: 167 kB / 0.9832 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/1.127, allocations: 8 kB / 0.9832 GB, free: 3.789 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.903e-05/1.127, allocations: 15.92 kB / 0.9832 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003705/1.127, allocations: 69.62 kB / 0.9833 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/1.127, allocations: 0 / 0.9833 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.751e-05/1.127, allocations: 3.938 kB / 0.9833 GB, free: 3.695 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/1.127, allocations: 0 / 0.9833 GB, free: 3.695 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000373/1.128, allocations: 59.95 kB / 0.9834 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001085/1.129, allocations: 340.7 kB / 0.9837 GB, free: 3.254 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003176/1.129, allocations: 62.58 kB / 0.9838 GB, free: 3.184 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.3e-05/1.129, allocations: 0 / 0.9838 GB, free: 3.184 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003575/1.13, allocations: 83.5 kB / 0.9838 GB, free: 3.09 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 2.344e-06/1.13, allocations: 0 / 0.9838 GB, free: 3.09 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0008371/1.131, allocations: 149.5 kB / 0.984 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.227e-05/1.131, allocations: 59.39 kB / 0.984 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001622/1.131, allocations: 121.8 kB / 0.9841 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.829e-05/1.131, allocations: 25.7 kB / 0.9842 GB, free: 2.707 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/1.131, allocations: 96.03 kB / 0.9843 GB, free: 2.609 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.415e-05/1.131, allocations: 11.81 kB / 0.9843 GB, free: 2.598 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.718e-06/1.131, allocations: 0 / 0.9843 GB, free: 2.598 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001715/1.131, allocations: 322.8 kB / 0.9846 GB, free: 2.273 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002094/1.131, allocations: 39.92 kB / 0.9846 GB, free: 2.234 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002645/1.132, allocations: 73.98 kB / 0.9847 GB, free: 2.141 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002463/1.132, allocations: 43.97 kB / 0.9847 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/1.132, allocations: 11.89 kB / 0.9847 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0006094/1.133, allocations: 137.4 kB / 0.9849 GB, free: 1.945 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.577e-05/1.133, allocations: 4 kB / 0.9849 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/1.133, allocations: 4 kB / 0.9849 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.031e-05/1.133, allocations: 224 / 0.9849 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002316/1.133, allocations: 27.97 kB / 0.9849 GB, free: 1.91 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.68e-05/1.133, allocations: 7.938 kB / 0.9849 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001657/1.133, allocations: 15.94 kB / 0.9849 GB, free: 1.887 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.279e-05/1.133, allocations: 4 kB / 0.9849 GB, free: 1.883 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 0.0002042/1.133, allocations: 119.1 kB / 0.985 GB, free: 1.758 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.91e-05/1.134, allocations: 11.86 kB / 0.9851 GB, free: 1.746 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.229e-05/1.134, allocations: 12.38 kB / 0.9851 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/1.134, allocations: 0 / 0.9851 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.448e-05/1.134, allocations: 8 kB / 0.9851 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/1.134, allocations: 3.938 kB / 0.9851 GB, free: 1.719 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009058/1.135, allocations: 386.4 kB / 0.9855 GB, free: 1.285 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/1.135, allocations: 0 / 0.9855 GB, free: 1.285 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.684e-05/1.135, allocations: 11.98 kB / 0.9855 GB, free: 1.273 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/1.135, allocations: 0 / 0.9855 GB, free: 1.273 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/1.135, allocations: 4 kB / 0.9855 GB, free: 1.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/1.135, allocations: 0 / 0.9855 GB, free: 1.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/1.135, allocations: 0 / 0.9855 GB, free: 1.27 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005394/1.135, allocations: 219.3 kB / 0.9857 GB, free: 1.039 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.418e-05/1.135, allocations: 85.02 kB / 0.9858 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.518e-05/1.135, allocations: 0 / 0.9858 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001634/1.136, allocations: 7.984 kB / 0.9858 GB, free: 0.9297 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.376e-05/1.136, allocations: 8 kB / 0.9858 GB, free: 0.9219 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.862e-05/1.136, allocations: 11.94 kB / 0.9858 GB, free: 0.9102 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.235e-05/1.136, allocations: 91.92 kB / 0.9859 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.4e-07/1.136, allocations: 0 / 0.9859 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004795/1.136, allocations: 12 kB / 0.9859 GB, free: 0.8086 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.001025/1.137, allocations: 0.7676 MB / 0.9866 GB, free: 16 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005872/1.138, allocations: 87.95 kB / 0.9867 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/1.138, allocations: 0 / 0.9867 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002148/1.138, allocations: 39.97 kB / 0.9868 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003383/1.139, allocations: 4.375 kB / 0.9868 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001513/1.14, allocations: 1.3 MB / 0.988 GB, free: 14.51 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003777/1.141, allocations: 0.6965 MB / 0.9887 GB, free: 13.79 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 5.677e-05/1.141, allocations: 4 kB / 0.9887 GB, free: 13.79 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.519e-05/1.141, allocations: 23.42 kB / 0.9887 GB, free: 13.76 MB / 0.7481 GB Notification: Performance of SimCode: time 5.92e-07/1.141, allocations: 0 / 0.9887 GB, free: 13.76 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01974/1.16, allocations: 1.777 MB / 0.9905 GB, free: 12.17 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003263/1.161, allocations: 206.9 kB / 0.9907 GB, free: 11.93 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.143/3.304, allocations: 8.062 kB / 0.9907 GB, free: 11.92 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