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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Modelica_StateGraph2 with version 2.0.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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"}) Notification: Performance of loadModel(Modelica_StateGraph2): time 2.635/2.635, allocations: 208.4 MB / 221 MB, free: 15.45 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.81e-05/3.837e-05, allocations: 4.219 kB / 276.1 MB, free: 8.258 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3663/0.3664, allocations: 47.77 MB / 323.9 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1912/0.5577, allocations: 72.24 MB / 396.1 MB, free: 4.84 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002158/0.558, allocations: 55.95 kB / 396.2 MB, free: 4.785 MB / 330.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.03379/0.5918, allocations: 6.584 MB / 402.8 MB, free: 14.17 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.5918, allocations: 0 / 402.8 MB, free: 14.17 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.32e-05/0.5919, allocations: 24.14 kB / 402.8 MB, free: 14.15 MB / 346.7 MB 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.001347/0.5933, allocations: 0.621 MB / 403.4 MB, free: 13.48 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.108e-05/0.5934, allocations: 12.03 kB / 403.4 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002145/0.5936, allocations: 94.52 kB / 403.5 MB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001927/0.5938, allocations: 63.33 kB / 403.6 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009603/0.5948, allocations: 362.3 kB / 403.9 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001052/0.5949, allocations: 53.27 kB / 404 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001754/0.5951, allocations: 56 kB / 404.1 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001851/0.597, allocations: 0.6342 MB / 404.7 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.212e-05/0.5971, allocations: 7.938 kB / 404.7 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.252e-05/0.5972, allocations: 28 kB / 404.7 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.341e-05/0.5972, allocations: 16 kB / 404.7 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001236/0.5985, allocations: 383.8 kB / 405.1 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004725/0.6032, allocations: 2.513 MB / 407.6 MB, free: 8.996 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007674/0.6041, allocations: 457.3 kB / 408.1 MB, free: 8.477 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002494/0.6044, allocations: 93.72 kB / 408.2 MB, free: 8.379 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001491/0.6059, allocations: 0.8586 MB / 409 MB, free: 7.434 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003426/0.6063, allocations: 120.4 kB / 409.1 MB, free: 7.305 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 4.318e-06/0.6063, allocations: 3.938 kB / 409.1 MB, free: 7.301 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006153/0.6069, allocations: 217.2 kB / 409.4 MB, free: 7.082 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.123e-05/0.607, allocations: 59.41 kB / 409.4 MB, free: 7.012 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005664/0.6076, allocations: 282.6 kB / 409.7 MB, free: 6.73 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.589e-05/0.6077, allocations: 37.7 kB / 409.7 MB, free: 6.688 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002862/0.608, allocations: 248.4 kB / 410 MB, free: 6.438 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.6081, allocations: 71.22 kB / 410 MB, free: 6.367 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.743e-05/0.6081, allocations: 8 kB / 410 MB, free: 6.359 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001888/0.6083, allocations: 342.8 kB / 410.4 MB, free: 6.016 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002658/0.6086, allocations: 85.11 kB / 410.5 MB, free: 5.934 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004363/0.6091, allocations: 265.4 kB / 410.7 MB, free: 5.59 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003278/0.6094, allocations: 111.9 kB / 410.8 MB, free: 5.48 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-05/0.6094, allocations: 3.984 kB / 410.8 MB, free: 5.477 MB / 346.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001019/0.6105, allocations: 401.2 kB / 411.2 MB, free: 5.078 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.485e-05/0.6105, allocations: 12.12 kB / 411.2 MB, free: 5.066 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.547e-05/0.6106, allocations: 4 kB / 411.2 MB, free: 5.062 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.67e-05/0.6106, allocations: 12 kB / 411.3 MB, free: 5.051 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002398/0.6109, allocations: 47.8 kB / 411.3 MB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.301e-05/0.6109, allocations: 11.94 kB / 411.3 MB, free: 4.992 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003782/0.6113, allocations: 27.89 kB / 411.3 MB, free: 4.965 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.49e-05/0.6114, allocations: 20 kB / 411.4 MB, free: 4.945 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.0002213/0.6116, allocations: 166 kB / 411.5 MB, free: 4.777 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.712e-05/0.6117, allocations: 27.62 kB / 411.6 MB, free: 4.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006624/0.6124, allocations: 228.9 kB / 411.8 MB, free: 4.508 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.377e-06/0.6124, allocations: 4 kB / 411.8 MB, free: 4.504 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.6124, allocations: 3.953 kB / 411.8 MB, free: 4.5 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.6124, allocations: 0 / 411.8 MB, free: 4.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001664/0.6141, allocations: 0.7178 MB / 412.5 MB, free: 3.727 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.6142, allocations: 0 / 412.5 MB, free: 3.727 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.608e-05/0.6143, allocations: 8 kB / 412.5 MB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.354e-05/0.6143, allocations: 3.953 kB / 412.5 MB, free: 3.715 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.896e-05/0.6143, allocations: 7.984 kB / 412.5 MB, free: 3.707 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.338e-06/0.6144, allocations: 4 kB / 412.5 MB, free: 3.703 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.6144, allocations: 0 / 412.5 MB, free: 3.703 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006129/0.615, allocations: 303.4 kB / 412.8 MB, free: 3.391 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002127/0.6152, allocations: 120.6 kB / 412.9 MB, free: 3.254 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.798e-05/0.6153, allocations: 11.95 kB / 413 MB, free: 3.242 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000195/0.6155, allocations: 11.98 kB / 413 MB, free: 3.23 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.6157, allocations: 23.97 kB / 413 MB, free: 3.207 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.46e-05/0.6157, allocations: 12 kB / 413 MB, free: 3.195 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002717/0.616, allocations: 171.1 kB / 413.2 MB, free: 3.031 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.616, allocations: 0 / 413.2 MB, free: 3.031 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006338/0.6167, allocations: 71.94 kB / 413.2 MB, free: 2.961 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.001106/0.6178, allocations: 0.851 MB / 414.1 MB, free: 2.086 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000719/0.6186, allocations: 249.3 kB / 414.3 MB, free: 1.844 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.6186, allocations: 0 / 414.3 MB, free: 1.844 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002378/0.6188, allocations: 87.88 kB / 414.4 MB, free: 1.758 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004269/0.6193, allocations: 32.5 kB / 414.4 MB, free: 1.727 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001974/0.6213, allocations: 0.5491 MB / 415 MB, free: 1.141 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005814/0.6219, allocations: 0.8543 MB / 415.9 MB, free: 268 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002956/0.6222, allocations: 51.23 kB / 415.9 MB, free: 216 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003055/0.6226, allocations: 147.4 kB / 416 MB, free: 68 kB / 346.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6226, allocations: 0 / 416 MB, free: 68 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04178/0.6644, allocations: 5.768 MB / 421.8 MB, free: 10.34 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003987/0.6648, allocations: 182.2 kB / 422 MB, free: 10.11 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.096/3.761, allocations: 64 / 422 MB, free: 10.11 MB / 362.7 MB