Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 1.806/1.806, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003412/0.0003413, allocations: 8 kB / 233.8 MB, free: 2.395 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08486/0.08522, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002647/0.08792, allocations: 1.389 MB / 274 MB, free: 10.14 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008138/0.08877, allocations: 267.1 kB / 274.3 MB, free: 9.875 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.905e-05/0.0889, allocations: 4 kB / 274.3 MB, free: 9.871 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001216/0.08903, allocations: 23.8 kB / 274.3 MB, free: 9.848 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 6.139e-05/0.08911, allocations: 7.984 kB / 274.3 MB, free: 9.84 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000427/0.08954, allocations: 91.83 kB / 274.4 MB, free: 9.75 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003378/0.0899, allocations: 159.7 kB / 274.5 MB, free: 9.594 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003273/0.09024, allocations: 141.9 kB / 274.7 MB, free: 9.445 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001136/0.09036, allocations: 67.77 kB / 274.7 MB, free: 9.379 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001514/0.09053, allocations: 79.55 kB / 274.8 MB, free: 9.301 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.473e-05/0.09058, allocations: 12 kB / 274.8 MB, free: 9.289 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.95e-05/0.09067, allocations: 19.98 kB / 274.9 MB, free: 9.27 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.164e-05/0.09075, allocations: 35.91 kB / 274.9 MB, free: 9.234 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.259e-05/0.09084, allocations: 61.52 kB / 275 MB, free: 9.168 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002692/0.09112, allocations: 151.7 kB / 275.1 MB, free: 9.02 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.756e-06/0.09113, allocations: 0 / 275.1 MB, free: 9.02 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.09114, allocations: 0 / 275.1 MB, free: 9.02 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.159e-06/0.09116, allocations: 0 / 275.1 MB, free: 9.02 MB / 234.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.0007377/0.0919, allocations: 446.1 kB / 275.5 MB, free: 8.535 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.09196, allocations: 16.03 kB / 275.6 MB, free: 8.52 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.732e-05/0.09205, allocations: 19.81 kB / 275.6 MB, free: 8.5 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003029/0.09236, allocations: 222.7 kB / 275.8 MB, free: 8.242 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.134e-05/0.09243, allocations: 24.55 kB / 275.8 MB, free: 8.219 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.762e-05/0.09249, allocations: 28 kB / 275.8 MB, free: 8.191 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006328/0.09315, allocations: 258 kB / 276.1 MB, free: 7.918 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.09318, allocations: 7.938 kB / 276.1 MB, free: 7.91 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.107e-05/0.09323, allocations: 12 kB / 276.1 MB, free: 7.898 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.09325, allocations: 11.94 kB / 276.1 MB, free: 7.887 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004891/0.09375, allocations: 169.6 kB / 276.3 MB, free: 7.723 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00154/0.0953, allocations: 0.9521 MB / 277.2 MB, free: 6.699 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004002/0.09572, allocations: 155.2 kB / 277.4 MB, free: 6.539 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.31e-05/0.09577, allocations: 8.172 kB / 277.4 MB, free: 6.531 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003028/0.09608, allocations: 122.9 kB / 277.5 MB, free: 6.402 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 3.106e-06/0.0961, allocations: 0 / 277.5 MB, free: 6.402 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006248/0.09673, allocations: 205.4 kB / 277.7 MB, free: 6.195 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/0.09679, allocations: 59.39 kB / 277.8 MB, free: 6.125 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001647/0.09697, allocations: 153.6 kB / 277.9 MB, free: 5.965 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.511e-05/0.09703, allocations: 45.69 kB / 278 MB, free: 5.914 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.09716, allocations: 132.5 kB / 278.1 MB, free: 5.781 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.629e-05/0.09724, allocations: 63.19 kB / 278.2 MB, free: 5.719 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.953e-05/0.09727, allocations: 8 kB / 278.2 MB, free: 5.711 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.09743, allocations: 330.8 kB / 278.5 MB, free: 5.379 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001834/0.09762, allocations: 60.62 kB / 278.6 MB, free: 5.32 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002518/0.09788, allocations: 133.8 kB / 278.7 MB, free: 5.16 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002005/0.09809, allocations: 71.98 kB / 278.8 MB, free: 5.09 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.09811, allocations: 0 / 278.8 MB, free: 5.09 MB / 234.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005927/0.09871, allocations: 249.2 kB / 279 MB, free: 4.84 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.09875, allocations: 8 kB / 279 MB, free: 4.832 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.09877, allocations: 0 / 279 MB, free: 4.832 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.0988, allocations: 8.281 kB / 279 MB, free: 4.824 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002299/0.09904, allocations: 39.86 kB / 279.1 MB, free: 4.785 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.443e-05/0.09907, allocations: 7.953 kB / 279.1 MB, free: 4.777 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001673/0.09924, allocations: 27.75 kB / 279.1 MB, free: 4.75 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.638e-05/0.0993, allocations: 15.98 kB / 279.1 MB, free: 4.734 MB / 234.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.0001944/0.09951, allocations: 152.3 kB / 279.3 MB, free: 4.578 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.553e-05/0.09955, allocations: 11.91 kB / 279.3 MB, free: 4.566 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005088/0.1001, allocations: 198.2 kB / 279.5 MB, free: 4.367 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.1001, allocations: 11.94 kB / 279.5 MB, free: 4.355 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.1001, allocations: 0 / 279.5 MB, free: 4.355 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6e-05/0.1002, allocations: 88.97 kB / 279.6 MB, free: 4.25 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.748e-05/0.1002, allocations: 3.984 kB / 279.6 MB, free: 4.246 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.1003, allocations: 8 kB / 279.6 MB, free: 4.238 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.242e-05/0.1004, allocations: 23.97 kB / 279.6 MB, free: 4.215 MB / 234.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005659/0.101, allocations: 264.8 kB / 279.9 MB, free: 3.949 MB / 234.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.000491/0.1015, allocations: 346.9 kB / 280.2 MB, free: 3.594 MB / 234.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001869/0.1017, allocations: 83.91 kB / 280.3 MB, free: 3.512 MB / 234.7 MB Notification: Performance of sorting global known variables: time 7.887e-05/0.1018, allocations: 95.2 kB / 280.4 MB, free: 3.418 MB / 234.7 MB Notification: Performance of Backend: time 7.41e-07/0.1018, allocations: 4 kB / 280.4 MB, free: 3.414 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0006196/0.1025, allocations: 199.3 kB / 280.6 MB, free: 3.211 MB / 234.7 MB Notification: Performance of SimCode: time 0.0009695/0.1034, allocations: 0.7856 MB / 281.3 MB, free: 2.387 MB / 234.7 MB Notification: Performance of Templates: time 0.006993/0.1105, allocations: 1.7 MB / 283 MB, free: 0.6953 MB / 234.7 MB "" Variables in the reference:time,transition1.enableFire,transition2.enableFire Variables in the result:initialStep.nIn,initialStep.nOut,step.nIn,step.nOut,time,transition1.enableFire,transition1.enableTimer,transition1.waitTime,transition2.enableFire,transition2.enableTimer,transition2.waitTime