Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.626/1.626, allocations: 288.2 MB / 303.2 MB, free: 8.086 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001099/0.001099, allocations: 174.2 kB / 371.8 MB, free: 10.26 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.746/1.746, allocations: 205.4 MB / 0.6305 GB, free: 10 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001095/0.001094, allocations: 90.7 kB / 0.7439 GB, free: 5.926 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005763/0.0005764, allocations: 16.39 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2498, allocations: 115.3 MB / 0.9795 GB, free: 27.57 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.0008025/0.2506, allocations: 0.5064 MB / 0.98 GB, free: 27.06 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001313/0.252, allocations: 1.161 MB / 0.9811 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.736e-05/0.2521, allocations: 3.938 kB / 0.9811 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.565e-05/0.2521, allocations: 0 / 0.9811 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.639e-05/0.2522, allocations: 15.92 kB / 0.9811 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004323/0.2526, allocations: 130.9 kB / 0.9813 GB, free: 25.74 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.523e-05/0.2527, allocations: 83.84 kB / 0.9813 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.476e-05/0.2528, allocations: 24.2 kB / 0.9814 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.882e-05/0.2529, allocations: 47.84 kB / 0.9814 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.119e-05/0.253, allocations: 55.8 kB / 0.9815 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.04e-05/0.253, allocations: 4 kB / 0.9815 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.265e-05/0.253, allocations: 19.98 kB / 0.9815 GB, free: 25.51 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.637e-05/0.2531, allocations: 11.98 kB / 0.9815 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.409e-05/0.2531, allocations: 45.64 kB / 0.9815 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001076/0.2532, allocations: 95.98 kB / 0.9816 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.2532, allocations: 4 kB / 0.9816 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.302e-06/0.2532, allocations: 0 / 0.9816 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.576e-06/0.2533, allocations: 4 kB / 0.9816 GB, free: 25.34 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005116/0.2538, allocations: 424.8 kB / 0.9821 GB, free: 24.88 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.47e-05/0.2538, allocations: 16.02 kB / 0.9821 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.123e-05/0.2539, allocations: 34.56 kB / 0.9821 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.998e-05/0.2539, allocations: 11.91 kB / 0.9821 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.866e-05/0.254, allocations: 187.8 kB / 0.9823 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.67e-05/0.254, allocations: 12 kB / 0.9823 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.144e-05/0.254, allocations: 8 kB / 0.9823 GB, free: 24.56 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002684/0.2543, allocations: 105.6 kB / 0.9824 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.2543, allocations: 0 / 0.9824 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.2543, allocations: 11.92 kB / 0.9824 GB, free: 24.44 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.356e-06/0.2544, allocations: 0 / 0.9824 GB, free: 24.44 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003186/0.2547, allocations: 111.9 kB / 0.9825 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004779/0.2552, allocations: 384.5 kB / 0.9829 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000239/0.2554, allocations: 114.5 kB / 0.983 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.697e-05/0.2554, allocations: 0 / 0.983 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002805/0.2557, allocations: 131.3 kB / 0.9831 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=12): time 1.302e-06/0.2557, allocations: 0 / 0.9831 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12): time 0.0006026/0.2563, allocations: 245.5 kB / 0.9834 GB, free: 23.4 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.505e-05/0.2564, allocations: 51.41 kB / 0.9834 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.651e-05/0.2565, allocations: 136.2 kB / 0.9835 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.2565, allocations: 33.7 kB / 0.9836 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.344e-05/0.2565, allocations: 100 kB / 0.9837 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.253e-05/0.2566, allocations: 27.64 kB / 0.9837 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.477e-05/0.2566, allocations: 8 kB / 0.9837 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.683e-05/0.2566, allocations: 322.8 kB / 0.984 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000216/0.2569, allocations: 83.86 kB / 0.9841 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002257/0.2571, allocations: 128.2 kB / 0.9842 GB, free: 22.47 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002089/0.2573, allocations: 109.7 kB / 0.9843 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2573, allocations: 0 / 0.9843 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005144/0.2578, allocations: 288.8 kB / 0.9846 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/0.2579, allocations: 33.7 kB / 0.9846 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.2579, allocations: 0 / 0.9846 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.2579, allocations: 8.125 kB / 0.9846 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.258, allocations: 35.91 kB / 0.9847 GB, free: 21.98 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.2581, allocations: 3.953 kB / 0.9847 GB, free: 21.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002491/0.2583, allocations: 59.86 kB / 0.9847 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.212e-05/0.2583, allocations: 15.98 kB / 0.9847 GB, free: 21.91 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$whenCondition3,$PRE.booPul1.y,booPul1.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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 7.719e-05/0.2584, allocations: 129.8 kB / 0.9849 GB, free: 21.77 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.483e-05/0.2584, allocations: 7.906 kB / 0.9849 GB, free: 21.76 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004058/0.2589, allocations: 193.8 kB / 0.9851 GB, free: 21.57 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2589, allocations: 0 / 0.9851 GB, free: 21.57 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2589, allocations: 4 kB / 0.9851 GB, free: 21.57 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.2589, allocations: 3.953 kB / 0.9851 GB, free: 21.56 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005231/0.2594, allocations: 474.3 kB / 0.9855 GB, free: 21.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2594, allocations: 0 / 0.9855 GB, free: 21.04 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.543e-05/0.2595, allocations: 23.97 kB / 0.9855 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.2595, allocations: 0 / 0.9855 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.2596, allocations: 0 / 0.9855 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.2596, allocations: 15.95 kB / 0.9856 GB, free: 21 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2596, allocations: 0 / 0.9856 GB, free: 21 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003743/0.2599, allocations: 276.1 kB / 0.9858 GB, free: 20.72 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.509e-05/0.26, allocations: 85.02 kB / 0.9859 GB, free: 20.62 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.201e-05/0.26, allocations: 0 / 0.9859 GB, free: 20.62 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.2601, allocations: 23.97 kB / 0.9859 GB, free: 20.59 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.5e-05/0.2602, allocations: 31.8 kB / 0.986 GB, free: 20.56 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.2602, allocations: 8 kB / 0.986 GB, free: 20.55 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.359e-05/0.2603, allocations: 91.27 kB / 0.9861 GB, free: 20.46 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2603, allocations: 0 / 0.9861 GB, free: 20.46 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002539/0.2605, allocations: 40.06 kB / 0.9861 GB, free: 20.43 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (zeroCrossing.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul1.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,triggeredSampler.y) * Number of discrete states: 3 (zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.000609/0.2611, allocations: 0.8241 MB / 0.9869 GB, free: 19.57 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004781/0.2616, allocations: 255.2 kB / 0.9871 GB, free: 19.31 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2616, allocations: 4 kB / 0.9871 GB, free: 19.31 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001853/0.2618, allocations: 79.89 kB / 0.9872 GB, free: 19.23 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000216/0.262, allocations: 20.12 kB / 0.9872 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006448/0.2627, allocations: 1.044 MB / 0.9883 GB, free: 18.1 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001217/0.2628, allocations: 0.7043 MB / 0.9889 GB, free: 17.37 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.091e-05/0.2629, allocations: 4.562 kB / 0.9889 GB, free: 17.37 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.323e-05/0.263, allocations: 27.42 kB / 0.989 GB, free: 17.34 MB / 0.6198 GB Notification: Performance of SimCode: time 3.01e-07/0.263, allocations: 7.938 kB / 0.989 GB, free: 17.33 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01229/0.2753, allocations: 2.723 MB / 0.9916 GB, free: 14.78 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001292/0.2754, allocations: 198.6 kB / 0.9918 GB, free: 14.54 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.532/1.807, allocations: 0 / 0.9918 GB, free: 14.54 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)