Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.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,fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2_Examples_BasicStateGraphs_FirstExample",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.223/2.223, allocations: 208.4 MB / 215.7 MB, free: 16 kB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1546/2.378, allocations: 53.41 MB / 269.1 MB, free: 10.51 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3281/2.706, allocations: 47.76 MB / 316.9 MB, free: 15.13 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1901/2.896, allocations: 71.06 MB / 388 MB, free: 7.965 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002278/2.897, allocations: 47.98 kB / 388 MB, free: 7.918 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.02917/2.926, allocations: 5.034 MB / 393 MB, free: 2.812 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.687e-05/2.926, allocations: 8 kB / 393 MB, free: 2.805 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002412/2.926, allocations: 51.42 kB / 393.1 MB, free: 2.754 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001172/2.927, allocations: 302.6 kB / 393.4 MB, free: 2.418 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.322e-05/2.928, allocations: 16 kB / 393.4 MB, free: 2.402 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001272/2.928, allocations: 24 kB / 393.4 MB, free: 2.379 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001347/2.929, allocations: 249.4 kB / 393.7 MB, free: 2.137 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001648/2.931, allocations: 411.7 kB / 394.1 MB, free: 1.695 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.104e-05/2.931, allocations: 0 / 394.1 MB, free: 1.695 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.378e-05/2.931, allocations: 0 / 394.1 MB, free: 1.695 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.789e-05/2.931, allocations: 12 kB / 394.1 MB, free: 1.684 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004608/2.936, allocations: 1.766 MB / 395.8 MB, free: 15.76 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007708/2.937, allocations: 374.6 kB / 396.2 MB, free: 15.33 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002154/2.937, allocations: 53.23 kB / 396.3 MB, free: 15.27 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001739/2.937, allocations: 89.34 kB / 396.4 MB, free: 15.17 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003499/2.937, allocations: 104.2 kB / 396.5 MB, free: 15.05 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 3.957e-06/2.937, allocations: 4 kB / 396.5 MB, free: 15.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007358/2.938, allocations: 141.1 kB / 396.6 MB, free: 14.91 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/2.938, allocations: 106.8 kB / 396.7 MB, free: 14.78 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00051/2.939, allocations: 229.6 kB / 396.9 MB, free: 14.55 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.316e-05/2.939, allocations: 29.7 kB / 397 MB, free: 14.51 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002825/2.939, allocations: 180.4 kB / 397.1 MB, free: 14.33 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/2.939, allocations: 51.34 kB / 397.2 MB, free: 14.28 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.449e-05/2.939, allocations: 0 / 397.2 MB, free: 14.28 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002282/2.94, allocations: 338.8 kB / 397.5 MB, free: 13.94 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002746/2.94, allocations: 56.88 kB / 397.6 MB, free: 13.89 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005233/2.94, allocations: 208.8 kB / 397.8 MB, free: 13.62 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004713/2.941, allocations: 87.8 kB / 397.9 MB, free: 13.53 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.176e-05/2.941, allocations: 4 kB / 397.9 MB, free: 13.53 MB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00116/2.942, allocations: 257 kB / 398.1 MB, free: 13.27 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/2.942, allocations: 4 kB / 398.1 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.028e-05/2.942, allocations: 4 kB / 398.1 MB, free: 13.26 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.773e-05/2.942, allocations: 8.594 kB / 398.1 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/2.942, allocations: 31.77 kB / 398.2 MB, free: 13.22 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.555e-05/2.943, allocations: 11.98 kB / 398.2 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005191/2.943, allocations: 12 kB / 398.2 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.321e-05/2.943, allocations: 16 kB / 398.2 MB, free: 13.18 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 46 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.initialStep.oldActive,initialStep.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.step3.oldActive,step3.oldActive,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.newActive,initialStep.newActive,initialStep.inport_fire,initialStep.outport_fire,T1.condition,T1.enableFire,$PRE.step2.newActive,step2.newActive,step2.inport_fire,step2.outport_fire,T2.fire,T2.enableFire,$PRE.T2.t_start,T2.t_start,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.enableFire,$PRE.T3.t_start,T3.t_start,initialStep.node.resume,initialStep.node.suspend,T3.condition,T2.condition,initialStep.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,T2.outPort.checkOneDelayedTransitionPerLoop,step3.outPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,step2.inPort[1].checkUnaryConnection) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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.0002715/2.943, allocations: 150.1 kB / 398.3 MB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.78e-05/2.944, allocations: 19.72 kB / 398.4 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007973/2.944, allocations: 155.2 kB / 398.5 MB, free: 12.85 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/2.944, allocations: 0 / 398.5 MB, free: 12.85 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/2.944, allocations: 0 / 398.5 MB, free: 12.85 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.534e-05/2.944, allocations: 3.906 kB / 398.5 MB, free: 12.85 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001798/2.946, allocations: 0.5226 MB / 399 MB, free: 12.28 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.301e-06/2.946, allocations: 0 / 399 MB, free: 12.28 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.462e-05/2.946, allocations: 11.92 kB / 399.1 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-05/2.946, allocations: 3.906 kB / 399.1 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.519e-05/2.946, allocations: 3.938 kB / 399.1 MB, free: 12.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.172e-06/2.946, allocations: 0 / 399.1 MB, free: 12.26 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.405e-06/2.946, allocations: 4 kB / 399.1 MB, free: 12.26 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006925/2.947, allocations: 243.6 kB / 399.3 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008557/2.948, allocations: 0.6127 MB / 399.9 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002088/2.948, allocations: 108.8 kB / 400 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.772e-05/2.948, allocations: 0 / 400 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004129/2.949, allocations: 19.92 kB / 400 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000179/2.949, allocations: 27.81 kB / 400.1 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.391e-05/2.949, allocations: 4 kB / 400.1 MB, free: 11.2 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0002551/2.949, allocations: 135.2 kB / 400.2 MB, free: 11.06 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002786/2.952, allocations: 44 kB / 400.2 MB, free: 11.02 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 (initialStep.inport_fire,initialStep.outport_fire,step2.outport_fire,T2.enableFire,T3.enableFire,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,T1.condition,T1.enableFire,step2.newActive,step2.oldActive,step2.inport_fire,T2.fire,T2.t_start,step3.newActive,step3.oldActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.t_start) * Number of discrete states: 3 (step3.newActive,step2.newActive,initialStep.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0003914/2.953, allocations: 112.9 kB / 400.4 MB, free: 10.9 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008596/2.954, allocations: 175.7 kB / 400.5 MB, free: 10.73 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/2.954, allocations: 0 / 400.5 MB, free: 10.73 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00026/2.954, allocations: 67.92 kB / 400.6 MB, free: 10.66 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007027/2.955, allocations: 21.08 kB / 400.6 MB, free: 10.64 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001654/2.956, allocations: 337.1 kB / 400.9 MB, free: 10.29 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008504/2.957, allocations: 0.8223 MB / 401.8 MB, free: 9.441 MB / 346.7 MB Notification: Performance of SimCode: time 1.282e-06/2.957, allocations: 0 / 401.8 MB, free: 9.441 MB / 346.7 MB