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.4/1.4, allocations: 251.9 MB / 266.8 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001406/0.001406, allocations: 175.4 kB / 326.5 MB, free: 2.234 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.221/2.221, allocations: 205.4 MB / 0.5775 GB, free: 20.24 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.0009381/0.000938, allocations: 94.34 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003438/0.0003439, allocations: 10.56 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2451/0.2455, allocations: 106.3 MB / 0.9002 GB, free: 63.81 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1767/0.4223, allocations: 132.1 MB / 1.029 GB, free: 11.51 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001819/0.4225, allocations: 71.95 kB / 1.029 GB, free: 11.44 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003588/0.4261, allocations: 1.356 MB / 1.031 GB, free: 10.08 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.893e-06/0.4261, allocations: 0 / 1.031 GB, free: 10.08 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.715e-06/0.4262, allocations: 8 kB / 1.031 GB, free: 10.07 MB / 0.6823 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.0006138/0.4268, allocations: 415 kB / 1.031 GB, free: 9.617 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.4268, allocations: 8.031 kB / 1.031 GB, free: 9.609 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.869e-05/0.4269, allocations: 42.56 kB / 1.031 GB, free: 9.559 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.914e-05/0.4269, allocations: 11.91 kB / 1.031 GB, free: 9.547 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001316/0.4271, allocations: 182.9 kB / 1.031 GB, free: 9.328 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.498e-05/0.4271, allocations: 4 kB / 1.031 GB, free: 9.324 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.89e-05/0.4271, allocations: 8 kB / 1.031 GB, free: 9.316 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003043/0.4274, allocations: 109.6 kB / 1.031 GB, free: 9.203 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.4274, allocations: 0 / 1.031 GB, free: 9.203 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.4275, allocations: 4 kB / 1.031 GB, free: 9.199 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.4275, allocations: 0 / 1.031 GB, free: 9.199 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003973/0.4279, allocations: 119.8 kB / 1.031 GB, free: 9.082 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006279/0.4285, allocations: 360.6 kB / 1.032 GB, free: 8.68 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005265/0.4291, allocations: 162.5 kB / 1.032 GB, free: 8.512 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.119e-05/0.4291, allocations: 0 / 1.032 GB, free: 8.512 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003343/0.4294, allocations: 115.3 kB / 1.032 GB, free: 8.387 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=11): time 1.973e-06/0.4294, allocations: 0 / 1.032 GB, free: 8.387 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.0006647/0.4301, allocations: 241.5 kB / 1.032 GB, free: 8.145 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.078e-05/0.4302, allocations: 55.41 kB / 1.032 GB, free: 8.078 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.547e-05/0.4303, allocations: 120 kB / 1.032 GB, free: 7.953 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.465e-05/0.4303, allocations: 33.7 kB / 1.033 GB, free: 7.914 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.842e-05/0.4304, allocations: 92.05 kB / 1.033 GB, free: 7.82 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.631e-05/0.4304, allocations: 31.69 kB / 1.033 GB, free: 7.789 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.584e-06/0.4304, allocations: 0 / 1.033 GB, free: 7.789 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001249/0.4306, allocations: 326.8 kB / 1.033 GB, free: 7.461 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001952/0.4308, allocations: 59.95 kB / 1.033 GB, free: 7.402 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002133/0.431, allocations: 103.3 kB / 1.033 GB, free: 7.289 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001851/0.4312, allocations: 57.08 kB / 1.033 GB, free: 7.234 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.4312, allocations: 0 / 1.033 GB, free: 7.234 MB / 0.6823 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004714/0.4317, allocations: 197.3 kB / 1.033 GB, free: 7.035 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.4317, allocations: 8 kB / 1.033 GB, free: 7.027 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.4317, allocations: 0 / 1.033 GB, free: 7.027 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.4317, allocations: 0 / 1.033 GB, free: 7.027 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001368/0.4319, allocations: 32 kB / 1.033 GB, free: 6.996 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.4319, allocations: 11.89 kB / 1.033 GB, free: 6.984 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000151/0.432, allocations: 35.81 kB / 1.033 GB, free: 6.949 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.4321, allocations: 4 kB / 1.033 GB, free: 6.945 MB / 0.6823 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 () * Number of clocked 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.000109/0.4322, allocations: 128.1 kB / 1.034 GB, free: 6.812 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.311e-05/0.4322, allocations: 11.91 kB / 1.034 GB, free: 6.801 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004699/0.4327, allocations: 185.8 kB / 1.034 GB, free: 6.617 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.4327, allocations: 4 kB / 1.034 GB, free: 6.613 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.4327, allocations: 0 / 1.034 GB, free: 6.613 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.4327, allocations: 3.953 kB / 1.034 GB, free: 6.609 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006859/0.4334, allocations: 442.5 kB / 1.034 GB, free: 6.121 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.4334, allocations: 3.984 kB / 1.034 GB, free: 6.117 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/0.4336, allocations: 31.92 kB / 1.034 GB, free: 6.086 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.4336, allocations: 0 / 1.034 GB, free: 6.086 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.4336, allocations: 0 / 1.034 GB, free: 6.086 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.671e-06/0.4336, allocations: 3.953 kB / 1.034 GB, free: 6.082 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.4336, allocations: 3.938 kB / 1.034 GB, free: 6.078 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004706/0.4341, allocations: 267.4 kB / 1.034 GB, free: 5.801 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.768e-05/0.4341, allocations: 85.02 kB / 1.035 GB, free: 5.699 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.703e-05/0.4342, allocations: 8 kB / 1.035 GB, free: 5.691 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.4343, allocations: 27.97 kB / 1.035 GB, free: 5.664 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.745e-05/0.4344, allocations: 19.92 kB / 1.035 GB, free: 5.645 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.28e-05/0.4344, allocations: 7.984 kB / 1.035 GB, free: 5.637 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.082e-05/0.4345, allocations: 95.27 kB / 1.035 GB, free: 5.543 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.694e-06/0.4345, allocations: 0 / 1.035 GB, free: 5.543 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002362/0.4348, allocations: 23.94 kB / 1.035 GB, free: 5.52 MB / 0.6823 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) * Number of clocked states: 0 () * 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.0007843/0.4356, allocations: 0.8021 MB / 1.035 GB, free: 4.688 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004519/0.436, allocations: 152.4 kB / 1.036 GB, free: 4.539 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.436, allocations: 0 / 1.036 GB, free: 4.539 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002072/0.4362, allocations: 80.02 kB / 1.036 GB, free: 4.461 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002362/0.4365, allocations: 32.23 kB / 1.036 GB, free: 4.43 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001617/0.4381, allocations: 1.19 MB / 1.037 GB, free: 3.168 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/0.4384, allocations: 0.7004 MB / 1.038 GB, free: 2.441 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 5.895e-05/0.4385, allocations: 8.547 kB / 1.038 GB, free: 2.434 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.992e-05/0.4386, allocations: 31.42 kB / 1.038 GB, free: 2.402 MB / 0.6823 GB Notification: Performance of SimCode: time 4.31e-07/0.4386, allocations: 0 / 1.038 GB, free: 2.402 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01443/0.453, allocations: 2.131 MB / 1.04 GB, free: 452 kB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002096/0.4533, allocations: 194.2 kB / 1.04 GB, free: 208 kB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.598/2.051, allocations: 3.938 kB / 1.04 GB, free: 204 kB / 0.6823 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)