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"}) Notification: Performance of loadModel(Modelica_StateGraph2): time 2.138/2.138, allocations: 208.5 MB / 216 MB, free: 10.16 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.389e-05/2.391e-05, allocations: 4 kB / 269.6 MB, free: 4.477 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1023, allocations: 47.77 MB / 317.4 MB, free: 4.609 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4098/0.5121, allocations: 71.11 MB / 388.5 MB, free: 15.61 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001634/0.5123, allocations: 47.98 kB / 388.5 MB, free: 15.59 MB / 314.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: Performance of FrontEnd - DAE generated: time 0.01582/0.5282, allocations: 3.993 MB / 392.5 MB, free: 12.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.5282, allocations: 4 kB / 392.5 MB, free: 12.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.33e-05/0.5283, allocations: 4 kB / 392.5 MB, free: 12.27 MB / 314.7 MB 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.0006946/0.529, allocations: 484.5 kB / 393 MB, free: 11.77 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.529, allocations: 8.031 kB / 393 MB, free: 11.77 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.267e-05/0.5291, allocations: 31.62 kB / 393.1 MB, free: 11.73 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000512/0.5297, allocations: 269.5 kB / 393.3 MB, free: 11.45 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.094e-05/0.5297, allocations: 16 kB / 393.3 MB, free: 11.44 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.846e-05/0.5298, allocations: 23.94 kB / 393.4 MB, free: 11.41 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004947/0.5303, allocations: 171.8 kB / 393.5 MB, free: 11.31 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006528/0.531, allocations: 307.1 kB / 393.8 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.531, allocations: 3.984 kB / 393.8 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.488e-05/0.531, allocations: 0 / 393.8 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.5311, allocations: 8 kB / 393.8 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001807/0.5329, allocations: 1.252 MB / 395.1 MB, free: 9.824 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003388/0.5332, allocations: 263 kB / 395.3 MB, free: 9.551 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.273e-05/0.5333, allocations: 40.92 kB / 395.4 MB, free: 9.52 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.291e-05/0.5334, allocations: 81.11 kB / 395.5 MB, free: 9.422 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.5335, allocations: 42.06 kB / 395.5 MB, free: 9.375 MB / 314.7 MB Notification: Performance of pre-optimization done (n=17): time 2.195e-06/0.5335, allocations: 0 / 395.5 MB, free: 9.375 MB / 314.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003766/0.5339, allocations: 116.5 kB / 395.6 MB, free: 9.27 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.055e-05/0.534, allocations: 51.41 kB / 395.7 MB, free: 9.207 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000253/0.5342, allocations: 184.8 kB / 395.8 MB, free: 9.047 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.458e-05/0.5343, allocations: 29.7 kB / 395.9 MB, free: 9.012 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001682/0.5345, allocations: 167.3 kB / 396 MB, free: 8.859 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.943e-05/0.5345, allocations: 35.09 kB / 396.1 MB, free: 8.832 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.047e-05/0.5345, allocations: 4 kB / 396.1 MB, free: 8.828 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002142/0.5348, allocations: 334.5 kB / 396.4 MB, free: 8.5 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.5349, allocations: 47.3 kB / 396.4 MB, free: 8.469 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002168/0.5351, allocations: 145.2 kB / 396.6 MB, free: 8.301 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000181/0.5353, allocations: 61.06 kB / 396.7 MB, free: 8.258 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.778e-06/0.5353, allocations: 0 / 396.7 MB, free: 8.258 MB / 314.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004854/0.5358, allocations: 204.4 kB / 396.8 MB, free: 8.078 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.5359, allocations: 4 kB / 396.9 MB, free: 8.074 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.382e-05/0.5359, allocations: 4 kB / 396.9 MB, free: 8.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.593e-05/0.5359, allocations: 15.94 kB / 396.9 MB, free: 8.055 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.536, allocations: 15.92 kB / 396.9 MB, free: 8.039 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.354e-05/0.5361, allocations: 8 kB / 396.9 MB, free: 8.031 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001575/0.5362, allocations: 7.984 kB / 396.9 MB, free: 8.023 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.526e-05/0.5363, allocations: 15.94 kB / 396.9 MB, free: 8.012 MB / 314.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.0001419/0.5364, allocations: 128 kB / 397 MB, free: 7.883 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002875/0.5367, allocations: 119 kB / 397.2 MB, free: 7.777 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.646e-05/0.5368, allocations: 15.81 kB / 397.2 MB, free: 7.762 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003284/0.5371, allocations: 126.6 kB / 397.3 MB, free: 7.652 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.5371, allocations: 4 kB / 397.3 MB, free: 7.648 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.5372, allocations: 0 / 397.3 MB, free: 7.648 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.5372, allocations: 0 / 397.3 MB, free: 7.648 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007476/0.5379, allocations: 438.9 kB / 397.7 MB, free: 7.234 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.5379, allocations: 0 / 397.7 MB, free: 7.234 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.669e-05/0.538, allocations: 4 kB / 397.7 MB, free: 7.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.389e-06/0.538, allocations: 0 / 397.7 MB, free: 7.23 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.538, allocations: 3.984 kB / 397.7 MB, free: 7.227 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/0.538, allocations: 7.938 kB / 397.7 MB, free: 7.219 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.538, allocations: 0 / 397.7 MB, free: 7.219 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003196/0.5384, allocations: 222 kB / 398 MB, free: 7.004 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.021e-05/0.5385, allocations: 96.03 kB / 398.1 MB, free: 6.895 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.518e-05/0.5385, allocations: 4 kB / 398.1 MB, free: 6.891 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.5387, allocations: 3.984 kB / 398.1 MB, free: 6.887 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.427e-05/0.5388, allocations: 15.8 kB / 398.1 MB, free: 6.875 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.692e-05/0.5388, allocations: 4 kB / 398.1 MB, free: 6.871 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001265/0.5389, allocations: 131.5 kB / 398.2 MB, free: 6.758 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5389, allocations: 0 / 398.2 MB, free: 6.758 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004286/0.5394, allocations: 28 kB / 398.2 MB, free: 6.73 MB / 314.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.0006886/0.5401, allocations: 0.7619 MB / 399 MB, free: 5.961 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000313/0.5404, allocations: 121.7 kB / 399.1 MB, free: 5.875 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.5404, allocations: 4.312 kB / 399.1 MB, free: 5.871 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.5405, allocations: 43.31 kB / 399.2 MB, free: 5.84 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002748/0.5408, allocations: 19.97 kB / 399.2 MB, free: 5.82 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009432/0.5418, allocations: 318.4 kB / 399.5 MB, free: 5.5 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004156/0.5422, allocations: 0.7633 MB / 400.3 MB, free: 4.711 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001285/0.5424, allocations: 26.06 kB / 400.3 MB, free: 4.684 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000135/0.5425, allocations: 77.22 kB / 400.4 MB, free: 4.656 MB / 314.7 MB Notification: Performance of SimCode: time 7.92e-07/0.5425, allocations: 0 / 400.4 MB, free: 4.656 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0488/0.5913, allocations: 3.133 MB / 403.5 MB, free: 1.52 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002836/0.5917, allocations: 146.9 kB / 403.6 MB, free: 1.332 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.6/3.191, allocations: 0 / 403.6 MB, free: 1.332 MB / 314.7 MB