Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence.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.Sequence,fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2_Examples_BasicStateGraphs_Sequence",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.943/1.943, allocations: 208.4 MB / 215.7 MB, free: 32 kB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1311/2.074, allocations: 53.4 MB / 269.1 MB, free: 10.53 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/2.303, allocations: 47.77 MB / 316.9 MB, free: 15.14 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1693/2.473, allocations: 71.06 MB / 388 MB, free: 7.977 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002062/2.473, allocations: 47.98 kB / 388 MB, free: 7.93 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.01957/2.492, allocations: 4.144 MB / 392.1 MB, free: 3.723 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/2.493, allocations: 8 kB / 392.1 MB, free: 3.715 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/2.493, allocations: 35.61 kB / 392.2 MB, free: 3.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006459/2.493, allocations: 275.3 kB / 392.5 MB, free: 3.371 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.148e-05/2.493, allocations: 12 kB / 392.5 MB, free: 3.359 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.232e-05/2.493, allocations: 16 kB / 392.5 MB, free: 3.344 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006199/2.494, allocations: 173.3 kB / 392.7 MB, free: 3.172 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007922/2.495, allocations: 314.2 kB / 393 MB, free: 2.828 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/2.495, allocations: 0 / 393 MB, free: 2.828 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.655e-05/2.495, allocations: 4 kB / 393 MB, free: 2.824 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.721e-05/2.495, allocations: 8 kB / 393 MB, free: 2.816 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002409/2.497, allocations: 1.249 MB / 394.2 MB, free: 1.477 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004037/2.498, allocations: 253.1 kB / 394.5 MB, free: 1.184 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001122/2.498, allocations: 40.86 kB / 394.5 MB, free: 1.141 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000125/2.498, allocations: 93.41 kB / 394.6 MB, free: 1.031 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.241e-05/2.498, allocations: 34.47 kB / 394.6 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 6.752e-06/2.498, allocations: 0 / 394.6 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004395/2.499, allocations: 113.4 kB / 394.7 MB, free: 0.8711 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/2.499, allocations: 51.41 kB / 394.8 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002986/2.499, allocations: 179 kB / 395 MB, free: 0.625 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.313e-05/2.499, allocations: 33.7 kB / 395 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001487/2.499, allocations: 167.9 kB / 395.2 MB, free: 428 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.843e-05/2.499, allocations: 35.59 kB / 395.2 MB, free: 392 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.066e-05/2.499, allocations: 0 / 395.2 MB, free: 392 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001625/2.5, allocations: 330.8 kB / 395.5 MB, free: 52 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001544/2.5, allocations: 40 kB / 395.6 MB, free: 12 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002707/2.5, allocations: 145.7 kB / 395.7 MB, free: 15.82 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002121/2.5, allocations: 59.91 kB / 395.8 MB, free: 15.76 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.187e-06/2.5, allocations: 0 / 395.8 MB, free: 15.76 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005991/2.501, allocations: 212.5 kB / 396 MB, free: 15.55 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/2.501, allocations: 11.92 kB / 396 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/2.501, allocations: 4 kB / 396 MB, free: 15.53 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.366e-05/2.501, allocations: 4 kB / 396 MB, free: 15.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/2.501, allocations: 15.94 kB / 396 MB, free: 15.51 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.552e-05/2.501, allocations: 11.89 kB / 396 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001837/2.501, allocations: 4.406 kB / 396 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.354e-05/2.501, allocations: 20 kB / 396 MB, free: 15.48 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.step1.oldActive,step1.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.step3.oldActive,step3.oldActive,step1.active,$PRE.step1.newActive,step1.newActive,step1.outport_fire,T1.condition,T1.enableFire,step2.active,$PRE.step2.newActive,step2.newActive,step2.inport_fire,step2.outport_fire,T2.condition,T2.enableFire,step3.active,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step1.node.resume,step1.node.suspend,step3.outport_fire,step1.inport_fire,step3.inPort[1].checkUnaryConnection,step1.outPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,step2.inPort[1].checkUnaryConnection) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0001537/2.502, allocations: 124 kB / 396.2 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.406e-05/2.502, allocations: 19.75 kB / 396.2 MB, free: 15.33 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004021/2.502, allocations: 123.1 kB / 396.3 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/2.502, allocations: 0 / 396.3 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/2.502, allocations: 4 kB / 396.3 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/2.502, allocations: 0 / 396.3 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008356/2.503, allocations: 430.7 kB / 396.7 MB, free: 14.74 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/2.503, allocations: 0 / 396.7 MB, free: 14.74 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.75e-05/2.503, allocations: 4 kB / 396.7 MB, free: 14.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/2.503, allocations: 4 kB / 396.7 MB, free: 14.73 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.644e-05/2.503, allocations: 3.984 kB / 396.7 MB, free: 14.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/2.503, allocations: 0 / 396.7 MB, free: 14.73 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/2.503, allocations: 0 / 396.7 MB, free: 14.73 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003536/2.503, allocations: 218.4 kB / 396.9 MB, free: 14.5 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005123/2.504, allocations: 0.5739 MB / 397.5 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/2.504, allocations: 100.9 kB / 397.6 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.722e-05/2.504, allocations: 3.938 kB / 397.6 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001488/2.504, allocations: 0 / 397.6 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.659e-05/2.504, allocations: 19.97 kB / 397.6 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/2.504, allocations: 8 kB / 397.7 MB, free: 13.76 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001623/2.505, allocations: 128.2 kB / 397.8 MB, free: 13.63 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001352/2.506, allocations: 28 kB / 397.8 MB, free: 13.61 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: 17 (step1.outport_fire,step2.outport_fire,step1.active,step1.newActive,step1.oldActive,T1.condition,T1.enableFire,step2.active,step2.newActive,step2.oldActive,step2.inport_fire,T2.condition,T2.enableFire,step3.active,step3.newActive,step3.oldActive,step3.inport_fire) * Number of discrete states: 3 (step3.newActive,step2.newActive,step1.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0002315/2.506, allocations: 111.2 kB / 397.9 MB, free: 13.49 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003809/2.507, allocations: 120.7 kB / 398 MB, free: 13.37 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/2.507, allocations: 4.062 kB / 398 MB, free: 13.37 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001205/2.507, allocations: 43.94 kB / 398.1 MB, free: 13.32 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002916/2.507, allocations: 20.03 kB / 398.1 MB, free: 13.3 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009991/2.508, allocations: 260.5 kB / 398.4 MB, free: 13.02 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000738/2.509, allocations: 0.7863 MB / 399.1 MB, free: 12.2 MB / 346.7 MB Notification: Performance of SimCode: time 1.463e-06/2.509, allocations: 0 / 399.1 MB, free: 12.2 MB / 346.7 MB