Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_maint_7_0_x_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.3-maint.7.0.x/package.mo): time 1.421/1.421, allocations: 249.5 MB / 257 MB, free: 6.98 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.001114/0.001114, allocations: 172.7 kB / 316.3 MB, free: 3.305 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.782/1.782, allocations: 205.3 MB / 0.5671 GB, free: 15.86 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.0008584/0.0008582, allocations: 94.34 kB / 0.6714 GB, free: 4.977 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.894e-05/1.897e-05, allocations: 8 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2102/0.2103, allocations: 106.3 MB / 0.8853 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.736/0.9464, allocations: 132.3 MB / 1.015 GB, free: 5.395 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/0.9467, allocations: 70.22 kB / 1.015 GB, free: 5.359 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003659/0.9504, allocations: 1.34 MB / 1.016 GB, free: 4.152 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.433e-06/0.9504, allocations: 0 / 1.016 GB, free: 4.152 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.084e-06/0.9504, allocations: 0 / 1.016 GB, free: 4.152 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.000566/0.951, allocations: 413.7 kB / 1.016 GB, free: 3.711 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.951, allocations: 12.02 kB / 1.016 GB, free: 3.699 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.248e-05/0.9511, allocations: 7.906 kB / 1.016 GB, free: 3.691 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001492/0.9512, allocations: 175.8 kB / 1.017 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.9513, allocations: 0 / 1.017 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.767e-05/0.9513, allocations: 9.875 kB / 1.017 GB, free: 3.473 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001178/0.9514, allocations: 43.55 kB / 1.017 GB, free: 3.445 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001259/0.9515, allocations: 68.98 kB / 1.017 GB, free: 3.383 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.9516, allocations: 3.984 kB / 1.017 GB, free: 3.379 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.591e-05/0.9516, allocations: 4 kB / 1.017 GB, free: 3.375 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.9516, allocations: 0 / 1.017 GB, free: 3.375 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005864/0.9522, allocations: 332 kB / 1.017 GB, free: 3.043 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003786/0.9526, allocations: 130.1 kB / 1.017 GB, free: 2.926 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.89e-05/0.9526, allocations: 24.61 kB / 1.017 GB, free: 2.906 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.068e-05/0.9527, allocations: 0 / 1.017 GB, free: 2.906 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001502/0.9528, allocations: 81.17 kB / 1.017 GB, free: 2.828 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 1.323e-06/0.9528, allocations: 8 kB / 1.017 GB, free: 2.82 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0002177/0.9531, allocations: 92.92 kB / 1.017 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.9531, allocations: 63.33 kB / 1.017 GB, free: 2.672 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.213e-05/0.9532, allocations: 116 kB / 1.017 GB, free: 2.559 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.317e-05/0.9532, allocations: 33.69 kB / 1.017 GB, free: 2.52 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.322e-05/0.9533, allocations: 91.83 kB / 1.018 GB, free: 2.434 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.012e-05/0.9533, allocations: 27.39 kB / 1.018 GB, free: 2.41 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.063e-06/0.9533, allocations: 0 / 1.018 GB, free: 2.41 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.9535, allocations: 322.5 kB / 1.018 GB, free: 2.09 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.88e-05/0.9535, allocations: 27.69 kB / 1.018 GB, free: 2.074 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.663e-05/0.9536, allocations: 54.88 kB / 1.018 GB, free: 2.023 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.802e-05/0.9536, allocations: 19.8 kB / 1.018 GB, free: 2.008 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.9536, allocations: 0 / 1.018 GB, free: 2.008 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001672/0.9538, allocations: 116.4 kB / 1.018 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.9538, allocations: 8 kB / 1.018 GB, free: 1.898 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.311e-06/0.9539, allocations: 3.984 kB / 1.018 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.9539, allocations: 0 / 1.018 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.954, allocations: 31.8 kB / 1.018 GB, free: 1.867 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.954, allocations: 4 kB / 1.018 GB, free: 1.863 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001296/0.9542, allocations: 30.72 kB / 1.018 GB, free: 1.836 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.367e-05/0.9542, allocations: 8.891 kB / 1.018 GB, free: 1.828 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 8.234e-05/0.9543, allocations: 108.9 kB / 1.018 GB, free: 1.715 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001326/0.9544, allocations: 94.31 kB / 1.018 GB, free: 1.633 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.469e-05/0.9544, allocations: 7.906 kB / 1.018 GB, free: 1.625 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001985/0.9546, allocations: 109.2 kB / 1.018 GB, free: 1.535 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.9546, allocations: 0 / 1.018 GB, free: 1.535 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.9547, allocations: 7.953 kB / 1.019 GB, free: 1.527 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.9547, allocations: 0 / 1.019 GB, free: 1.527 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003332/0.955, allocations: 350 kB / 1.019 GB, free: 1.172 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.955, allocations: 4.484 kB / 1.019 GB, free: 1.168 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001133/0.9551, allocations: 19.98 kB / 1.019 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.9552, allocations: 4 kB / 1.019 GB, free: 1.145 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.9552, allocations: 11.94 kB / 1.019 GB, free: 1.137 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.9552, allocations: 3.953 kB / 1.019 GB, free: 1.133 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.9552, allocations: 7.922 kB / 1.019 GB, free: 1.125 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001816/0.9554, allocations: 191.2 kB / 1.019 GB, free: 0.9375 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.915e-05/0.9554, allocations: 84.95 kB / 1.019 GB, free: 0.8359 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.513e-05/0.9555, allocations: 11.92 kB / 1.019 GB, free: 0.8242 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001555/0.9556, allocations: 27.67 kB / 1.019 GB, free: 0.8008 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.961e-05/0.9557, allocations: 19.91 kB / 1.019 GB, free: 0.7812 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.9557, allocations: 11.62 kB / 1.019 GB, free: 0.7734 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.801e-05/0.9558, allocations: 86.84 kB / 1.019 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9558, allocations: 0 / 1.019 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002254/0.956, allocations: 16 kB / 1.019 GB, free: 0.6758 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.0004609/0.9565, allocations: 0.7357 MB / 1.02 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001587/0.9566, allocations: 75.06 kB / 1.02 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.9567, allocations: 3.938 kB / 1.02 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.2e-05/0.9567, allocations: 31.62 kB / 1.02 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002261/0.957, allocations: 15.7 kB / 1.02 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004498/0.9574, allocations: 157.9 kB / 1.02 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002694/0.9577, allocations: 0.7039 MB / 1.021 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.442e-05/0.9578, allocations: 12.55 kB / 1.021 GB, free: 14.92 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.628e-05/0.9578, allocations: 22.94 kB / 1.021 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of SimCode: time 2.71e-07/0.9579, allocations: 0 / 1.021 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02172/0.9796, allocations: 1.816 MB / 1.023 GB, free: 13.11 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003687/0.9801, allocations: 162.6 kB / 1.023 GB, free: 12.92 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.503/2.483, allocations: 5.094 kB / 1.023 GB, free: 12.92 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)