Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_8_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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 192.5 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.411/1.411, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.698/1.698, allocations: 292.3 MB / 0.5489 GB, free: 12.84 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 75.2 kB / 0.6716 GB, free: 26.13 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2229/0.2244, allocations: 114.5 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.00212/0.2266, allocations: 0.8139 MB / 0.7843 GB, free: 12.56 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001453/0.2281, allocations: 1.2 MB / 0.7855 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.993e-05/0.2282, allocations: 4 kB / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.248e-05/0.2282, allocations: 7.875 kB / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.788e-05/0.2283, allocations: 19.84 kB / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004793/0.2288, allocations: 146.9 kB / 0.7856 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001717/0.229, allocations: 159.7 kB / 0.7858 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.2291, allocations: 28.22 kB / 0.7858 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001043/0.2292, allocations: 63.78 kB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.69e-05/0.2293, allocations: 59.8 kB / 0.7859 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.119e-05/0.2293, allocations: 12 kB / 0.7859 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.427e-05/0.2294, allocations: 23.98 kB / 0.786 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.176e-05/0.2294, allocations: 27.92 kB / 0.786 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.727e-05/0.2295, allocations: 59.75 kB / 0.786 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001836/0.2297, allocations: 143.8 kB / 0.7862 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.2297, allocations: 0 / 0.7862 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.733e-06/0.2297, allocations: 0 / 0.7862 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.462e-06/0.2297, allocations: 0 / 0.7862 GB, free: 10.61 MB / 0.6075 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.0006525/0.2304, allocations: 444.9 kB / 0.7866 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.2304, allocations: 8.031 kB / 0.7866 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.315e-05/0.2305, allocations: 42.75 kB / 0.7867 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.773e-05/0.2305, allocations: 8.844 kB / 0.7867 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001009/0.2306, allocations: 184.1 kB / 0.7868 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.287e-05/0.2307, allocations: 8.375 kB / 0.7868 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.817e-05/0.2307, allocations: 12.38 kB / 0.7869 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002667/0.231, allocations: 97.81 kB / 0.787 GB, free: 9.715 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.231, allocations: 3.938 kB / 0.787 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.231, allocations: 0 / 0.787 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.231, allocations: 11.98 kB / 0.787 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003218/0.2313, allocations: 87.91 kB / 0.787 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005191/0.2319, allocations: 392.4 kB / 0.7874 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002545/0.2321, allocations: 94.59 kB / 0.7875 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001756/0.2323, allocations: 56.81 kB / 0.7876 GB, free: 9.02 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.999e-05/0.2323, allocations: 4 kB / 0.7876 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003016/0.2327, allocations: 119.3 kB / 0.7877 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.353e-06/0.2327, allocations: 0 / 0.7877 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0006359/0.2333, allocations: 217.3 kB / 0.7879 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.141e-05/0.2333, allocations: 55.41 kB / 0.7879 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.511e-05/0.2334, allocations: 125.8 kB / 0.7881 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.628e-05/0.2335, allocations: 33.7 kB / 0.7881 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.113e-05/0.2336, allocations: 108 kB / 0.7882 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.679e-05/0.2336, allocations: 23.66 kB / 0.7882 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.157e-05/0.2337, allocations: 45.69 kB / 0.7883 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001037/0.2338, allocations: 330.8 kB / 0.7886 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002384/0.234, allocations: 79.84 kB / 0.7887 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002494/0.2343, allocations: 112.2 kB / 0.7888 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000407/0.2347, allocations: 181.8 kB / 0.7889 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2347, allocations: 0 / 0.7889 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005948/0.2353, allocations: 271 kB / 0.7892 GB, free: 7.234 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.538e-05/0.2354, allocations: 33.7 kB / 0.7892 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.2354, allocations: 0 / 0.7892 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.2354, allocations: 4 kB / 0.7892 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001368/0.2355, allocations: 23.91 kB / 0.7893 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.2356, allocations: 4 kB / 0.7893 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002509/0.2358, allocations: 51.92 kB / 0.7893 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.273e-05/0.2358, allocations: 7.984 kB / 0.7893 GB, free: 7.105 MB / 0.6075 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 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,zeroCrossing.u_pos,$PRE.zeroCrossing.u_pos,zeroCrossing.disable,$PRE.zeroCrossing.disable,zeroCrossing.enable,$PRE.zeroCrossing.enable,zeroCrossing.y,booPul1.y,$PRE.booPul1.y,$whenCondition3) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001094/0.236, allocations: 129.8 kB / 0.7894 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.912e-05/0.236, allocations: 7.906 kB / 0.7894 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004628/0.2364, allocations: 178.4 kB / 0.7896 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.2365, allocations: 0 / 0.7896 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.2365, allocations: 0 / 0.7896 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.2365, allocations: 0 / 0.7896 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006228/0.2371, allocations: 458.3 kB / 0.7901 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.2371, allocations: 0 / 0.7901 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001002/0.2372, allocations: 19.98 kB / 0.7901 GB, free: 6.258 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.2372, allocations: 0 / 0.7901 GB, free: 6.258 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.586e-05/0.2372, allocations: 11.98 kB / 0.7901 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2373, allocations: 0 / 0.7901 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.2373, allocations: 3.938 kB / 0.7901 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004588/0.2377, allocations: 259.3 kB / 0.7903 GB, free: 5.973 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.989e-05/0.2378, allocations: 89 kB / 0.7904 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.167e-05/0.2378, allocations: 0 / 0.7904 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001191/0.2379, allocations: 11.98 kB / 0.7904 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.295e-05/0.238, allocations: 23.84 kB / 0.7905 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.077e-05/0.238, allocations: 8 kB / 0.7905 GB, free: 5.824 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.806e-05/0.2381, allocations: 101.9 kB / 0.7906 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2381, allocations: 0 / 0.7906 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002582/0.2383, allocations: 31.94 kB / 0.7906 GB, free: 5.695 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007007/0.239, allocations: 0.806 MB / 0.7914 GB, free: 4.863 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005537/0.2396, allocations: 239.2 kB / 0.7916 GB, free: 4.617 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.92e-06/0.2396, allocations: 4 kB / 0.7916 GB, free: 4.613 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002015/0.2398, allocations: 72.14 kB / 0.7917 GB, free: 4.543 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003081/0.2401, allocations: 26.83 kB / 0.7917 GB, free: 4.52 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002467/0.2426, allocations: 1.889 MB / 0.7935 GB, free: 2.512 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002231/0.2429, allocations: 0.6963 MB / 0.7942 GB, free: 1.789 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.999e-05/0.2429, allocations: 8.562 kB / 0.7942 GB, free: 1.781 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.042e-05/0.243, allocations: 32.19 kB / 0.7943 GB, free: 1.75 MB / 0.6075 GB Notification: Performance of SimCode: time 5.61e-07/0.243, allocations: 0 / 0.7943 GB, free: 1.75 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03728/0.2803, allocations: 3.131 MB / 0.7973 GB, free: 14.71 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.886/8.166, allocations: 11.78 kB / 0.7973 GB, free: 14.7 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)