Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.411/2.411, allocations: 248.7 MB / 256.2 MB, free: 7.055 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001524/0.001524, allocations: 175.3 kB / 315.4 MB, free: 3.992 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.106/2.106, allocations: 205.3 MB / 0.5662 GB, free: 0.5078 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001072/0.001071, allocations: 95.81 kB / 0.6704 GB, free: 5.719 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.334e-05/2.339e-05, allocations: 4 kB / 0.7804 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2221/0.2222, allocations: 106.2 MB / 0.8841 GB, free: 12.96 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8974/1.12, allocations: 132.1 MB / 1.013 GB, free: 6.875 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002765/1.12, allocations: 72.27 kB / 1.013 GB, free: 6.836 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.005951/1.126, allocations: 1.357 MB / 1.015 GB, free: 5.621 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.515e-06/1.126, allocations: 0.75 kB / 1.015 GB, free: 5.621 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.152e-05/1.126, allocations: 4 kB / 1.015 GB, free: 5.617 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008175/1.127, allocations: 408.9 kB / 1.015 GB, free: 5.18 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/1.127, allocations: 8.031 kB / 1.015 GB, free: 5.172 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.567e-05/1.127, allocations: 11.91 kB / 1.015 GB, free: 5.16 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001902/1.127, allocations: 178.9 kB / 1.015 GB, free: 4.945 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.923e-05/1.127, allocations: 0 / 1.015 GB, free: 4.945 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.896e-05/1.127, allocations: 8 kB / 1.015 GB, free: 4.938 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001835/1.128, allocations: 51.55 kB / 1.015 GB, free: 4.906 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001826/1.128, allocations: 63.55 kB / 1.015 GB, free: 4.848 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/1.128, allocations: 0 / 1.015 GB, free: 4.848 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.78e-05/1.128, allocations: 4 kB / 1.015 GB, free: 4.844 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/1.128, allocations: 0 / 1.015 GB, free: 4.844 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008074/1.129, allocations: 331 kB / 1.016 GB, free: 4.512 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006359/1.129, allocations: 121.1 kB / 1.016 GB, free: 4.402 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.45e-05/1.129, allocations: 29.61 kB / 1.016 GB, free: 4.379 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.635e-05/1.129, allocations: 4 kB / 1.016 GB, free: 4.375 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002215/1.13, allocations: 89.17 kB / 1.016 GB, free: 4.293 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 5.05e-06/1.13, allocations: 3.984 kB / 1.016 GB, free: 4.289 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0003442/1.13, allocations: 94.11 kB / 1.016 GB, free: 4.203 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.583e-05/1.13, allocations: 54.84 kB / 1.016 GB, free: 4.141 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/1.13, allocations: 119.6 kB / 1.016 GB, free: 4.02 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.977e-05/1.13, allocations: 25.7 kB / 1.016 GB, free: 3.988 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.571e-05/1.13, allocations: 96.25 kB / 1.016 GB, free: 3.898 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.948e-05/1.13, allocations: 26.58 kB / 1.016 GB, free: 3.875 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.104e-05/1.13, allocations: 0 / 1.016 GB, free: 3.875 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001671/1.131, allocations: 321.2 kB / 1.016 GB, free: 3.559 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.172e-05/1.131, allocations: 30.88 kB / 1.017 GB, free: 3.539 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001205/1.131, allocations: 57.36 kB / 1.017 GB, free: 3.484 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.9e-05/1.131, allocations: 23.55 kB / 1.017 GB, free: 3.469 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/1.131, allocations: 4 kB / 1.017 GB, free: 3.465 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002796/1.131, allocations: 110.5 kB / 1.017 GB, free: 3.367 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/1.131, allocations: 4 kB / 1.017 GB, free: 3.363 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/1.131, allocations: 0 / 1.017 GB, free: 3.363 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.117e-05/1.131, allocations: 4 kB / 1.017 GB, free: 3.359 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002639/1.132, allocations: 36 kB / 1.017 GB, free: 3.324 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/1.132, allocations: 0 / 1.017 GB, free: 3.324 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002445/1.132, allocations: 34.08 kB / 1.017 GB, free: 3.297 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.625e-05/1.132, allocations: 4 kB / 1.017 GB, free: 3.293 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$PRE.booPul1.pulseStart,booPul1.pulseStart,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,triggeredSampler.trigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001131/1.132, allocations: 109 kB / 1.017 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002365/1.132, allocations: 100.4 kB / 1.017 GB, free: 3.09 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.107e-05/1.132, allocations: 3.906 kB / 1.017 GB, free: 3.086 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002922/1.133, allocations: 108.2 kB / 1.017 GB, free: 2.996 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/1.133, allocations: 3.953 kB / 1.017 GB, free: 2.992 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/1.133, allocations: 0 / 1.017 GB, free: 2.992 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/1.133, allocations: 4 kB / 1.017 GB, free: 2.988 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005402/1.133, allocations: 353.7 kB / 1.017 GB, free: 2.633 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/1.133, allocations: 4 kB / 1.017 GB, free: 2.629 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002027/1.133, allocations: 23.97 kB / 1.017 GB, free: 2.605 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/1.133, allocations: 3.938 kB / 1.017 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.662e-05/1.134, allocations: 3.953 kB / 1.017 GB, free: 2.598 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/1.134, allocations: 3.375 kB / 1.017 GB, free: 2.598 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.319e-06/1.134, allocations: 7.984 kB / 1.017 GB, free: 2.59 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002908/1.134, allocations: 193.2 kB / 1.018 GB, free: 2.402 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.864e-05/1.134, allocations: 91.39 kB / 1.018 GB, free: 2.297 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.289e-05/1.134, allocations: 0 / 1.018 GB, free: 2.297 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002688/1.134, allocations: 27.92 kB / 1.018 GB, free: 2.27 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/1.134, allocations: 27.02 kB / 1.018 GB, free: 2.246 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/1.134, allocations: 0 / 1.018 GB, free: 2.246 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 7.397e-05/1.134, allocations: 98.47 kB / 1.018 GB, free: 2.156 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.8e-07/1.134, allocations: 0 / 1.018 GB, free: 2.156 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000357/1.135, allocations: 16 kB / 1.018 GB, free: 2.141 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler.trigger,$whenCondition2,$whenCondition1,booPul1.pulseStart,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,triggeredSampler.y) * Number of discrete states: 3 (zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.0006242/1.135, allocations: 0.7314 MB / 1.019 GB, free: 1.406 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002623/1.136, allocations: 73.98 kB / 1.019 GB, free: 1.355 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/1.136, allocations: 4.062 kB / 1.019 GB, free: 1.352 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001175/1.136, allocations: 39.16 kB / 1.019 GB, free: 1.324 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003305/1.136, allocations: 16.16 kB / 1.019 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000649/1.137, allocations: 152.9 kB / 1.019 GB, free: 1.133 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003126/1.137, allocations: 0.704 MB / 1.02 GB, free: 412 kB / 0.6355 GB Notification: Performance of simCode: alias equations: time 9.103e-05/1.137, allocations: 8.562 kB / 1.02 GB, free: 404 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.996e-05/1.137, allocations: 26.42 kB / 1.02 GB, free: 392 kB / 0.6355 GB Notification: Performance of SimCode: time 1.292e-06/1.137, allocations: 0 / 1.02 GB, free: 392 kB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03838/1.176, allocations: 1.807 MB / 1.021 GB, free: 14.59 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003462/1.176, allocations: 151.6 kB / 1.022 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.316/3.492, allocations: 0 / 1.022 GB, free: 14.4 MB / 0.6511 GB