Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.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 Modelica_StateGraph2 with version 2.0.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica_StateGraph2 2.0.3/package.mo) Running command: "" <> buildModelFMU(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3,fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2_Examples_BasicStateGraphs_FirstExample_Variant3",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(Modelica_StateGraph2): time 2.054/2.054, allocations: 208.4 MB / 215.7 MB, free: 16 kB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1408/2.195, allocations: 53.4 MB / 269.1 MB, free: 10.52 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/2.433, allocations: 47.77 MB / 316.9 MB, free: 15.12 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.157/2.59, allocations: 71.19 MB / 388.1 MB, free: 7.812 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002078/2.59, allocations: 47.98 kB / 388.1 MB, free: 7.766 MB / 330.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica_StateGraph2 2.0.3/package.mo:12150:5-12156:3:writable] Warning: Usage of non-standard operator (not specified in the Modelica specification): Connections.uniqueRoot. Functionality might be partially supported but is not guaranteed. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.03402/2.624, allocations: 5.266 MB / 393.4 MB, free: 2.422 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.402e-05/2.624, allocations: 8 kB / 393.4 MB, free: 2.414 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002796/2.625, allocations: 43.53 kB / 393.4 MB, free: 2.371 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001235/2.626, allocations: 318.4 kB / 393.8 MB, free: 2.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001445/2.626, allocations: 46.7 kB / 393.8 MB, free: 1.969 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001391/2.626, allocations: 27.94 kB / 393.8 MB, free: 1.941 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001351/2.628, allocations: 265.9 kB / 394.1 MB, free: 1.68 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001696/2.63, allocations: 431.1 kB / 394.5 MB, free: 1.215 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.793e-05/2.63, allocations: 0 / 394.5 MB, free: 1.215 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.178e-05/2.63, allocations: 0 / 394.5 MB, free: 1.215 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.28e-05/2.63, allocations: 12 kB / 394.5 MB, free: 1.203 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004831/2.635, allocations: 1.781 MB / 396.3 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008422/2.636, allocations: 393.1 kB / 396.7 MB, free: 14.83 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002809/2.636, allocations: 70.22 kB / 396.8 MB, free: 14.76 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001716/2.638, allocations: 0.717 MB / 397.5 MB, free: 13.98 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004214/2.638, allocations: 159.4 kB / 397.6 MB, free: 13.8 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 4.899e-06/2.638, allocations: 0 / 397.6 MB, free: 13.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.000761/2.639, allocations: 145.2 kB / 397.8 MB, free: 13.65 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000159/2.639, allocations: 170.4 kB / 397.9 MB, free: 13.45 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005326/2.64, allocations: 225.7 kB / 398.2 MB, free: 13.22 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.285e-05/2.64, allocations: 33.7 kB / 398.2 MB, free: 13.18 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002807/2.64, allocations: 192.2 kB / 398.4 MB, free: 12.99 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/2.64, allocations: 43.5 kB / 398.4 MB, free: 12.95 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.353e-05/2.64, allocations: 0 / 398.4 MB, free: 12.95 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002162/2.64, allocations: 338.8 kB / 398.8 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002943/2.641, allocations: 52.88 kB / 398.8 MB, free: 12.55 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004796/2.641, allocations: 206.9 kB / 399 MB, free: 12.28 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004762/2.642, allocations: 99.8 kB / 399.1 MB, free: 12.18 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-05/2.642, allocations: 3.906 kB / 399.1 MB, free: 12.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001169/2.643, allocations: 265.2 kB / 399.4 MB, free: 11.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.138e-05/2.643, allocations: 8 kB / 399.4 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.982e-05/2.643, allocations: 4 kB / 399.4 MB, free: 11.9 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.051e-05/2.643, allocations: 8 kB / 399.4 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002344/2.643, allocations: 31.86 kB / 399.4 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.041e-05/2.643, allocations: 7.938 kB / 399.4 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004797/2.644, allocations: 24.39 kB / 399.5 MB, free: 11.83 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.746e-05/2.644, allocations: 16 kB / 399.5 MB, free: 11.82 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 47 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.onDelay.u,$PRE.step3.oldActive,step3.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.initialStep.oldActive,initialStep.oldActive,$whenCondition1,$whenCondition2,$whenCondition3,initialStep.active,$PRE.initialStep.newActive,initialStep.newActive,T1.condition,T1.enableFire,$PRE.step2.newActive,step2.newActive,step2.inport_fire,T2.enableFire,T2.conditionPort,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.enableFire,$PRE.T3.t_start,T3.t_start,onDelay.u,$PRE.onDelay.delaySignal,onDelay.delaySignal,$PRE.onDelay.t_next,onDelay.t_next,step3.outPort[1].checkOneDelayedTransitionPerLoop,initialStep.node.resume,initialStep.node.suspend,T3.condition,step3.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,step2.inPort[1].checkUnaryConnection,initialStep.inPort[1].checkUnaryConnection,T2.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 47 * 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.0003256/2.644, allocations: 167.8 kB / 399.6 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/2.645, allocations: 23.72 kB / 399.7 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008277/2.645, allocations: 167.4 kB / 399.8 MB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/2.645, allocations: 8 kB / 399.8 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/2.645, allocations: 0 / 399.8 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.786e-06/2.646, allocations: 0 / 399.8 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001743/2.647, allocations: 0.5221 MB / 400.3 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.014e-05/2.647, allocations: 11.88 kB / 400.4 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.612e-05/2.647, allocations: 3.938 kB / 400.4 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.508e-06/2.647, allocations: 4 kB / 400.4 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.619e-05/2.647, allocations: 11.98 kB / 400.4 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.526e-06/2.648, allocations: 4 kB / 400.4 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/2.648, allocations: 0 / 400.4 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007498/2.648, allocations: 251 kB / 400.6 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009751/2.649, allocations: 0.6283 MB / 401.3 MB, free: 9.922 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002373/2.65, allocations: 112.9 kB / 401.4 MB, free: 9.793 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/2.65, allocations: 7.906 kB / 401.4 MB, free: 9.785 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003619/2.65, allocations: 8 kB / 401.4 MB, free: 9.777 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001485/2.65, allocations: 23.95 kB / 401.4 MB, free: 9.754 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-05/2.65, allocations: 8 kB / 401.4 MB, free: 9.746 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0002634/2.651, allocations: 131.2 kB / 401.5 MB, free: 9.617 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002248/2.653, allocations: 48 kB / 401.6 MB, free: 9.57 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 23 (T3.enableFire,$whenCondition1,$whenCondition2,$whenCondition3,initialStep.active,initialStep.newActive,initialStep.oldActive,T1.condition,T1.enableFire,step2.newActive,step2.oldActive,step2.inport_fire,T2.enableFire,T2.conditionPort,step3.newActive,step3.oldActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.t_start,onDelay.u,onDelay.delaySignal,onDelay.t_next) * Number of discrete states: 7 (initialStep.newActive,step2.newActive,step3.newActive,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * 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.0003708/2.653, allocations: 120.6 kB / 401.7 MB, free: 9.445 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008596/2.654, allocations: 216.5 kB / 401.9 MB, free: 9.23 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/2.654, allocations: 5.25 kB / 401.9 MB, free: 9.227 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003405/2.655, allocations: 113.5 kB / 402 MB, free: 9.109 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004965/2.655, allocations: 26.53 kB / 402.1 MB, free: 9.082 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001715/2.657, allocations: 349.2 kB / 402.4 MB, free: 8.723 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008337/2.658, allocations: 0.8301 MB / 403.2 MB, free: 7.863 MB / 346.7 MB Notification: Performance of SimCode: time 1.923e-06/2.658, allocations: 0 / 403.2 MB, free: 7.863 MB / 346.7 MB