Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.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) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_2_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.884/1.884, allocations: 194.9 MB / 211.1 MB, free: 8.559 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003497/0.0003498, allocations: 8 kB / 264 MB, free: 3.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2825, allocations: 44.51 MB / 308.5 MB, free: 12.78 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00245/0.285, allocations: 1.379 MB / 309.9 MB, free: 11.39 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007571/0.2858, allocations: 271.2 kB / 310.2 MB, free: 11.13 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.462e-05/0.2859, allocations: 7.938 kB / 310.2 MB, free: 11.12 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.286, allocations: 19.8 kB / 310.2 MB, free: 11.1 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7e-05/0.2861, allocations: 15.97 kB / 310.2 MB, free: 11.09 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003964/0.2865, allocations: 83.84 kB / 310.3 MB, free: 11 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003281/0.2868, allocations: 167.7 kB / 310.5 MB, free: 10.84 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003131/0.2872, allocations: 149.9 kB / 310.6 MB, free: 10.69 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000107/0.2873, allocations: 67.7 kB / 310.7 MB, free: 10.62 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001367/0.2874, allocations: 71.69 kB / 310.8 MB, free: 10.55 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.594e-05/0.2875, allocations: 12 kB / 310.8 MB, free: 10.54 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.009e-05/0.2876, allocations: 15.98 kB / 310.8 MB, free: 10.52 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.754e-05/0.2877, allocations: 47.83 kB / 310.8 MB, free: 10.48 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.434e-05/0.2878, allocations: 57.58 kB / 310.9 MB, free: 10.41 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002591/0.288, allocations: 151.7 kB / 311 MB, free: 10.27 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.288, allocations: 0 / 311 MB, free: 10.27 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2881, allocations: 0 / 311 MB, free: 10.27 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.431e-06/0.2881, allocations: 0 / 311 MB, free: 10.27 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0007379/0.2888, allocations: 443 kB / 311.5 MB, free: 9.785 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.2889, allocations: 12.03 kB / 311.5 MB, free: 9.773 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.719e-05/0.289, allocations: 54.55 kB / 311.5 MB, free: 9.711 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.619e-05/0.289, allocations: 23.72 kB / 311.6 MB, free: 9.688 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003051/0.2894, allocations: 226.7 kB / 311.8 MB, free: 9.426 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.603e-05/0.2894, allocations: 24.5 kB / 311.8 MB, free: 9.402 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.163e-05/0.2895, allocations: 28 kB / 311.8 MB, free: 9.375 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006232/0.2901, allocations: 262 kB / 312.1 MB, free: 9.098 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.2901, allocations: 0 / 312.1 MB, free: 9.098 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.273e-05/0.2902, allocations: 8 kB / 312.1 MB, free: 9.09 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.504e-05/0.2902, allocations: 11.98 kB / 312.1 MB, free: 9.078 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004924/0.2907, allocations: 165.6 kB / 312.3 MB, free: 8.918 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001598/0.2923, allocations: 0.9559 MB / 313.2 MB, free: 7.891 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000408/0.2928, allocations: 159.4 kB / 313.4 MB, free: 7.727 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.066e-05/0.2928, allocations: 12.08 kB / 313.4 MB, free: 7.715 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002866/0.2931, allocations: 107.4 kB / 313.5 MB, free: 7.598 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 2.485e-06/0.2931, allocations: 0 / 313.5 MB, free: 7.598 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006064/0.2937, allocations: 221.8 kB / 313.7 MB, free: 7.375 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.962e-05/0.2938, allocations: 63.39 kB / 313.8 MB, free: 7.301 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001604/0.294, allocations: 152.2 kB / 313.9 MB, free: 7.145 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.269e-05/0.294, allocations: 37.7 kB / 314 MB, free: 7.102 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001227/0.2942, allocations: 140.5 kB / 314.1 MB, free: 6.961 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.804e-05/0.2942, allocations: 51.27 kB / 314.1 MB, free: 6.91 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.949e-05/0.2943, allocations: 8 kB / 314.2 MB, free: 6.902 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.2944, allocations: 326.8 kB / 314.5 MB, free: 6.574 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001904/0.2946, allocations: 60.62 kB / 314.5 MB, free: 6.516 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002528/0.2949, allocations: 137.8 kB / 314.7 MB, free: 6.352 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001997/0.2951, allocations: 67.98 kB / 314.7 MB, free: 6.285 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.2951, allocations: 0 / 314.7 MB, free: 6.285 MB / 250.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005931/0.2957, allocations: 257.1 kB / 315 MB, free: 6.027 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.2958, allocations: 8.281 kB / 315 MB, free: 6.02 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.2958, allocations: 4 kB / 315 MB, free: 6.016 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.2958, allocations: 4 kB / 315 MB, free: 6.012 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002165/0.296, allocations: 35.92 kB / 315 MB, free: 5.977 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.446e-05/0.2961, allocations: 7.984 kB / 315 MB, free: 5.969 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001595/0.2962, allocations: 23.78 kB / 315.1 MB, free: 5.945 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.963e-05/0.2963, allocations: 16 kB / 315.1 MB, free: 5.93 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001966/0.2965, allocations: 148.4 kB / 315.2 MB, free: 5.773 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.465e-05/0.2965, allocations: 19.77 kB / 315.2 MB, free: 5.754 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000504/0.297, allocations: 198.3 kB / 315.4 MB, free: 5.547 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.2971, allocations: 4 kB / 315.4 MB, free: 5.543 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.2971, allocations: 0 / 315.4 MB, free: 5.543 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.2971, allocations: 3.984 kB / 315.4 MB, free: 5.539 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001061/0.2982, allocations: 0.5875 MB / 316 MB, free: 4.891 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.2982, allocations: 0 / 316 MB, free: 4.891 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/0.2983, allocations: 19.98 kB / 316.1 MB, free: 4.871 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.181e-06/0.2983, allocations: 0 / 316.1 MB, free: 4.871 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.149e-05/0.2984, allocations: 11.92 kB / 316.1 MB, free: 4.859 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.671e-06/0.2984, allocations: 4 kB / 316.1 MB, free: 4.855 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.2984, allocations: 0 / 316.1 MB, free: 4.855 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00046/0.2989, allocations: 275.1 kB / 316.3 MB, free: 4.57 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.519e-05/0.2989, allocations: 88.95 kB / 316.4 MB, free: 4.465 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.403e-05/0.299, allocations: 11.98 kB / 316.4 MB, free: 4.453 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001356/0.2991, allocations: 8 kB / 316.4 MB, free: 4.445 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.169e-05/0.2992, allocations: 23.91 kB / 316.5 MB, free: 4.422 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.117e-05/0.2993, allocations: 4 kB / 316.5 MB, free: 4.418 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.423e-05/0.2994, allocations: 103.2 kB / 316.6 MB, free: 4.316 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.2994, allocations: 0 / 316.6 MB, free: 4.316 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004084/0.2998, allocations: 55.78 kB / 316.6 MB, free: 4.262 MB / 250.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: 19 (step.active,transition1.enableFire,step.localActive,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0008194/0.3006, allocations: 0.8221 MB / 317.4 MB, free: 3.414 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004804/0.3011, allocations: 175.8 kB / 317.6 MB, free: 3.242 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3011, allocations: 0 / 317.6 MB, free: 3.242 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002057/0.3013, allocations: 79.84 kB / 317.7 MB, free: 3.164 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000278/0.3016, allocations: 20.55 kB / 317.7 MB, free: 3.145 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002138/0.3038, allocations: 0.985 MB / 318.7 MB, free: 2.086 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003735/0.3042, allocations: 0.7406 MB / 319.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001362/0.3044, allocations: 21.95 kB / 319.5 MB, free: 1.301 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001546/0.3045, allocations: 63.47 kB / 319.5 MB, free: 1.242 MB / 250.7 MB Notification: Performance of SimCode: time 7.81e-07/0.3045, allocations: 0 / 319.5 MB, free: 1.242 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02921/0.3337, allocations: 3.294 MB / 322.8 MB, free: 13.98 MB / 266.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002861/0.3341, allocations: 188.6 kB / 323 MB, free: 13.73 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.395/2.729, allocations: 0 / 323 MB, free: 13.73 MB / 266.7 MB "" Variables in the reference:time,transition1.enableFire,transition2.enableFire Variables in the result:SetBoolean1.y,SetBoolean2.y,initialStep.active,initialStep.inPort[1].occupied,initialStep.inPort[1].set,initialStep.localActive,initialStep.nIn,initialStep.nOut,initialStep.newActive,initialStep.oldActive,initialStep.outPort[1].available,initialStep.outPort[1].reset,initialStep.outerStatePort.subgraphStatePort.activeSteps,initialStep.outerStatePort.subgraphStatePort.activeStepsDummy,initialStep.outerStatePort.subgraphStatePort.resume,initialStep.outerStatePort.subgraphStatePort.suspend,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.subgraphStatePort.activeSteps,stateGraphRoot.subgraphStatePort.activeStepsDummy,stateGraphRoot.subgraphStatePort.resume,stateGraphRoot.subgraphStatePort.suspend,stateGraphRoot.suspend,step.active,step.inPort[1].occupied,step.inPort[1].set,step.localActive,step.nIn,step.nOut,step.newActive,step.oldActive,step.outPort[1].available,step.outPort[1].reset,step.outerStatePort.subgraphStatePort.activeSteps,step.outerStatePort.subgraphStatePort.activeStepsDummy,step.outerStatePort.subgraphStatePort.resume,step.outerStatePort.subgraphStatePort.suspend,time,timer.entryTime,timer.u,timer.y,transition1.condition,transition1.enableFire,transition1.enableTimer,transition1.fire,transition1.inPort.available,transition1.inPort.reset,transition1.localCondition,transition1.outPort.occupied,transition1.outPort.set,transition1.t,transition1.t_dummy,transition1.t_start,transition1.waitTime,transition2.condition,transition2.enableFire,transition2.enableTimer,transition2.fire,transition2.inPort.available,transition2.inPort.reset,transition2.localCondition,transition2.outPort.occupied,transition2.outPort.set,transition2.t,transition2.t_dummy,transition2.t_start,transition2.waitTime