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.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,fileNamePrefix="Modelica_3_2_2_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.923/1.923, allocations: 194.9 MB / 211.1 MB, free: 8.566 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003429/0.000343, allocations: 8 kB / 264 MB, free: 3.504 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2862, allocations: 44.52 MB / 308.6 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001965/0.2882, allocations: 1.177 MB / 309.7 MB, free: 11.58 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007173/0.289, allocations: 259.2 kB / 310 MB, free: 11.32 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.03e-05/0.2891, allocations: 4 kB / 310 MB, free: 11.32 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001153/0.2892, allocations: 15.81 kB / 310 MB, free: 11.3 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.462e-05/0.2893, allocations: 11.97 kB / 310 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004018/0.2897, allocations: 83.84 kB / 310.1 MB, free: 11.21 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003037/0.29, allocations: 151.7 kB / 310.2 MB, free: 11.06 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002935/0.2903, allocations: 126.3 kB / 310.4 MB, free: 10.93 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001026/0.2904, allocations: 67.77 kB / 310.4 MB, free: 10.87 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001561/0.2906, allocations: 71.62 kB / 310.5 MB, free: 10.8 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.732e-05/0.2906, allocations: 12 kB / 310.5 MB, free: 10.79 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.549e-05/0.2907, allocations: 19.98 kB / 310.5 MB, free: 10.77 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.318e-05/0.2908, allocations: 39.89 kB / 310.6 MB, free: 10.73 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.081e-05/0.2909, allocations: 53.58 kB / 310.6 MB, free: 10.67 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002542/0.2911, allocations: 147.7 kB / 310.8 MB, free: 10.52 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.2912, allocations: 0 / 310.8 MB, free: 10.52 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2912, allocations: 0 / 310.8 MB, free: 10.52 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.09e-06/0.2912, allocations: 0 / 310.8 MB, free: 10.52 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007529/0.2919, allocations: 447.3 kB / 311.2 MB, free: 10.04 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.292, allocations: 12.03 kB / 311.2 MB, free: 10.03 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.864e-05/0.2921, allocations: 50.55 kB / 311.3 MB, free: 9.969 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.116e-05/0.2922, allocations: 23.72 kB / 311.3 MB, free: 9.945 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002996/0.2925, allocations: 226.8 kB / 311.5 MB, free: 9.684 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.995e-05/0.2925, allocations: 16.44 kB / 311.5 MB, free: 9.668 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.218e-05/0.2926, allocations: 28 kB / 311.6 MB, free: 9.641 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005792/0.2932, allocations: 233.8 kB / 311.8 MB, free: 9.398 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.2932, allocations: 0 / 311.8 MB, free: 9.398 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.572e-05/0.2933, allocations: 12 kB / 311.8 MB, free: 9.387 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/0.2933, allocations: 11.94 kB / 311.8 MB, free: 9.375 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004642/0.2938, allocations: 157.6 kB / 312 MB, free: 9.223 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001336/0.2951, allocations: 0.6897 MB / 312.7 MB, free: 8.477 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004385/0.2956, allocations: 171.4 kB / 312.8 MB, free: 8.301 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.994e-05/0.2956, allocations: 4.188 kB / 312.8 MB, free: 8.297 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002942/0.2959, allocations: 123.3 kB / 312.9 MB, free: 8.164 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 2.575e-06/0.2959, allocations: 0 / 312.9 MB, free: 8.164 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006261/0.2966, allocations: 213.3 kB / 313.2 MB, free: 7.949 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/0.2966, allocations: 63.33 kB / 313.2 MB, free: 7.875 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000149/0.2968, allocations: 142 kB / 313.4 MB, free: 7.723 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.272e-05/0.2969, allocations: 33.7 kB / 313.4 MB, free: 7.684 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.297, allocations: 136.6 kB / 313.5 MB, free: 7.547 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.106e-05/0.2971, allocations: 55.25 kB / 313.6 MB, free: 7.492 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.92e-05/0.2971, allocations: 8 kB / 313.6 MB, free: 7.484 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.2972, allocations: 330.8 kB / 313.9 MB, free: 7.152 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001895/0.2974, allocations: 60.62 kB / 314 MB, free: 7.09 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000244/0.2977, allocations: 124.1 kB / 314.1 MB, free: 6.945 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001941/0.2979, allocations: 64 kB / 314.1 MB, free: 6.883 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.2979, allocations: 0 / 314.1 MB, free: 6.883 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005965/0.2985, allocations: 249.2 kB / 314.4 MB, free: 6.633 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.2986, allocations: 4 kB / 314.4 MB, free: 6.629 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.2986, allocations: 8.219 kB / 314.4 MB, free: 6.621 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.2986, allocations: 4 kB / 314.4 MB, free: 6.617 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002101/0.2988, allocations: 31.88 kB / 314.4 MB, free: 6.586 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.2988, allocations: 4 kB / 314.4 MB, free: 6.582 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001554/0.299, allocations: 31.69 kB / 314.5 MB, free: 6.551 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.186e-05/0.2991, allocations: 11.98 kB / 314.5 MB, free: 6.539 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001893/0.2993, allocations: 153.8 kB / 314.6 MB, free: 6.379 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.108e-05/0.2993, allocations: 7.906 kB / 314.6 MB, free: 6.371 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005249/0.2998, allocations: 206.3 kB / 314.8 MB, free: 6.164 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.2999, allocations: 0 / 314.8 MB, free: 6.164 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.2999, allocations: 3.953 kB / 314.8 MB, free: 6.16 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.2999, allocations: 7.984 kB / 314.9 MB, free: 6.152 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.301, allocations: 0.565 MB / 315.4 MB, free: 5.531 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.301, allocations: 4 kB / 315.4 MB, free: 5.527 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001379/0.3012, allocations: 19.92 kB / 315.4 MB, free: 5.508 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.166e-06/0.3012, allocations: 7.953 kB / 315.5 MB, free: 5.5 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.94e-05/0.3012, allocations: 4 kB / 315.5 MB, free: 5.496 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.3012, allocations: 0 / 315.5 MB, free: 5.496 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3012, allocations: 0 / 315.5 MB, free: 5.496 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004552/0.3017, allocations: 279.2 kB / 315.7 MB, free: 5.207 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.695e-05/0.3018, allocations: 88.95 kB / 315.8 MB, free: 5.102 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.419e-05/0.3018, allocations: 15.89 kB / 315.8 MB, free: 5.086 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001411/0.302, allocations: 11.98 kB / 315.8 MB, free: 5.074 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.3021, allocations: 27.91 kB / 315.9 MB, free: 5.047 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.28e-05/0.3021, allocations: 7.984 kB / 315.9 MB, free: 5.039 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.317e-05/0.3022, allocations: 99.27 kB / 316 MB, free: 4.941 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.3022, allocations: 0 / 316 MB, free: 4.941 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003984/0.3026, allocations: 47.84 kB / 316 MB, free: 4.895 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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0008132/0.3034, allocations: 0.8258 MB / 316.8 MB, free: 4.039 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004633/0.3039, allocations: 167.8 kB / 317 MB, free: 3.875 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3039, allocations: 0 / 317 MB, free: 3.875 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002151/0.3042, allocations: 91.84 kB / 317.1 MB, free: 3.785 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002717/0.3044, allocations: 24.36 kB / 317.1 MB, free: 3.762 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002001/0.3065, allocations: 0.9412 MB / 318.1 MB, free: 2.754 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003536/0.3068, allocations: 0.7328 MB / 318.8 MB, free: 1.996 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001255/0.307, allocations: 25.95 kB / 318.8 MB, free: 1.969 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001565/0.3071, allocations: 59.47 kB / 318.9 MB, free: 1.91 MB / 250.7 MB Notification: Performance of SimCode: time 9.82e-07/0.3071, allocations: 0 / 318.9 MB, free: 1.91 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02566/0.3328, allocations: 3.255 MB / 322.1 MB, free: 14.71 MB / 266.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000356/0.3332, allocations: 174.3 kB / 322.3 MB, free: 14.46 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.315/2.648, allocations: 0 / 322.3 MB, free: 14.46 MB / 266.7 MB "" Variables in the reference:time,transition1.enableFire,transition2.enableFire Variables in the result: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,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