Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_8_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.001256/0.001256, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001224/0.001224, allocations: 193.7 kB / 16.14 MB, free: 6.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.423/1.423, allocations: 205.1 MB / 222 MB, free: 4.75 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.697/1.697, allocations: 292.3 MB / 0.5484 GB, free: 13.63 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 69.78 kB / 0.6709 GB, free: 26.35 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.198/0.1993, allocations: 114.6 MB / 0.7828 GB, free: 13.89 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001908/0.2012, allocations: 0.8244 MB / 0.7836 GB, free: 13.06 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001285/0.2025, allocations: 1.165 MB / 0.7848 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.434e-05/0.2026, allocations: 0 / 0.7848 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.805e-05/0.2026, allocations: 7.922 kB / 0.7848 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.465e-05/0.2027, allocations: 15.92 kB / 0.7848 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003869/0.2031, allocations: 120.5 kB / 0.7849 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001137/0.2032, allocations: 111.8 kB / 0.785 GB, free: 11.63 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.939e-05/0.2033, allocations: 20.16 kB / 0.785 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.257e-05/0.2034, allocations: 39.91 kB / 0.7851 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.608e-05/0.2035, allocations: 47.83 kB / 0.7851 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.211e-05/0.2035, allocations: 8 kB / 0.7851 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.315e-05/0.2036, allocations: 19.98 kB / 0.7851 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.217e-05/0.2036, allocations: 19.91 kB / 0.7851 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.329e-05/0.2037, allocations: 35.86 kB / 0.7852 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001503/0.2038, allocations: 115.9 kB / 0.7853 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2038, allocations: 0 / 0.7853 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2038, allocations: 0 / 0.7853 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.667e-06/0.2039, allocations: 0 / 0.7853 GB, free: 11.33 MB / 0.6075 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.0005194/0.2044, allocations: 421 kB / 0.7857 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.2044, allocations: 12.03 kB / 0.7857 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.435e-05/0.2045, allocations: 38.67 kB / 0.7857 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.047e-05/0.2045, allocations: 12.84 kB / 0.7858 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.663e-05/0.2046, allocations: 176.2 kB / 0.7859 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/0.2046, allocations: 8.375 kB / 0.7859 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.903e-05/0.2047, allocations: 4.375 kB / 0.7859 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001914/0.2049, allocations: 77.97 kB / 0.786 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.2049, allocations: 3.984 kB / 0.786 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.218e-06/0.2049, allocations: 4 kB / 0.786 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.2049, allocations: 4 kB / 0.786 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001837/0.2051, allocations: 47.89 kB / 0.7861 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004896/0.2056, allocations: 340.6 kB / 0.7864 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000159/0.2058, allocations: 70.52 kB / 0.7865 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.721e-05/0.2059, allocations: 32.95 kB / 0.7865 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.2059, allocations: 0 / 0.7865 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002141/0.2061, allocations: 91.36 kB / 0.7866 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.302e-06/0.2061, allocations: 0 / 0.7866 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8): time 0.0004271/0.2065, allocations: 145.5 kB / 0.7867 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.759e-05/0.2066, allocations: 59.39 kB / 0.7868 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.376e-05/0.2067, allocations: 117.8 kB / 0.7869 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.274e-05/0.2067, allocations: 33.7 kB / 0.7869 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.164e-05/0.2068, allocations: 92.05 kB / 0.787 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.262e-05/0.2068, allocations: 27.73 kB / 0.787 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.77e-05/0.2069, allocations: 37.7 kB / 0.7871 GB, free: 9.285 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.833e-05/0.207, allocations: 322.8 kB / 0.7874 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001511/0.2072, allocations: 47.97 kB / 0.7874 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001679/0.2073, allocations: 89.11 kB / 0.7875 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002604/0.2076, allocations: 150.7 kB / 0.7876 GB, free: 8.637 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.247e-06/0.2076, allocations: 4 kB / 0.7877 GB, free: 8.633 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004265/0.208, allocations: 219 kB / 0.7879 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.599e-05/0.2081, allocations: 37.7 kB / 0.7879 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.2081, allocations: 48 / 0.7879 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.2081, allocations: 7.984 kB / 0.7879 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.06e-05/0.2082, allocations: 11.98 kB / 0.7879 GB, free: 8.344 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.2082, allocations: 4.469 kB / 0.7879 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002102/0.2084, allocations: 36.5 kB / 0.788 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.237e-05/0.2085, allocations: 15.92 kB / 0.788 GB, free: 8.289 MB / 0.6075 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 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.325e-05/0.2086, allocations: 129.7 kB / 0.7881 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.272e-05/0.2086, allocations: 3.906 kB / 0.7881 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002744/0.2089, allocations: 130 kB / 0.7882 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.267e-06/0.2089, allocations: 0 / 0.7882 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.2089, allocations: 3.938 kB / 0.7882 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.2089, allocations: 4 kB / 0.7882 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003976/0.2093, allocations: 378.4 kB / 0.7886 GB, free: 7.582 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.2093, allocations: 4 kB / 0.7886 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.721e-05/0.2094, allocations: 7.984 kB / 0.7886 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.2094, allocations: 4 kB / 0.7886 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.2094, allocations: 4 kB / 0.7886 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.2094, allocations: 3.938 kB / 0.7886 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2094, allocations: 0 / 0.7886 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002682/0.2097, allocations: 215.3 kB / 0.7888 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.5e-05/0.2097, allocations: 89 kB / 0.7889 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.488e-05/0.2097, allocations: 0 / 0.7889 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.566e-05/0.2098, allocations: 15.92 kB / 0.7889 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.678e-05/0.2099, allocations: 8 kB / 0.7889 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.2099, allocations: 0 / 0.7889 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.476e-05/0.2099, allocations: 99.2 kB / 0.789 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of sort global known variables: time 4.31e-07/0.2099, allocations: 0 / 0.789 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002536/0.2102, allocations: 24 kB / 0.789 GB, free: 7.082 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005278/0.2107, allocations: 0.7475 MB / 0.7898 GB, free: 6.309 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003487/0.2111, allocations: 187.2 kB / 0.79 GB, free: 6.113 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2111, allocations: 0 / 0.79 GB, free: 6.113 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001147/0.2112, allocations: 44.28 kB / 0.79 GB, free: 6.07 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002616/0.2115, allocations: 18.88 kB / 0.79 GB, free: 6.055 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001825/0.2133, allocations: 1.712 MB / 0.7917 GB, free: 4.227 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002118/0.2135, allocations: 0.6923 MB / 0.7924 GB, free: 3.508 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.138e-05/0.2136, allocations: 4 kB / 0.7924 GB, free: 3.504 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.841e-05/0.2136, allocations: 23.42 kB / 0.7924 GB, free: 3.484 MB / 0.6075 GB Notification: Performance of SimCode: time 2.71e-07/0.2136, allocations: 3.938 kB / 0.7924 GB, free: 3.48 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01113/0.2248, allocations: 2.308 MB / 0.7946 GB, free: 1.301 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002115/0.225, allocations: 209.6 kB / 0.7948 GB, free: 1.047 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.642/1.867, allocations: 0 / 0.7948 GB, free: 1.047 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)