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.289/2.289, allocations: 248.5 MB / 261.1 MB, free: 6.059 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.001422/0.001422, allocations: 182.2 kB / 320.4 MB, free: 15.35 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.001/2.001, allocations: 205.2 MB / 0.571 GB, free: 11.82 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001163/0.001162, allocations: 97.8 kB / 0.6754 GB, free: 0.9062 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.854e-05/3.882e-05, allocations: 4 kB / 0.7869 GB, free: 97.81 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2235/0.2236, allocations: 106.2 MB / 0.8907 GB, free: 7.473 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8927/1.116, allocations: 131.9 MB / 1.019 GB, free: 3.004 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003057/1.117, allocations: 72.39 kB / 1.02 GB, free: 2.965 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.006133/1.123, allocations: 1.357 MB / 1.021 GB, free: 1.742 MB / 0.6355 GB Notification: Performance of FrontEnd: time 4.138e-06/1.123, allocations: 4 kB / 1.021 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.726e-06/1.123, allocations: 0 / 1.021 GB, free: 1.738 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.0008126/1.124, allocations: 408.6 kB / 1.021 GB, free: 1.301 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.806e-05/1.124, allocations: 12.03 kB / 1.021 GB, free: 1.289 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.398e-05/1.124, allocations: 38.42 kB / 1.021 GB, free: 1.246 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.612e-05/1.124, allocations: 7.906 kB / 1.021 GB, free: 1.238 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001763/1.124, allocations: 179.8 kB / 1.021 GB, free: 1.023 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.639e-05/1.124, allocations: 7.75 kB / 1.021 GB, free: 1.02 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.902e-05/1.124, allocations: 8 kB / 1.022 GB, free: 1.012 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002148/1.124, allocations: 72.47 kB / 1.022 GB, free: 0.9492 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/1.124, allocations: 3.984 kB / 1.022 GB, free: 0.9453 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.737e-05/1.125, allocations: 7.875 kB / 1.022 GB, free: 0.9414 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/1.125, allocations: 3.938 kB / 1.022 GB, free: 0.9375 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001718/1.125, allocations: 46.69 kB / 1.022 GB, free: 0.9062 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008268/1.126, allocations: 358.2 kB / 1.022 GB, free: 0.5391 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006486/1.126, allocations: 132.3 kB / 1.022 GB, free: 432 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.443e-05/1.126, allocations: 30.73 kB / 1.022 GB, free: 408 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.451e-05/1.126, allocations: 2.625 kB / 1.022 GB, free: 408 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002429/1.127, allocations: 89.56 kB / 1.022 GB, free: 320 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 2.634e-06/1.127, allocations: 0 / 1.022 GB, free: 320 kB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0003324/1.127, allocations: 106.4 kB / 1.022 GB, free: 224 kB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.742e-05/1.127, allocations: 51.41 kB / 1.022 GB, free: 160 kB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/1.127, allocations: 119.6 kB / 1.022 GB, free: 40 kB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.143e-05/1.127, allocations: 34.08 kB / 1.023 GB, free: 4 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 9.495e-05/1.127, allocations: 94.31 kB / 1.023 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.694e-05/1.127, allocations: 30.64 kB / 1.023 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.061e-05/1.127, allocations: 4 kB / 1.023 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001354/1.128, allocations: 322.6 kB / 1.023 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001002/1.128, allocations: 29.75 kB / 1.023 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/1.128, allocations: 58.41 kB / 1.023 GB, free: 15.5 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001009/1.128, allocations: 23.23 kB / 1.023 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/1.128, allocations: 8 kB / 1.023 GB, free: 15.47 MB / 0.6511 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003154/1.128, allocations: 122.4 kB / 1.023 GB, free: 15.37 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/1.128, allocations: 10.5 kB / 1.023 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.637e-06/1.128, allocations: 0.5469 kB / 1.023 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.349e-05/1.128, allocations: 7.938 kB / 1.023 GB, free: 15.35 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002707/1.129, allocations: 27.3 kB / 1.023 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.483e-05/1.129, allocations: 4 kB / 1.023 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000243/1.129, allocations: 32 kB / 1.023 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/1.129, allocations: 7 kB / 1.023 GB, free: 15.29 MB / 0.6511 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.0001104/1.129, allocations: 112.3 kB / 1.023 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.001e-05/1.129, allocations: 7.906 kB / 1.023 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003463/1.129, allocations: 119.9 kB / 1.023 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/1.13, allocations: 11.94 kB / 1.024 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/1.13, allocations: 3.953 kB / 1.024 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/1.13, allocations: 3.984 kB / 1.024 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006181/1.13, allocations: 375.9 kB / 1.024 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/1.13, allocations: 0 / 1.024 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002215/1.13, allocations: 35.64 kB / 1.024 GB, free: 14.63 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.847e-06/1.13, allocations: 8 kB / 1.024 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.875e-05/1.13, allocations: 3.953 kB / 1.024 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/1.13, allocations: 0 / 1.024 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/1.13, allocations: 3.938 kB / 1.024 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003343/1.131, allocations: 201.2 kB / 1.024 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.005e-05/1.131, allocations: 88.94 kB / 1.024 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.537e-05/1.131, allocations: 4 kB / 1.024 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002676/1.131, allocations: 31.31 kB / 1.024 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/1.131, allocations: 19.77 kB / 1.024 GB, free: 14.27 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.713e-05/1.131, allocations: 4 kB / 1.024 GB, free: 14.27 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 9.192e-05/1.131, allocations: 95.03 kB / 1.024 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.81e-07/1.132, allocations: 0 / 1.024 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003339/1.132, allocations: 23.42 kB / 1.024 GB, free: 14.16 MB / 0.6511 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.0006531/1.133, allocations: 0.742 MB / 1.025 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002978/1.133, allocations: 81.62 kB / 1.025 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/1.133, allocations: 0 / 1.025 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001338/1.133, allocations: 37.88 kB / 1.025 GB, free: 13.33 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003215/1.133, allocations: 23.06 kB / 1.025 GB, free: 13.31 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006637/1.134, allocations: 161.4 kB / 1.025 GB, free: 13.13 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003011/1.134, allocations: 0.7004 MB / 1.026 GB, free: 12.4 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 8.587e-05/1.134, allocations: 8.547 kB / 1.026 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.631e-05/1.135, allocations: 26.67 kB / 1.026 GB, free: 12.38 MB / 0.6511 GB Notification: Performance of SimCode: time 1.172e-06/1.135, allocations: 4 kB / 1.026 GB, free: 12.38 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02173/1.156, allocations: 2.152 MB / 1.028 GB, free: 10.35 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003867/1.157, allocations: 161.9 kB / 1.028 GB, free: 10.12 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.381/3.538, allocations: 2.25 kB / 1.028 GB, free: 10.12 MB / 0.6511 GB