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.839/2.839, allocations: 287.3 MB / 302.3 MB, free: 8.219 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.001597/0.001597, allocations: 172.5 kB / 370.8 MB, free: 10.87 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.118/2.118, allocations: 205.4 MB / 0.6295 GB, free: 10.63 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.001098/0.001098, allocations: 99.95 kB / 0.7428 GB, free: 6.633 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006857/0.0006858, allocations: 14.72 kB / 0.8657 GB, free: 139.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2331/0.2338, allocations: 115.3 MB / 0.9783 GB, free: 28.29 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001096/0.235, allocations: 0.51 MB / 0.9788 GB, free: 27.77 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001696/0.2367, allocations: 1.161 MB / 0.9799 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.149e-05/0.2368, allocations: 0 / 0.9799 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.175e-05/0.2369, allocations: 3.938 kB / 0.9799 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001115/0.237, allocations: 15.92 kB / 0.98 GB, free: 26.57 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006658/0.2377, allocations: 130.4 kB / 0.9801 GB, free: 26.45 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001387/0.2378, allocations: 75.84 kB / 0.9802 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.238, allocations: 24.2 kB / 0.9802 GB, free: 26.35 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001106/0.2381, allocations: 47.91 kB / 0.9802 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 9.728e-05/0.2382, allocations: 47.8 kB / 0.9803 GB, free: 26.26 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.244e-05/0.2382, allocations: 8 kB / 0.9803 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.013e-05/0.2383, allocations: 23.92 kB / 0.9803 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.746e-05/0.2384, allocations: 15.98 kB / 0.9803 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.214e-05/0.2384, allocations: 41.64 kB / 0.9804 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001654/0.2386, allocations: 104 kB / 0.9805 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.2386, allocations: 0 / 0.9805 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.605e-06/0.2386, allocations: 0 / 0.9805 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.2386, allocations: 0 / 0.9805 GB, free: 26.06 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.0007137/0.2394, allocations: 428.8 kB / 0.9809 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.2394, allocations: 16.02 kB / 0.9809 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.015e-05/0.2395, allocations: 34.56 kB / 0.9809 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.653e-05/0.2395, allocations: 15.89 kB / 0.9809 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.893e-05/0.2396, allocations: 188.4 kB / 0.9811 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/0.2397, allocations: 4 kB / 0.9811 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.116e-05/0.2397, allocations: 12 kB / 0.9811 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004209/0.2402, allocations: 105.6 kB / 0.9812 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.2402, allocations: 0 / 0.9812 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.91e-05/0.2402, allocations: 7.984 kB / 0.9812 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.2402, allocations: 4 kB / 0.9812 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005724/0.2408, allocations: 103.9 kB / 0.9813 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006735/0.2415, allocations: 392.5 kB / 0.9817 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003947/0.2419, allocations: 110.6 kB / 0.9818 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.242, allocations: 4 kB / 0.9818 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004554/0.2424, allocations: 123.3 kB / 0.9819 GB, free: 24.37 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=12): time 2.605e-06/0.2424, allocations: 0 / 0.9819 GB, free: 24.37 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12): time 0.001119/0.2436, allocations: 241.5 kB / 0.9822 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.933e-05/0.2436, allocations: 63.47 kB / 0.9822 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.2437, allocations: 123.6 kB / 0.9823 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.398e-05/0.2438, allocations: 33.7 kB / 0.9824 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.078e-05/0.2439, allocations: 108 kB / 0.9825 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.692e-05/0.2439, allocations: 31.58 kB / 0.9825 GB, free: 23.74 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.398e-05/0.244, allocations: 4 kB / 0.9825 GB, free: 23.74 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.296e-05/0.244, allocations: 322.8 kB / 0.9828 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000425/0.2445, allocations: 95.84 kB / 0.9829 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004113/0.2449, allocations: 118.1 kB / 0.983 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000398/0.2453, allocations: 113.7 kB / 0.9831 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.2453, allocations: 0 / 0.9831 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009786/0.2463, allocations: 288 kB / 0.9834 GB, free: 22.78 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.59e-05/0.2464, allocations: 39.58 kB / 0.9834 GB, free: 22.74 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.086e-06/0.2464, allocations: 0 / 0.9834 GB, free: 22.74 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.2464, allocations: 7.953 kB / 0.9835 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002312/0.2467, allocations: 27.91 kB / 0.9835 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.2467, allocations: 4 kB / 0.9835 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000467/0.2472, allocations: 59.89 kB / 0.9835 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.741e-05/0.2472, allocations: 11.98 kB / 0.9836 GB, free: 22.63 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.0001285/0.2474, allocations: 133.7 kB / 0.9837 GB, free: 22.49 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.761e-05/0.2474, allocations: 11.91 kB / 0.9837 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007424/0.2481, allocations: 198.4 kB / 0.9839 GB, free: 22.28 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.2482, allocations: 4 kB / 0.9839 GB, free: 22.28 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.565e-06/0.2482, allocations: 7.953 kB / 0.9839 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.2482, allocations: 0 / 0.9839 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009772/0.2492, allocations: 466.4 kB / 0.9843 GB, free: 21.76 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.2492, allocations: 0 / 0.9843 GB, free: 21.76 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001877/0.2494, allocations: 35.91 kB / 0.9844 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.174e-06/0.2494, allocations: 0 / 0.9844 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.95e-05/0.2495, allocations: 11.89 kB / 0.9844 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.2495, allocations: 0 / 0.9844 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.2495, allocations: 0 / 0.9844 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007006/0.2502, allocations: 275.3 kB / 0.9846 GB, free: 21.43 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.473e-05/0.2502, allocations: 85.02 kB / 0.9847 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.374e-05/0.2503, allocations: 4 kB / 0.9847 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002132/0.2505, allocations: 27.92 kB / 0.9848 GB, free: 21.29 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.142e-05/0.2506, allocations: 19.97 kB / 0.9848 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.2506, allocations: 0 / 0.9848 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.913e-05/0.2507, allocations: 95.77 kB / 0.9849 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.71e-07/0.2507, allocations: 0 / 0.9849 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004123/0.2511, allocations: 40.06 kB / 0.9849 GB, free: 21.14 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.0009875/0.2521, allocations: 0.8254 MB / 0.9857 GB, free: 20.29 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0009238/0.2531, allocations: 251.2 kB / 0.986 GB, free: 20.03 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.2531, allocations: 3.938 kB / 0.986 GB, free: 20.02 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000344/0.2535, allocations: 80.19 kB / 0.986 GB, free: 19.95 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000319/0.2538, allocations: 15.95 kB / 0.986 GB, free: 19.93 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009229/0.2547, allocations: 1.047 MB / 0.9871 GB, free: 18.82 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001503/0.2549, allocations: 0.7004 MB / 0.9878 GB, free: 18.09 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 8.552e-05/0.255, allocations: 4.562 kB / 0.9878 GB, free: 18.09 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.611e-05/0.2551, allocations: 31.42 kB / 0.9878 GB, free: 18.05 MB / 0.6198 GB Notification: Performance of SimCode: time 1.263e-06/0.2551, allocations: 0 / 0.9878 GB, free: 18.05 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02193/0.2771, allocations: 2.712 MB / 0.9904 GB, free: 15.5 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002251/0.2773, allocations: 195 kB / 0.9906 GB, free: 15.26 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.443/2.72, allocations: 0 / 0.9906 GB, free: 15.26 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)