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"}) Notification: Performance of loadModel(Modelica_StateGraph2): time 2.114/2.114, allocations: 208.5 MB / 216 MB, free: 10.16 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.138e-05/2.131e-05, allocations: 4 kB / 269.6 MB, free: 4.477 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1065, allocations: 47.77 MB / 317.4 MB, free: 4.605 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4622/0.5688, allocations: 71.59 MB / 389 MB, free: 15.1 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001641/0.569, allocations: 48.23 kB / 389 MB, free: 15.08 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.02747/0.5965, allocations: 6.533 MB / 395.5 MB, free: 9.676 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.449e-06/0.5966, allocations: 4 kB / 395.5 MB, free: 9.672 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.444e-05/0.5966, allocations: 32.08 kB / 395.6 MB, free: 9.641 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.001254/0.5979, allocations: 0.6192 MB / 396.2 MB, free: 9.008 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.101e-05/0.598, allocations: 8.031 kB / 396.2 MB, free: 9 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002093/0.5982, allocations: 63.28 kB / 396.3 MB, free: 8.938 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009289/0.5992, allocations: 360.1 kB / 396.6 MB, free: 8.59 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.026e-05/0.5993, allocations: 27.83 kB / 396.6 MB, free: 8.566 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.5994, allocations: 36 kB / 396.7 MB, free: 8.531 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001029/0.6004, allocations: 337.3 kB / 397 MB, free: 8.32 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001309/0.6018, allocations: 0.5645 MB / 397.6 MB, free: 7.82 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.867e-05/0.6019, allocations: 3.938 kB / 397.6 MB, free: 7.816 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.873e-05/0.602, allocations: 0 / 397.6 MB, free: 7.816 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.523e-05/0.602, allocations: 16 kB / 397.6 MB, free: 7.801 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003985/0.606, allocations: 2.389 MB / 400 MB, free: 5.539 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006067/0.6067, allocations: 458.5 kB / 400.4 MB, free: 5.074 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001838/0.6069, allocations: 85.95 kB / 400.5 MB, free: 5.012 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001166/0.608, allocations: 0.8334 MB / 401.4 MB, free: 4.156 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002646/0.6083, allocations: 118.1 kB / 401.5 MB, free: 4.051 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 3.366e-06/0.6083, allocations: 0 / 401.5 MB, free: 4.051 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005685/0.6089, allocations: 190.2 kB / 401.7 MB, free: 3.887 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.786e-05/0.609, allocations: 63.17 kB / 401.7 MB, free: 3.816 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003885/0.6094, allocations: 277.1 kB / 402 MB, free: 3.594 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.738e-05/0.6094, allocations: 25.7 kB / 402 MB, free: 3.562 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002192/0.6097, allocations: 256.2 kB / 402.3 MB, free: 3.348 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.956e-05/0.6098, allocations: 66.05 kB / 402.3 MB, free: 3.293 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.733e-05/0.6098, allocations: 0 / 402.3 MB, free: 3.293 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.61, allocations: 340.4 kB / 402.7 MB, free: 2.965 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001911/0.6102, allocations: 77.42 kB / 402.7 MB, free: 2.918 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000328/0.6105, allocations: 250.6 kB / 403 MB, free: 2.629 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003371/0.6109, allocations: 107.4 kB / 403.1 MB, free: 2.551 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.09e-05/0.6109, allocations: 4 kB / 403.1 MB, free: 2.547 MB / 314.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008385/0.6117, allocations: 348.5 kB / 403.4 MB, free: 2.25 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/0.6118, allocations: 8 kB / 403.4 MB, free: 2.242 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.6118, allocations: 4 kB / 403.4 MB, free: 2.238 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.004e-05/0.6118, allocations: 12 kB / 403.4 MB, free: 2.227 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002072/0.612, allocations: 42.84 kB / 403.5 MB, free: 2.188 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.72e-05/0.6121, allocations: 12 kB / 403.5 MB, free: 2.176 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002487/0.6123, allocations: 15.86 kB / 403.5 MB, free: 2.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.351e-05/0.6124, allocations: 30.8 kB / 403.5 MB, free: 2.137 MB / 314.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.0001687/0.6126, allocations: 141.5 kB / 403.7 MB, free: 1.992 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000464/0.6131, allocations: 189.4 kB / 403.9 MB, free: 1.828 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.796e-05/0.6131, allocations: 23.72 kB / 403.9 MB, free: 1.805 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005654/0.6137, allocations: 207.8 kB / 404.1 MB, free: 1.633 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.351e-06/0.6137, allocations: 0 / 404.1 MB, free: 1.633 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.6137, allocations: 11.89 kB / 404.1 MB, free: 1.621 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.6138, allocations: 3.984 kB / 404.1 MB, free: 1.617 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001179/0.6149, allocations: 0.6058 MB / 404.7 MB, free: 1.074 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.615, allocations: 0 / 404.7 MB, free: 1.074 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.345e-05/0.6151, allocations: 11.94 kB / 404.7 MB, free: 1.062 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.79e-06/0.6151, allocations: 0 / 404.7 MB, free: 1.062 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/0.6151, allocations: 7.391 kB / 404.7 MB, free: 1.059 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.135e-06/0.6151, allocations: 7.984 kB / 404.7 MB, free: 1.051 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.6151, allocations: 0 / 404.7 MB, free: 1.051 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004953/0.6156, allocations: 289.4 kB / 405 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001258/0.6158, allocations: 115.3 kB / 405.1 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.829e-05/0.6158, allocations: 7.984 kB / 405.1 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.616, allocations: 7.953 kB / 405.2 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.6161, allocations: 23.02 kB / 405.2 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.933e-05/0.6162, allocations: 11.88 kB / 405.2 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001876/0.6164, allocations: 163.4 kB / 405.4 MB, free: 492 kB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6164, allocations: 0 / 405.4 MB, free: 492 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005746/0.617, allocations: 52 kB / 405.4 MB, free: 440 kB / 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: 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.0008855/0.6179, allocations: 0.8426 MB / 406.2 MB, free: 15.59 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005345/0.6184, allocations: 223.2 kB / 406.5 MB, free: 15.43 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.6184, allocations: 0 / 406.5 MB, free: 15.43 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00018/0.6186, allocations: 79.8 kB / 406.5 MB, free: 15.37 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003148/0.619, allocations: 23.44 kB / 406.6 MB, free: 15.36 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001522/0.6205, allocations: 0.5246 MB / 407.1 MB, free: 14.84 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005775/0.6211, allocations: 0.846 MB / 407.9 MB, free: 13.96 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002393/0.6214, allocations: 47.25 kB / 408 MB, free: 13.92 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002605/0.6216, allocations: 154.8 kB / 408.1 MB, free: 13.88 MB / 330.7 MB Notification: Performance of SimCode: time 1.462e-06/0.6216, allocations: 0 / 408.1 MB, free: 13.88 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04764/0.6693, allocations: 5.347 MB / 413.5 MB, free: 8.527 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003246/0.6697, allocations: 162.8 kB / 413.6 MB, free: 8.34 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.604/3.274, allocations: 7.938 kB / 413.6 MB, free: 8.332 MB / 330.7 MB