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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Buildings): time 4.338/4.338, allocations: 433 MB / 440.3 MB, free: 4.832 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5214/4.859, allocations: 104.3 MB / 0.5319 GB, free: 12.91 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2447/5.104, allocations: 98.72 MB / 0.6283 GB, free: 9.824 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2537/5.358, allocations: 124.2 MB / 0.7496 GB, free: 13.47 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002925/5.358, allocations: 79.58 kB / 0.7496 GB, free: 13.4 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.00763/5.366, allocations: 1.479 MB / 0.7511 GB, free: 11.88 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/5.366, allocations: 12 kB / 0.7511 GB, free: 11.86 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.153e-05/5.366, allocations: 11.84 kB / 0.7511 GB, free: 11.85 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001891/5.366, allocations: 178.9 kB / 0.7513 GB, free: 11.64 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.222e-05/5.366, allocations: 0 / 0.7513 GB, free: 11.64 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.151e-05/5.366, allocations: 4 kB / 0.7513 GB, free: 11.63 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001978/5.366, allocations: 39.98 kB / 0.7513 GB, free: 11.59 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000195/5.366, allocations: 69.67 kB / 0.7514 GB, free: 11.52 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/5.367, allocations: 0 / 0.7514 GB, free: 11.52 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.488e-05/5.367, allocations: 4 kB / 0.7514 GB, free: 11.52 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/5.367, allocations: 3.938 kB / 0.7514 GB, free: 11.51 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008007/5.367, allocations: 325.2 kB / 0.7517 GB, free: 11.16 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002941/5.368, allocations: 74.61 kB / 0.7518 GB, free: 11.07 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.088e-05/5.368, allocations: 24.86 kB / 0.7518 GB, free: 11.05 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.485e-05/5.368, allocations: 4 kB / 0.7518 GB, free: 11.04 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001778/5.368, allocations: 79.36 kB / 0.7519 GB, free: 10.95 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 3.246e-06/5.368, allocations: 0 / 0.7519 GB, free: 10.95 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0003223/5.368, allocations: 93.47 kB / 0.752 GB, free: 10.86 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/5.368, allocations: 55.59 kB / 0.752 GB, free: 10.79 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001365/5.369, allocations: 121.1 kB / 0.7521 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.478e-05/5.369, allocations: 25.7 kB / 0.7522 GB, free: 10.63 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/5.369, allocations: 92.12 kB / 0.7522 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.688e-05/5.369, allocations: 23.66 kB / 0.7523 GB, free: 10.51 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.102e-05/5.369, allocations: 0 / 0.7523 GB, free: 10.51 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001646/5.369, allocations: 326.7 kB / 0.7526 GB, free: 10.18 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.793e-05/5.369, allocations: 28 kB / 0.7526 GB, free: 10.16 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/5.369, allocations: 55.42 kB / 0.7527 GB, free: 10.09 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001099/5.369, allocations: 23.94 kB / 0.7527 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/5.369, allocations: 4 kB / 0.7527 GB, free: 10.06 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003118/5.37, allocations: 113.5 kB / 0.7528 GB, free: 9.945 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/5.37, allocations: 4 kB / 0.7528 GB, free: 9.941 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/5.37, allocations: 4.094 kB / 0.7528 GB, free: 9.938 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/5.37, allocations: 4 kB / 0.7528 GB, free: 9.934 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002996/5.37, allocations: 31.91 kB / 0.7528 GB, free: 9.902 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/5.37, allocations: 0 / 0.7528 GB, free: 9.902 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000276/5.37, allocations: 31.89 kB / 0.7529 GB, free: 9.871 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2e-05/5.37, allocations: 4 kB / 0.7529 GB, free: 9.867 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.0001227/5.371, allocations: 116.8 kB / 0.753 GB, free: 9.746 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.235e-05/5.371, allocations: 11.91 kB / 0.753 GB, free: 9.734 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000319/5.371, allocations: 101.9 kB / 0.7531 GB, free: 9.625 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/5.371, allocations: 8 kB / 0.7531 GB, free: 9.617 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/5.371, allocations: 3.906 kB / 0.7531 GB, free: 9.613 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.77e-06/5.371, allocations: 0 / 0.7531 GB, free: 9.613 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005802/5.372, allocations: 347 kB / 0.7534 GB, free: 9.23 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/5.372, allocations: 0 / 0.7534 GB, free: 9.23 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000238/5.372, allocations: 31.97 kB / 0.7535 GB, free: 9.199 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/5.372, allocations: 0 / 0.7535 GB, free: 9.199 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/5.372, allocations: 0 / 0.7535 GB, free: 9.199 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/5.372, allocations: 0 / 0.7535 GB, free: 9.199 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/5.372, allocations: 0 / 0.7535 GB, free: 9.199 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002916/5.372, allocations: 191.4 kB / 0.7536 GB, free: 8.996 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004258/5.373, allocations: 0.5627 MB / 0.7542 GB, free: 8.414 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.243e-05/5.373, allocations: 81.02 kB / 0.7543 GB, free: 8.316 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.845e-05/5.373, allocations: 3.938 kB / 0.7543 GB, free: 8.312 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003218/5.373, allocations: 31.97 kB / 0.7543 GB, free: 8.281 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.606e-05/5.373, allocations: 15.97 kB / 0.7543 GB, free: 8.266 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-05/5.373, allocations: 7.984 kB / 0.7543 GB, free: 8.258 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0001004/5.373, allocations: 91.28 kB / 0.7544 GB, free: 8.168 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001155/5.375, allocations: 27.84 kB / 0.7544 GB, free: 8.141 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.0001806/5.375, allocations: 106 kB / 0.7545 GB, free: 8.031 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003075/5.375, allocations: 75.92 kB / 0.7546 GB, free: 7.957 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/5.375, allocations: 0 / 0.7546 GB, free: 7.957 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001385/5.375, allocations: 39.94 kB / 0.7547 GB, free: 7.918 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003937/5.376, allocations: 12.17 kB / 0.7547 GB, free: 7.906 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000611/5.376, allocations: 128 kB / 0.7548 GB, free: 7.762 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004602/5.377, allocations: 0.7153 MB / 0.7555 GB, free: 7.02 MB / 0.6355 GB Notification: Performance of SimCode: time 1.543e-06/5.377, allocations: 7.938 kB / 0.7555 GB, free: 7.012 MB / 0.6355 GB