Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.748/2.748, allocations: 287.5 MB / 302.4 MB, free: 8.281 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.001396/0.001397, allocations: 180.8 kB / 371 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.177/2.177, allocations: 205.4 MB / 0.6297 GB, free: 10.57 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.001485/0.001485, allocations: 92.75 kB / 0.743 GB, free: 6.586 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000487/0.0004871, allocations: 12.75 kB / 0.8659 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2115/0.212, allocations: 115.3 MB / 0.9785 GB, free: 28.25 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001044/0.2131, allocations: 0.5139 MB / 0.979 GB, free: 27.73 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001756/0.2149, allocations: 1.177 MB / 0.9801 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.768e-05/0.215, allocations: 7.938 kB / 0.9801 GB, free: 26.53 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.372e-05/0.215, allocations: 0 / 0.9801 GB, free: 26.53 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 8.922e-05/0.2151, allocations: 19.84 kB / 0.9801 GB, free: 26.51 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006266/0.2157, allocations: 126.8 kB / 0.9803 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001573/0.2159, allocations: 119.7 kB / 0.9804 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.216, allocations: 20.22 kB / 0.9804 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001049/0.2161, allocations: 55.81 kB / 0.9805 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 9.562e-05/0.2163, allocations: 51.81 kB / 0.9805 GB, free: 26.15 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.598e-05/0.2163, allocations: 8 kB / 0.9805 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.729e-05/0.2164, allocations: 19.98 kB / 0.9805 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.727e-05/0.2164, allocations: 19.91 kB / 0.9806 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.08e-05/0.2165, allocations: 37.7 kB / 0.9806 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001587/0.2167, allocations: 103.9 kB / 0.9807 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.2167, allocations: 0 / 0.9807 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.174e-06/0.2167, allocations: 0 / 0.9807 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.929e-06/0.2167, allocations: 4 kB / 0.9807 GB, free: 25.95 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.0007045/0.2174, allocations: 428.8 kB / 0.9811 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.2175, allocations: 16.02 kB / 0.9811 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.539e-05/0.2175, allocations: 30.56 kB / 0.9811 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.53e-05/0.2176, allocations: 15.84 kB / 0.9812 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.29e-05/0.2177, allocations: 182.9 kB / 0.9813 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.2177, allocations: 8 kB / 0.9813 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.763e-05/0.2178, allocations: 12 kB / 0.9814 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000441/0.2182, allocations: 104 kB / 0.9815 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.2183, allocations: 0 / 0.9815 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/0.2183, allocations: 8 kB / 0.9815 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.2183, allocations: 4 kB / 0.9815 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005635/0.2189, allocations: 107.8 kB / 0.9816 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006721/0.2196, allocations: 388.5 kB / 0.9819 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003937/0.22, allocations: 106.6 kB / 0.982 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003052/0.2203, allocations: 68.81 kB / 0.9821 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.28e-05/0.2203, allocations: 3.984 kB / 0.9821 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004551/0.2208, allocations: 131.3 kB / 0.9822 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=12): time 2.515e-06/0.2208, allocations: 0 / 0.9822 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12): time 0.001083/0.2219, allocations: 257.2 kB / 0.9825 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.836e-05/0.222, allocations: 59.41 kB / 0.9825 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.2221, allocations: 130 kB / 0.9827 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.199e-05/0.2221, allocations: 33.7 kB / 0.9827 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.386e-05/0.2222, allocations: 100 kB / 0.9828 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.849e-05/0.2223, allocations: 27.66 kB / 0.9828 GB, free: 23.56 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.386e-05/0.2223, allocations: 4 kB / 0.9828 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.944e-05/0.2224, allocations: 322.8 kB / 0.9831 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003956/0.2228, allocations: 91.84 kB / 0.9832 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004115/0.2232, allocations: 124.2 kB / 0.9833 GB, free: 23 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003917/0.2236, allocations: 119.2 kB / 0.9834 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.2236, allocations: 0 / 0.9834 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009574/0.2246, allocations: 283.2 kB / 0.9837 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.358e-05/0.2247, allocations: 41.69 kB / 0.9838 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.2247, allocations: 0 / 0.9838 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.2247, allocations: 11.89 kB / 0.9838 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002298/0.225, allocations: 19.98 kB / 0.9838 GB, free: 22.52 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/0.225, allocations: 7.984 kB / 0.9838 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000462/0.2254, allocations: 59.89 kB / 0.9838 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.638e-05/0.2255, allocations: 8 kB / 0.9839 GB, free: 22.44 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 0.0001266/0.2256, allocations: 143 kB / 0.984 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.664e-05/0.2257, allocations: 11.91 kB / 0.984 GB, free: 22.28 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007512/0.2264, allocations: 186 kB / 0.9842 GB, free: 22.1 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.453e-06/0.2265, allocations: 7.953 kB / 0.9842 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.2265, allocations: 0 / 0.9842 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.2265, allocations: 0 / 0.9842 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009457/0.2274, allocations: 466.3 kB / 0.9846 GB, free: 21.58 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-06/0.2275, allocations: 0 / 0.9846 GB, free: 21.58 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001872/0.2277, allocations: 27.98 kB / 0.9847 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.344e-06/0.2277, allocations: 3.953 kB / 0.9847 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.863e-05/0.2277, allocations: 3.984 kB / 0.9847 GB, free: 21.54 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.2277, allocations: 3.938 kB / 0.9847 GB, free: 21.54 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.2277, allocations: 0 / 0.9847 GB, free: 21.54 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007052/0.2285, allocations: 279.3 kB / 0.9849 GB, free: 21.25 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.557e-05/0.2285, allocations: 85.02 kB / 0.985 GB, free: 21.15 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.418e-05/0.2285, allocations: 7.953 kB / 0.985 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001966/0.2288, allocations: 19.98 kB / 0.985 GB, free: 21.12 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.111e-05/0.2289, allocations: 19.97 kB / 0.9851 GB, free: 21.1 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.669e-05/0.2289, allocations: 3.984 kB / 0.9851 GB, free: 21.1 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.524e-05/0.229, allocations: 95.89 kB / 0.9852 GB, free: 21 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.91e-07/0.229, allocations: 0 / 0.9852 GB, free: 21 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003736/0.2293, allocations: 35.94 kB / 0.9852 GB, free: 20.97 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.001011/0.2304, allocations: 0.8267 MB / 0.986 GB, free: 20.11 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0008845/0.2313, allocations: 259.2 kB / 0.9862 GB, free: 19.85 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.2313, allocations: 0 / 0.9862 GB, free: 19.85 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003407/0.2316, allocations: 80.47 kB / 0.9863 GB, free: 19.77 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004043/0.2321, allocations: 24.09 kB / 0.9863 GB, free: 19.75 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002251/0.2343, allocations: 0.8543 MB / 0.9872 GB, free: 18.83 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000166/0.2345, allocations: 0.6965 MB / 0.9879 GB, free: 18.11 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 9.795e-05/0.2346, allocations: 8.562 kB / 0.9879 GB, free: 18.1 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.8e-05/0.2347, allocations: 31.42 kB / 0.9879 GB, free: 18.07 MB / 0.6198 GB Notification: Performance of SimCode: time 1.183e-06/0.2348, allocations: 0 / 0.9879 GB, free: 18.07 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02599/0.2608, allocations: 2.749 MB / 0.9906 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000244/0.2611, allocations: 198.5 kB / 0.9908 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.633/2.894, allocations: 0 / 0.9908 GB, free: 15.24 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)