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.001175/0.001175, allocations: 105.4 kB / 15.7 MB, free: 16 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.001295/0.001295, allocations: 193 kB / 16.64 MB, free: 6.582 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.543/1.543, allocations: 205.1 MB / 222.5 MB, free: 4.551 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.748/1.748, allocations: 292.3 MB / 0.549 GB, free: 12.76 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.001536/0.001536, allocations: 69.7 kB / 0.6718 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2147/0.2163, allocations: 114.5 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002785/0.2191, allocations: 0.8332 MB / 0.7845 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001735/0.2209, allocations: 1.196 MB / 0.7856 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.889e-05/0.221, allocations: 0 / 0.7856 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 5.244e-05/0.2211, allocations: 3.938 kB / 0.7856 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001275/0.2213, allocations: 23.8 kB / 0.7857 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007622/0.222, allocations: 147.2 kB / 0.7858 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002761/0.2223, allocations: 167.6 kB / 0.786 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.2225, allocations: 20.22 kB / 0.786 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001321/0.2226, allocations: 71.83 kB / 0.786 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001318/0.2227, allocations: 59.8 kB / 0.7861 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.106e-05/0.2228, allocations: 12 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.011e-05/0.2229, allocations: 27.98 kB / 0.7861 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.935e-05/0.2229, allocations: 23.91 kB / 0.7862 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.102e-05/0.223, allocations: 55.78 kB / 0.7862 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002577/0.2233, allocations: 147.8 kB / 0.7864 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.2233, allocations: 0 / 0.7864 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.376e-06/0.2233, allocations: 0 / 0.7864 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.2233, allocations: 3.938 kB / 0.7864 GB, free: 10.45 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.0008627/0.2242, allocations: 448.8 kB / 0.7868 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.2242, allocations: 12.03 kB / 0.7868 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.317e-05/0.2243, allocations: 38.73 kB / 0.7868 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.369e-05/0.2244, allocations: 12.84 kB / 0.7868 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.2245, allocations: 172.2 kB / 0.787 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.2245, allocations: 8.375 kB / 0.787 GB, free: 9.672 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.04e-05/0.2246, allocations: 8.375 kB / 0.787 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002934/0.2249, allocations: 117.7 kB / 0.7871 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.2249, allocations: 3.938 kB / 0.7871 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.2249, allocations: 0 / 0.7871 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.2249, allocations: 4 kB / 0.7871 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003152/0.2252, allocations: 83.91 kB / 0.7872 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006276/0.2259, allocations: 388.5 kB / 0.7876 GB, free: 9.027 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002626/0.2262, allocations: 94.64 kB / 0.7877 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000172/0.2263, allocations: 60.8 kB / 0.7877 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.611e-05/0.2264, allocations: 4 kB / 0.7877 GB, free: 8.859 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003642/0.2267, allocations: 119.3 kB / 0.7879 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.583e-06/0.2268, allocations: 0 / 0.7879 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0006569/0.2274, allocations: 209.4 kB / 0.7881 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.43e-05/0.2275, allocations: 59.39 kB / 0.7881 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.2276, allocations: 125.8 kB / 0.7882 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.498e-05/0.2277, allocations: 37.69 kB / 0.7883 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.521e-05/0.2278, allocations: 96.05 kB / 0.7884 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.309e-05/0.2278, allocations: 35.56 kB / 0.7884 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.626e-05/0.2279, allocations: 45.7 kB / 0.7884 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001449/0.228, allocations: 330.8 kB / 0.7888 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002254/0.2283, allocations: 79.84 kB / 0.7888 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002382/0.2285, allocations: 108.2 kB / 0.7889 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003927/0.2289, allocations: 181.9 kB / 0.7891 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2289, allocations: 0 / 0.7891 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005737/0.2295, allocations: 274.2 kB / 0.7894 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.2296, allocations: 40.28 kB / 0.7894 GB, free: 7.039 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.2296, allocations: 4 kB / 0.7894 GB, free: 7.035 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.2296, allocations: 0 / 0.7894 GB, free: 7.035 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/0.2297, allocations: 23.98 kB / 0.7894 GB, free: 7.012 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.2297, allocations: 128 / 0.7894 GB, free: 7.012 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002188/0.23, allocations: 51.78 kB / 0.7895 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.557e-05/0.23, allocations: 12 kB / 0.7895 GB, free: 6.949 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.0001029/0.2301, allocations: 129.7 kB / 0.7896 GB, free: 6.812 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.792e-05/0.2301, allocations: 7.906 kB / 0.7896 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004313/0.2306, allocations: 169.9 kB / 0.7898 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.2306, allocations: 11.94 kB / 0.7898 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.2306, allocations: 0 / 0.7898 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.2306, allocations: 3.984 kB / 0.7898 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005888/0.2312, allocations: 446.4 kB / 0.7902 GB, free: 6.125 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2312, allocations: 0 / 0.7902 GB, free: 6.125 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.695e-05/0.2313, allocations: 23.91 kB / 0.7903 GB, free: 6.102 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.2313, allocations: 0 / 0.7903 GB, free: 6.102 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.2313, allocations: 0 / 0.7903 GB, free: 6.102 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.2313, allocations: 3.938 kB / 0.7903 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2313, allocations: 0 / 0.7903 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004395/0.2318, allocations: 260.1 kB / 0.7905 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.847e-05/0.2318, allocations: 85.02 kB / 0.7906 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.071e-05/0.2319, allocations: 11.92 kB / 0.7906 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.232, allocations: 11.98 kB / 0.7906 GB, free: 5.703 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.612e-05/0.2321, allocations: 15.98 kB / 0.7906 GB, free: 5.688 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.185e-05/0.2321, allocations: 7.984 kB / 0.7906 GB, free: 5.68 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.958e-05/0.2321, allocations: 99.39 kB / 0.7907 GB, free: 5.582 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2321, allocations: 0 / 0.7907 GB, free: 5.582 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002673/0.2324, allocations: 35.94 kB / 0.7908 GB, free: 5.547 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.0007522/0.2332, allocations: 0.8123 MB / 0.7916 GB, free: 4.711 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005132/0.2337, allocations: 235.2 kB / 0.7918 GB, free: 4.469 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.2337, allocations: 0 / 0.7918 GB, free: 4.469 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001889/0.2339, allocations: 68.14 kB / 0.7918 GB, free: 4.402 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002822/0.2342, allocations: 19.98 kB / 0.7919 GB, free: 4.383 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002493/0.2367, allocations: 1.908 MB / 0.7937 GB, free: 2.355 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000252/0.237, allocations: 0.6924 MB / 0.7944 GB, free: 1.637 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.196e-05/0.237, allocations: 8.562 kB / 0.7944 GB, free: 1.629 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.236e-05/0.2371, allocations: 31.42 kB / 0.7944 GB, free: 1.598 MB / 0.6075 GB Notification: Performance of SimCode: time 2.1e-07/0.2371, allocations: 0 / 0.7944 GB, free: 1.598 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01866/0.2558, allocations: 3.152 MB / 0.7975 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.363/7.619, allocations: 6.656 kB / 0.7975 GB, free: 14.55 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)