Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.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_Variant4,fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2_Examples_BasicStateGraphs_FirstExample_Variant4",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 1.987/1.987, allocations: 208.4 MB / 215.7 MB, free: 28 kB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1555/2.143, allocations: 53.4 MB / 269.1 MB, free: 10.52 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2259/2.369, allocations: 47.77 MB / 316.9 MB, free: 15.12 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1307/2.499, allocations: 71.51 MB / 388.4 MB, free: 7.504 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001692/2.5, allocations: 51.98 kB / 388.5 MB, free: 7.453 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.02716/2.527, allocations: 6.865 MB / 395.3 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/2.527, allocations: 8 kB / 395.3 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001675/2.527, allocations: 59.34 kB / 395.4 MB, free: 456 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008899/2.528, allocations: 358.2 kB / 395.7 MB, free: 56 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.567e-05/2.528, allocations: 24 kB / 395.8 MB, free: 32 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/2.528, allocations: 40.05 kB / 395.8 MB, free: 15.99 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001127/2.529, allocations: 342.5 kB / 396.1 MB, free: 15.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/2.531, allocations: 0.5606 MB / 396.7 MB, free: 15.04 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.454e-05/2.531, allocations: 3.938 kB / 396.7 MB, free: 15.03 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.337e-05/2.531, allocations: 7.984 kB / 396.7 MB, free: 15.02 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.322e-05/2.531, allocations: 12 kB / 396.7 MB, free: 15.01 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003788/2.535, allocations: 2.399 MB / 399.1 MB, free: 12.46 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006089/2.535, allocations: 441.2 kB / 399.6 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002065/2.536, allocations: 81.72 kB / 399.6 MB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00125/2.537, allocations: 0.8391 MB / 400.5 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002643/2.537, allocations: 116.3 kB / 400.6 MB, free: 10.82 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 3.066e-06/2.537, allocations: 7.875 kB / 400.6 MB, free: 10.81 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005784/2.538, allocations: 173.4 kB / 400.8 MB, free: 10.63 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.031e-05/2.538, allocations: 59.41 kB / 400.8 MB, free: 10.56 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004823/2.538, allocations: 276.6 kB / 401.1 MB, free: 10.29 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.688e-05/2.538, allocations: 29.7 kB / 401.1 MB, free: 10.26 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002185/2.539, allocations: 244.4 kB / 401.4 MB, free: 10.02 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.122e-05/2.539, allocations: 63.25 kB / 401.4 MB, free: 9.953 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.812e-05/2.539, allocations: 0 / 401.4 MB, free: 9.953 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001524/2.539, allocations: 338.8 kB / 401.7 MB, free: 9.613 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002229/2.539, allocations: 73 kB / 401.8 MB, free: 9.543 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003653/2.539, allocations: 247.8 kB / 402.1 MB, free: 9.215 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003886/2.54, allocations: 116.5 kB / 402.2 MB, free: 9.102 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.315e-06/2.54, allocations: 4 kB / 402.2 MB, free: 9.098 MB / 346.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009181/2.541, allocations: 341.5 kB / 402.5 MB, free: 8.758 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/2.541, allocations: 12.03 kB / 402.5 MB, free: 8.746 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/2.541, allocations: 7.938 kB / 402.5 MB, free: 8.738 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.331e-05/2.541, allocations: 12 kB / 402.5 MB, free: 8.727 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002071/2.541, allocations: 35.86 kB / 402.6 MB, free: 8.691 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.792e-05/2.541, allocations: 11.94 kB / 402.6 MB, free: 8.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002926/2.542, allocations: 19.89 kB / 402.6 MB, free: 8.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.142e-05/2.542, allocations: 24 kB / 402.6 MB, free: 8.637 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 55 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.T4.enableFire,$PRE.step4.oldActive,step4.oldActive,$PRE.step3.oldActive,step3.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.initialStep.oldActive,initialStep.oldActive,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.newActive,initialStep.newActive,initialStep.inport_fire,T1.condition,T1.enableFire,$PRE.step2.newActive,step2.newActive,step2.inport_fire,step2.activePort,T2.enableFire,T2.conditionPort,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.activePort,T3.enableFire,$PRE.timer1.entryTime,timer1.entryTime,$PRE.step4.newActive,step4.newActive,step4.inport_fire,step4.outport_fire,T4.enableFire,T4.conditionPort,$PRE.timer2.entryTime,timer2.entryTime,step3.outPort[1].checkOneDelayedTransitionPerLoop,step4.outPort[1].checkOneDelayedTransitionPerLoop,initialStep.node.resume,initialStep.node.suspend,T3.condition,step4.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,step2.inPort[1].checkUnaryConnection,initialStep.inPort[1].checkUnaryConnection,T4.condition,T2.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.0001873/2.542, allocations: 146 kB / 402.8 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.14e-05/2.542, allocations: 27.62 kB / 402.8 MB, free: 8.457 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006266/2.542, allocations: 192.8 kB / 403 MB, free: 8.262 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/2.543, allocations: 3.984 kB / 403 MB, free: 8.258 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/2.543, allocations: 4 kB / 403 MB, free: 8.254 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/2.543, allocations: 0 / 403 MB, free: 8.254 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001235/2.544, allocations: 0.5895 MB / 403.6 MB, free: 7.621 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/2.544, allocations: 0 / 403.6 MB, free: 7.621 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.634e-05/2.544, allocations: 8 kB / 403.6 MB, free: 7.613 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/2.544, allocations: 0 / 403.6 MB, free: 7.613 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/2.544, allocations: 7.984 kB / 403.6 MB, free: 7.605 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.582e-06/2.544, allocations: 3.984 kB / 403.6 MB, free: 7.602 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/2.544, allocations: 0 / 403.6 MB, free: 7.602 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004949/2.544, allocations: 283.3 kB / 403.9 MB, free: 7.309 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006353/2.545, allocations: 0.6402 MB / 404.5 MB, free: 6.648 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001379/2.545, allocations: 120.7 kB / 404.6 MB, free: 6.512 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.536e-05/2.545, allocations: 3.984 kB / 404.6 MB, free: 6.508 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001921/2.546, allocations: 4 kB / 404.7 MB, free: 6.504 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/2.546, allocations: 23.95 kB / 404.7 MB, free: 6.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.723e-05/2.546, allocations: 12 kB / 404.7 MB, free: 6.469 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0002299/2.546, allocations: 165.2 kB / 404.8 MB, free: 6.309 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001379/2.547, allocations: 59.84 kB / 404.9 MB, free: 6.25 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: 27 (initialStep.inport_fire,step3.activePort,step2.activePort,$whenCondition2,$whenCondition1,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,T3.enableFire,timer1.entryTime,step4.newActive,step4.oldActive,step4.inport_fire,step4.outport_fire,T4.enableFire,T4.conditionPort,timer2.entryTime) * Number of discrete states: 4 (initialStep.newActive,step2.newActive,step3.newActive,step4.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0002234/2.548, allocations: 113.2 kB / 405 MB, free: 6.133 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006122/2.548, allocations: 229.3 kB / 405.2 MB, free: 5.91 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/2.548, allocations: 0 / 405.2 MB, free: 5.91 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002023/2.548, allocations: 91.86 kB / 405.3 MB, free: 5.82 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003283/2.549, allocations: 18.38 kB / 405.3 MB, free: 5.805 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/2.55, allocations: 458.1 kB / 405.8 MB, free: 5.324 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006594/2.551, allocations: 0.8887 MB / 406.7 MB, free: 4.41 MB / 346.7 MB Notification: Performance of SimCode: time 1.012e-06/2.551, allocations: 0 / 406.7 MB, free: 4.41 MB / 346.7 MB