Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.5/1.5, allocations: 288.4 MB / 303.6 MB, free: 8.074 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.001065/0.001065, allocations: 180.5 kB / 372.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.365/1.365, allocations: 205.4 MB / 0.631 GB, free: 9.895 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.0007763/0.0007763, allocations: 98.22 kB / 0.7444 GB, free: 5.785 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003734/0.0003736, allocations: 13.5 kB / 0.8676 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1794/0.1798, allocations: 115.3 MB / 0.9802 GB, free: 27.23 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.0008558/0.1807, allocations: 0.518 MB / 0.9807 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.00125/0.182, allocations: 1.177 MB / 0.9819 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.477e-05/0.1821, allocations: 4 kB / 0.9819 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.71e-05/0.1821, allocations: 3.938 kB / 0.9819 GB, free: 25.51 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.811e-05/0.1822, allocations: 15.86 kB / 0.9819 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004905/0.1827, allocations: 127 kB / 0.982 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001166/0.1828, allocations: 123.7 kB / 0.9821 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.991e-05/0.1829, allocations: 24.22 kB / 0.9821 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.159e-05/0.183, allocations: 47.91 kB / 0.9822 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.753e-05/0.1831, allocations: 51.8 kB / 0.9822 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.736e-05/0.1831, allocations: 8 kB / 0.9822 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.527e-05/0.1832, allocations: 19.92 kB / 0.9823 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.343e-05/0.1832, allocations: 11.98 kB / 0.9823 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.744e-05/0.1833, allocations: 81.41 kB / 0.9824 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001134/0.1834, allocations: 108 kB / 0.9825 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.1834, allocations: 0 / 0.9825 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.573e-06/0.1834, allocations: 0 / 0.9825 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.1834, allocations: 4 kB / 0.9825 GB, free: 24.9 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.0005292/0.184, allocations: 422.2 kB / 0.9829 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.184, allocations: 8.031 kB / 0.9829 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.331e-05/0.1841, allocations: 42.73 kB / 0.9829 GB, free: 24.37 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.502e-05/0.1841, allocations: 16.84 kB / 0.9829 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.758e-05/0.1842, allocations: 180.2 kB / 0.9831 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.304e-05/0.1842, allocations: 4.375 kB / 0.9831 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.557e-05/0.1842, allocations: 12.38 kB / 0.9831 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002667/0.1845, allocations: 110.2 kB / 0.9832 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.1845, allocations: 3.938 kB / 0.9832 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.1845, allocations: 4 kB / 0.9832 GB, free: 24 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.1846, allocations: 0 / 0.9832 GB, free: 24 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003202/0.1849, allocations: 111.9 kB / 0.9833 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004818/0.1854, allocations: 392.4 kB / 0.9837 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002396/0.1856, allocations: 110.6 kB / 0.9838 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001726/0.1858, allocations: 76.75 kB / 0.9839 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.1858, allocations: 0 / 0.9839 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002944/0.1861, allocations: 127.3 kB / 0.984 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=12): time 1.583e-06/0.1862, allocations: 0 / 0.984 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12): time 0.0006282/0.1868, allocations: 249.6 kB / 0.9842 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.922e-05/0.1868, allocations: 55.41 kB / 0.9843 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.809e-05/0.1869, allocations: 131 kB / 0.9844 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.438e-05/0.1869, allocations: 29.7 kB / 0.9845 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.042e-05/0.187, allocations: 92.14 kB / 0.9845 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.547e-05/0.187, allocations: 39.53 kB / 0.9846 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.351e-05/0.187, allocations: 4 kB / 0.9846 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.44e-05/0.1871, allocations: 322.8 kB / 0.9849 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002211/0.1873, allocations: 91.94 kB / 0.985 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002217/0.1875, allocations: 125.8 kB / 0.9851 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003743/0.1879, allocations: 203.2 kB / 0.9853 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1879, allocations: 0 / 0.9853 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005415/0.1885, allocations: 287 kB / 0.9856 GB, free: 21.44 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.949e-05/0.1885, allocations: 37.83 kB / 0.9856 GB, free: 21.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.1885, allocations: 4 kB / 0.9856 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.1886, allocations: 4 kB / 0.9856 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.1887, allocations: 27.91 kB / 0.9856 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.1887, allocations: 4 kB / 0.9856 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000253/0.189, allocations: 67.8 kB / 0.9857 GB, free: 21.29 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.187e-05/0.189, allocations: 7.984 kB / 0.9857 GB, free: 21.29 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 8.404e-05/0.1891, allocations: 137.7 kB / 0.9858 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.518e-05/0.1891, allocations: 7.906 kB / 0.9858 GB, free: 21.13 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004191/0.1895, allocations: 194 kB / 0.986 GB, free: 20.94 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.1895, allocations: 8 kB / 0.986 GB, free: 20.93 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.1896, allocations: 0 / 0.986 GB, free: 20.93 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.1896, allocations: 0 / 0.986 GB, free: 20.93 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005223/0.1901, allocations: 474.2 kB / 0.9865 GB, free: 20.41 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1901, allocations: 4 kB / 0.9865 GB, free: 20.41 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.757e-05/0.1902, allocations: 23.97 kB / 0.9865 GB, free: 20.39 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.1902, allocations: 0 / 0.9865 GB, free: 20.39 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.1902, allocations: 8 kB / 0.9865 GB, free: 20.38 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.678e-06/0.1903, allocations: 0 / 0.9865 GB, free: 20.38 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1903, allocations: 3.938 kB / 0.9865 GB, free: 20.38 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004127/0.1907, allocations: 279.2 kB / 0.9868 GB, free: 20.09 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.351e-05/0.1907, allocations: 89.02 kB / 0.9869 GB, free: 19.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.179e-05/0.1908, allocations: 4 kB / 0.9869 GB, free: 19.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001189/0.1909, allocations: 23.97 kB / 0.9869 GB, free: 19.95 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.217e-05/0.191, allocations: 23.91 kB / 0.9869 GB, free: 19.93 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.032e-05/0.191, allocations: 7.938 kB / 0.9869 GB, free: 19.92 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.398e-05/0.191, allocations: 97.14 kB / 0.987 GB, free: 19.83 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1e-07/0.191, allocations: 0 / 0.987 GB, free: 19.83 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002455/0.1913, allocations: 40.06 kB / 0.9871 GB, free: 19.79 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.0006211/0.1919, allocations: 0.8236 MB / 0.9879 GB, free: 18.94 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000488/0.1924, allocations: 251.3 kB / 0.9881 GB, free: 18.68 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1924, allocations: 0 / 0.9881 GB, free: 18.68 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001903/0.1926, allocations: 79.94 kB / 0.9882 GB, free: 18.6 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002806/0.1929, allocations: 26.62 kB / 0.9882 GB, free: 18.58 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001413/0.1943, allocations: 0.8593 MB / 0.9891 GB, free: 17.66 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000147/0.1945, allocations: 0.7004 MB / 0.9897 GB, free: 16.93 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.156e-05/0.1945, allocations: 8.547 kB / 0.9897 GB, free: 16.93 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.988e-05/0.1946, allocations: 31.42 kB / 0.9898 GB, free: 16.89 MB / 0.6198 GB Notification: Performance of SimCode: time 4.11e-07/0.1946, allocations: 0 / 0.9898 GB, free: 16.89 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01201/0.2066, allocations: 2.742 MB / 0.9925 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001328/0.2068, allocations: 202.3 kB / 0.9926 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.473/1.68, allocations: 3.938 kB / 0.9927 GB, free: 14.09 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)