Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 8.1.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.74/1.74, allocations: 297.4 MB / 312.6 MB, free: 2.945 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 186 kB / 382.3 MB, free: 14.85 MB / 314.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.539/1.539, allocations: 225.7 MB / 0.6617 GB, free: 7.246 MB / 490.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007835/0.0007835, allocations: 96.58 kB / 0.7789 GB, free: 46.93 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0005539/0.0005538, allocations: 8 kB / 0.9059 GB, free: 4.922 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7248/0.7254, allocations: 119.2 MB / 1.022 GB, free: 58.23 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001066/0.7265, allocations: 0.5186 MB / 1.023 GB, free: 58.02 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001676/0.7282, allocations: 1.341 MB / 1.024 GB, free: 57.22 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.604e-05/0.7283, allocations: 0 / 1.024 GB, free: 57.22 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 1.903e-05/0.7283, allocations: 3.938 kB / 1.024 GB, free: 57.21 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 8.655e-05/0.7284, allocations: 12.48 kB / 1.024 GB, free: 57.21 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004797/0.7289, allocations: 138.7 kB / 1.024 GB, free: 57.16 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001571/0.7291, allocations: 144 kB / 1.024 GB, free: 57.11 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.7292, allocations: 16.81 kB / 1.024 GB, free: 57.1 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 9.655e-05/0.7293, allocations: 56.2 kB / 1.024 GB, free: 57.08 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 8.334e-05/0.7294, allocations: 46.59 kB / 1.025 GB, free: 57.07 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.422e-05/0.7294, allocations: 6.562 kB / 1.025 GB, free: 57.07 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 7.105e-05/0.7295, allocations: 27.33 kB / 1.025 GB, free: 57.06 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.814e-05/0.7295, allocations: 16.17 kB / 1.025 GB, free: 57.05 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 8.415e-05/0.7296, allocations: 80.06 kB / 1.025 GB, free: 57 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0002153/0.7298, allocations: 134.4 kB / 1.025 GB, free: 56.96 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.7298, allocations: 0 / 1.025 GB, free: 56.96 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.753e-06/0.7298, allocations: 0.7969 kB / 1.025 GB, free: 56.96 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5e-06/0.7299, allocations: 0 / 1.025 GB, free: 56.96 MB / 0.698 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.0005978/0.7305, allocations: 429.9 kB / 1.025 GB, free: 56.55 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.7305, allocations: 9.125 kB / 1.025 GB, free: 56.55 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.048e-05/0.7306, allocations: 14.19 kB / 1.025 GB, free: 56.55 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.804e-05/0.7307, allocations: 176.4 kB / 1.025 GB, free: 56.34 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.22e-05/0.7307, allocations: 4.781 kB / 1.025 GB, free: 56.34 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.312e-05/0.7307, allocations: 14.23 kB / 1.025 GB, free: 56.34 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003269/0.7311, allocations: 115.7 kB / 1.025 GB, free: 56.29 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.7311, allocations: 4.094 kB / 1.025 GB, free: 56.29 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.728e-05/0.7311, allocations: 12.95 kB / 1.026 GB, free: 56.28 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.7311, allocations: 2.969 kB / 1.026 GB, free: 56.28 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003665/0.7315, allocations: 111.3 kB / 1.026 GB, free: 56.26 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005626/0.7321, allocations: 379 kB / 1.026 GB, free: 55.95 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002764/0.7324, allocations: 104.5 kB / 1.026 GB, free: 55.9 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001885/0.7326, allocations: 71.12 kB / 1.026 GB, free: 55.88 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.7326, allocations: 5.25 kB / 1.026 GB, free: 55.88 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003188/0.7329, allocations: 133.9 kB / 1.026 GB, free: 55.81 MB / 0.698 GB Notification: Performance of pre-optimization done (n=12): time 1.503e-06/0.7329, allocations: 0 / 1.026 GB, free: 55.81 MB / 0.698 GB Notification: Performance of matching and sorting (n=12): time 0.000638/0.7336, allocations: 239.5 kB / 1.026 GB, free: 55.74 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.031e-05/0.7336, allocations: 54.53 kB / 1.027 GB, free: 55.68 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.25e-05/0.7337, allocations: 139.7 kB / 1.027 GB, free: 55.55 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.406e-05/0.7337, allocations: 29.3 kB / 1.027 GB, free: 55.52 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.809e-05/0.7338, allocations: 101.4 kB / 1.027 GB, free: 55.43 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.109e-05/0.7338, allocations: 32.67 kB / 1.027 GB, free: 55.41 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.429e-05/0.7338, allocations: 2.625 kB / 1.027 GB, free: 55.41 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.392e-05/0.7339, allocations: 324.8 kB / 1.027 GB, free: 55.09 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000236/0.7342, allocations: 90.08 kB / 1.027 GB, free: 55.06 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00025/0.7344, allocations: 125 kB / 1.027 GB, free: 55 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003959/0.7348, allocations: 207.1 kB / 1.028 GB, free: 54.88 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.7348, allocations: 5.625 kB / 1.028 GB, free: 54.88 MB / 0.698 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005611/0.7354, allocations: 289.9 kB / 1.028 GB, free: 54.75 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.156e-05/0.7354, allocations: 39.7 kB / 1.028 GB, free: 54.71 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.7354, allocations: 5.469 kB / 1.028 GB, free: 54.71 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.7355, allocations: 2.344 kB / 1.028 GB, free: 54.71 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.7356, allocations: 25.77 kB / 1.028 GB, free: 54.71 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.7356, allocations: 2 kB / 1.028 GB, free: 54.71 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002623/0.7359, allocations: 68.2 kB / 1.028 GB, free: 54.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.592e-05/0.7359, allocations: 10.53 kB / 1.028 GB, free: 54.69 MB / 0.698 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.993e-05/0.736, allocations: 132 kB / 1.028 GB, free: 54.57 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.594e-05/0.7361, allocations: 9.703 kB / 1.028 GB, free: 54.56 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004418/0.7365, allocations: 197.5 kB / 1.028 GB, free: 54.48 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.7365, allocations: 7.094 kB / 1.028 GB, free: 54.48 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.7365, allocations: 0 / 1.028 GB, free: 54.48 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.7365, allocations: 0 / 1.028 GB, free: 54.48 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005741/0.7371, allocations: 474.8 kB / 1.029 GB, free: 54.12 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.7371, allocations: 0.6094 kB / 1.029 GB, free: 54.12 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001069/0.7372, allocations: 30.27 kB / 1.029 GB, free: 54.12 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.123e-06/0.7373, allocations: 0 / 1.029 GB, free: 54.12 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.62e-05/0.7373, allocations: 13.64 kB / 1.029 GB, free: 54.11 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.7373, allocations: 0 / 1.029 GB, free: 54.11 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.7373, allocations: 3.938 kB / 1.029 GB, free: 54.11 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000414/0.7377, allocations: 273.6 kB / 1.029 GB, free: 53.95 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.494e-05/0.7377, allocations: 86.05 kB / 1.029 GB, free: 53.85 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.374e-05/0.7378, allocations: 8.656 kB / 1.029 GB, free: 53.84 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.7379, allocations: 19.86 kB / 1.029 GB, free: 53.84 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.713e-05/0.738, allocations: 22.05 kB / 1.029 GB, free: 53.83 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.738, allocations: 2.75 kB / 1.029 GB, free: 53.83 MB / 0.698 GB Notification: Performance of sorting global known variables: time 4.382e-05/0.738, allocations: 102.6 kB / 1.029 GB, free: 53.75 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.738, allocations: 0 / 1.029 GB, free: 53.75 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002559/0.7383, allocations: 30.38 kB / 1.029 GB, free: 53.74 MB / 0.698 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.0002049/0.7385, allocations: 110 kB / 1.029 GB, free: 53.66 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0006257/0.7392, allocations: 254.2 kB / 1.03 GB, free: 53.54 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.7392, allocations: 4.062 kB / 1.03 GB, free: 53.54 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002092/0.7394, allocations: 77.39 kB / 1.03 GB, free: 53.52 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002811/0.7397, allocations: 18.86 kB / 1.03 GB, free: 53.52 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004139/0.7401, allocations: 230.3 kB / 1.03 GB, free: 53.33 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001322/0.7402, allocations: 0.6966 MB / 1.031 GB, free: 52.64 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 5.16e-05/0.7403, allocations: 17.8 kB / 1.031 GB, free: 52.63 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.657e-05/0.7403, allocations: 14.59 kB / 1.031 GB, free: 52.62 MB / 0.698 GB Notification: Performance of SimCode: time 2.11e-07/0.7403, allocations: 0 / 1.031 GB, free: 52.62 MB / 0.698 GB Notification: Performance of Templates: time 0.004468/0.7448, allocations: 1.702 MB / 1.032 GB, free: 52.51 MB / 0.698 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (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 & ./Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)