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_Variant2.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_Variant2,fileNamePrefix="Modelica_3_2_2_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.929/1.929, allocations: 194.9 MB / 211.1 MB, free: 7.594 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003481/0.0003483, allocations: 11.98 kB / 264 MB, free: 2.523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2857, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.0024/0.2881, allocations: 1.359 MB / 309.9 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007643/0.2889, allocations: 267.2 kB / 310.2 MB, free: 11.03 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/0.289, allocations: 7.938 kB / 310.2 MB, free: 11.02 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001165/0.2892, allocations: 19.81 kB / 310.2 MB, free: 11 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.343e-05/0.2892, allocations: 7.969 kB / 310.2 MB, free: 11 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004159/0.2897, allocations: 91.84 kB / 310.3 MB, free: 10.91 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003322/0.29, allocations: 163.7 kB / 310.5 MB, free: 10.75 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003347/0.2904, allocations: 145.6 kB / 310.6 MB, free: 10.6 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001097/0.2905, allocations: 75.69 kB / 310.7 MB, free: 10.52 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001467/0.2906, allocations: 75.67 kB / 310.7 MB, free: 10.45 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.397e-05/0.2907, allocations: 8 kB / 310.8 MB, free: 10.44 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.516e-05/0.2908, allocations: 15.94 kB / 310.8 MB, free: 10.43 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.242e-05/0.2908, allocations: 35.91 kB / 310.8 MB, free: 10.39 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.037e-05/0.2909, allocations: 57.58 kB / 310.9 MB, free: 10.33 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002746/0.2912, allocations: 155.6 kB / 311 MB, free: 10.18 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2912, allocations: 0 / 311 MB, free: 10.18 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.2912, allocations: 3.938 kB / 311 MB, free: 10.17 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.2913, allocations: 4 kB / 311 MB, free: 10.17 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.000749/0.292, allocations: 439 kB / 311.4 MB, free: 9.691 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.2921, allocations: 16.02 kB / 311.5 MB, free: 9.676 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.901e-05/0.2922, allocations: 62.48 kB / 311.5 MB, free: 9.605 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.946e-05/0.2923, allocations: 23.72 kB / 311.5 MB, free: 9.582 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003173/0.2926, allocations: 238.6 kB / 311.8 MB, free: 9.309 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.684e-05/0.2926, allocations: 16.56 kB / 311.8 MB, free: 9.293 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.891e-05/0.2927, allocations: 28 kB / 311.8 MB, free: 9.266 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006483/0.2934, allocations: 266 kB / 312.1 MB, free: 8.984 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.2934, allocations: 3.938 kB / 312.1 MB, free: 8.98 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.16e-05/0.2935, allocations: 4 kB / 312.1 MB, free: 8.977 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.876e-05/0.2935, allocations: 8 kB / 312.1 MB, free: 8.969 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004955/0.294, allocations: 169.6 kB / 312.3 MB, free: 8.805 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001589/0.2956, allocations: 0.9561 MB / 313.2 MB, free: 7.777 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004142/0.296, allocations: 163.2 kB / 313.4 MB, free: 7.609 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.059e-05/0.2961, allocations: 8.188 kB / 313.4 MB, free: 7.602 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003084/0.2964, allocations: 115.3 kB / 313.5 MB, free: 7.477 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 3.166e-06/0.2964, allocations: 0 / 313.5 MB, free: 7.477 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006251/0.297, allocations: 209.9 kB / 313.7 MB, free: 7.266 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.778e-05/0.2971, allocations: 59.41 kB / 313.8 MB, free: 7.195 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001712/0.2973, allocations: 149.9 kB / 313.9 MB, free: 7.039 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.104e-05/0.2974, allocations: 37.7 kB / 313.9 MB, free: 6.996 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.2975, allocations: 140.5 kB / 314.1 MB, free: 6.855 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.89e-05/0.2976, allocations: 63.19 kB / 314.1 MB, free: 6.793 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.948e-05/0.2976, allocations: 12 kB / 314.2 MB, free: 6.781 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.2978, allocations: 322.8 kB / 314.5 MB, free: 6.457 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001908/0.298, allocations: 60.62 kB / 314.5 MB, free: 6.395 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002606/0.2982, allocations: 137.8 kB / 314.7 MB, free: 6.23 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002031/0.2985, allocations: 67.98 kB / 314.7 MB, free: 6.164 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.2985, allocations: 0 / 314.7 MB, free: 6.164 MB / 250.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005998/0.2991, allocations: 261.2 kB / 315 MB, free: 5.902 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.2991, allocations: 4 kB / 315 MB, free: 5.898 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.2991, allocations: 4 kB / 315 MB, free: 5.895 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.091e-05/0.2992, allocations: 4 kB / 315 MB, free: 5.891 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002369/0.2994, allocations: 35.91 kB / 315 MB, free: 5.855 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.2994, allocations: 4 kB / 315 MB, free: 5.852 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001621/0.2996, allocations: 27.75 kB / 315.1 MB, free: 5.824 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.091e-05/0.2997, allocations: 12 kB / 315.1 MB, free: 5.812 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.0002178/0.2999, allocations: 164.5 kB / 315.2 MB, free: 5.641 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.219e-05/0.2999, allocations: 15.8 kB / 315.3 MB, free: 5.625 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005039/0.3005, allocations: 190.6 kB / 315.4 MB, free: 5.434 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.764e-06/0.3005, allocations: 4 kB / 315.4 MB, free: 5.43 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.3005, allocations: 0 / 315.4 MB, free: 5.43 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.63e-05/0.3005, allocations: 7.969 kB / 315.5 MB, free: 5.422 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001088/0.3016, allocations: 0.5914 MB / 316 MB, free: 4.77 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.3016, allocations: 4 kB / 316 MB, free: 4.766 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001308/0.3018, allocations: 15.94 kB / 316.1 MB, free: 4.75 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.411e-06/0.3018, allocations: 3.938 kB / 316.1 MB, free: 4.746 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.636e-05/0.3018, allocations: 7.984 kB / 316.1 MB, free: 4.738 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.621e-06/0.3018, allocations: 4 kB / 316.1 MB, free: 4.734 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3019, allocations: 0 / 316.1 MB, free: 4.734 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004774/0.3023, allocations: 271.2 kB / 316.3 MB, free: 4.453 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.285e-05/0.3024, allocations: 89 kB / 316.4 MB, free: 4.348 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.919e-05/0.3025, allocations: 8 kB / 316.4 MB, free: 4.34 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001315/0.3026, allocations: 8 kB / 316.4 MB, free: 4.332 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.915e-05/0.3027, allocations: 23.91 kB / 316.5 MB, free: 4.309 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.507e-05/0.3028, allocations: 7.984 kB / 316.5 MB, free: 4.301 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.765e-05/0.3029, allocations: 102.7 kB / 316.6 MB, free: 4.203 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-07/0.3029, allocations: 0 / 316.6 MB, free: 4.203 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004153/0.3033, allocations: 59.75 kB / 316.6 MB, free: 4.145 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,step.localActive,transition1.enableFire,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.0008314/0.3041, allocations: 0.8182 MB / 317.5 MB, free: 3.301 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004794/0.3046, allocations: 172.2 kB / 317.6 MB, free: 3.133 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.3046, allocations: 4.125 kB / 317.6 MB, free: 3.129 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002074/0.3049, allocations: 83.84 kB / 317.7 MB, free: 3.047 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000271/0.3051, allocations: 19.98 kB / 317.7 MB, free: 3.027 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002106/0.3073, allocations: 0.9798 MB / 318.7 MB, free: 1.965 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003865/0.3077, allocations: 0.7406 MB / 319.4 MB, free: 1.199 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001354/0.3078, allocations: 25.94 kB / 319.5 MB, free: 1.176 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001624/0.308, allocations: 63.48 kB / 319.5 MB, free: 1.117 MB / 250.7 MB Notification: Performance of SimCode: time 8.11e-07/0.308, allocations: 0 / 319.5 MB, free: 1.117 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02629/0.3343, allocations: 3.322 MB / 322.9 MB, free: 13.84 MB / 266.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003106/0.3347, allocations: 184.7 kB / 323 MB, free: 13.59 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.301/2.635, allocations: 0 / 323 MB, free: 13.59 MB / 266.7 MB "" Variables in the reference:time,transition1.enableFire,transition2.enableFire Variables in the result:greaterEqual.threshold,greaterEqual.u,greaterEqual.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