Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.292/4.292, allocations: 433.2 MB / 440.7 MB, free: 4.566 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.851e-05/2.86e-05, allocations: 6.219 kB / 0.5325 GB, free: 12.68 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2071/0.2071, allocations: 98.73 MB / 0.6289 GB, free: 9.09 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2304/0.4376, allocations: 124.2 MB / 0.7502 GB, free: 12.68 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002887/0.4379, allocations: 71.95 kB / 0.7503 GB, free: 12.61 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.005968/0.4439, allocations: 1.345 MB / 0.7516 GB, free: 11.26 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.603e-06/0.4439, allocations: 0 / 0.7516 GB, free: 11.26 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.235e-06/0.444, allocations: 0 / 0.7516 GB, free: 11.26 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008178/0.4448, allocations: 410.2 kB / 0.752 GB, free: 10.82 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.4449, allocations: 8.031 kB / 0.752 GB, free: 10.81 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.76e-05/0.4449, allocations: 15.86 kB / 0.752 GB, free: 10.79 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001778/0.4451, allocations: 179 kB / 0.7522 GB, free: 10.58 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.83e-05/0.4452, allocations: 0 / 0.7522 GB, free: 10.58 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.746e-05/0.4452, allocations: 4 kB / 0.7522 GB, free: 10.57 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001829/0.4454, allocations: 47.98 kB / 0.7523 GB, free: 10.53 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001748/0.4456, allocations: 61.67 kB / 0.7523 GB, free: 10.46 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.4456, allocations: 3.938 kB / 0.7523 GB, free: 10.46 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.006e-05/0.4456, allocations: 4 kB / 0.7523 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.4456, allocations: 0 / 0.7523 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008127/0.4465, allocations: 329.2 kB / 0.7526 GB, free: 10.09 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006153/0.4471, allocations: 126.6 kB / 0.7528 GB, free: 9.961 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.441e-05/0.4472, allocations: 24.86 kB / 0.7528 GB, free: 9.934 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.496e-05/0.4472, allocations: 3.984 kB / 0.7528 GB, free: 9.93 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002054/0.4475, allocations: 83.27 kB / 0.7529 GB, free: 9.836 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 2.385e-06/0.4475, allocations: 4 kB / 0.7529 GB, free: 9.832 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0003043/0.4478, allocations: 97.72 kB / 0.753 GB, free: 9.73 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.155e-05/0.4478, allocations: 59.34 kB / 0.753 GB, free: 9.66 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.448, allocations: 117.1 kB / 0.7531 GB, free: 9.535 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.515e-05/0.448, allocations: 29.7 kB / 0.7532 GB, free: 9.5 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.523e-05/0.4481, allocations: 92.14 kB / 0.7533 GB, free: 9.406 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 5.043e-05/0.4482, allocations: 31.62 kB / 0.7533 GB, free: 9.375 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.091e-05/0.4482, allocations: 0 / 0.7533 GB, free: 9.375 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.4483, allocations: 318.8 kB / 0.7536 GB, free: 9.055 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.559e-05/0.4484, allocations: 32 kB / 0.7536 GB, free: 9.023 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001258/0.4486, allocations: 51.44 kB / 0.7537 GB, free: 8.961 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.681e-05/0.4487, allocations: 27.92 kB / 0.7537 GB, free: 8.934 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.4487, allocations: 0 / 0.7537 GB, free: 8.934 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002861/0.449, allocations: 113.4 kB / 0.7538 GB, free: 8.816 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.449, allocations: 12.09 kB / 0.7538 GB, free: 8.805 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.449, allocations: 0 / 0.7538 GB, free: 8.805 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.4491, allocations: 0 / 0.7538 GB, free: 8.805 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000238/0.4493, allocations: 27.92 kB / 0.7538 GB, free: 8.777 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.334e-05/0.4493, allocations: 11.94 kB / 0.7539 GB, free: 8.766 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000232/0.4496, allocations: 27.92 kB / 0.7539 GB, free: 8.738 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.996e-05/0.4496, allocations: 4 kB / 0.7539 GB, free: 8.734 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$PRE.booPul1.pulseStart,booPul1.pulseStart,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,triggeredSampler.trigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * 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.0001333/0.4498, allocations: 120.8 kB / 0.754 GB, free: 8.609 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002322/0.45, allocations: 97.52 kB / 0.7541 GB, free: 8.508 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.319e-05/0.45, allocations: 7.906 kB / 0.7541 GB, free: 8.5 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002883/0.4503, allocations: 106.2 kB / 0.7542 GB, free: 8.387 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.4504, allocations: 0 / 0.7542 GB, free: 8.387 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.4504, allocations: 3.938 kB / 0.7542 GB, free: 8.383 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.4504, allocations: 4 kB / 0.7542 GB, free: 8.379 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005426/0.4509, allocations: 347.5 kB / 0.7545 GB, free: 7.996 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.451, allocations: 0 / 0.7545 GB, free: 7.996 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001939/0.4512, allocations: 23.98 kB / 0.7546 GB, free: 7.973 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.653e-06/0.4512, allocations: 3.953 kB / 0.7546 GB, free: 7.969 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.4512, allocations: 3.984 kB / 0.7546 GB, free: 7.965 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.4512, allocations: 0 / 0.7546 GB, free: 7.965 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.665e-06/0.4512, allocations: 8 kB / 0.7546 GB, free: 7.957 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002974/0.4515, allocations: 203.4 kB / 0.7548 GB, free: 7.742 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.821e-05/0.4516, allocations: 84.95 kB / 0.7549 GB, free: 7.641 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.616e-05/0.4517, allocations: 7.953 kB / 0.7549 GB, free: 7.633 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002631/0.4519, allocations: 27.97 kB / 0.7549 GB, free: 7.605 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.713e-05/0.452, allocations: 15.97 kB / 0.7549 GB, free: 7.59 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/0.4521, allocations: 4 kB / 0.7549 GB, free: 7.586 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 7.501e-05/0.4522, allocations: 95.27 kB / 0.755 GB, free: 7.492 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.1e-07/0.4522, allocations: 0 / 0.755 GB, free: 7.492 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003257/0.4525, allocations: 16 kB / 0.755 GB, free: 7.477 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler.trigger,$whenCondition2,$whenCondition1,booPul1.pulseStart,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,triggeredSampler.y) * Number of discrete states: 3 (zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.0006572/0.4532, allocations: 0.7364 MB / 0.7557 GB, free: 6.715 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002574/0.4534, allocations: 68.55 kB / 0.7558 GB, free: 6.648 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.4535, allocations: 0 / 0.7558 GB, free: 6.648 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001235/0.4536, allocations: 39.98 kB / 0.7558 GB, free: 6.609 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003818/0.454, allocations: 15.95 kB / 0.7558 GB, free: 6.594 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006652/0.4547, allocations: 154.4 kB / 0.756 GB, free: 6.406 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000362/0.4551, allocations: 0.704 MB / 0.7567 GB, free: 5.676 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 9.123e-05/0.4552, allocations: 8.547 kB / 0.7567 GB, free: 5.668 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.82e-05/0.4553, allocations: 27.42 kB / 0.7567 GB, free: 5.645 MB / 0.6355 GB Notification: Performance of SimCode: time 6.91e-07/0.4553, allocations: 0 / 0.7567 GB, free: 5.645 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03976/0.495, allocations: 1.812 MB / 0.7585 GB, free: 3.855 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003367/0.4955, allocations: 157 kB / 0.7586 GB, free: 3.656 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.476/2.971, allocations: 0 / 0.7586 GB, free: 3.656 MB / 0.6355 GB