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_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 1.758/1.758, allocations: 171.2 MB / 186.7 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004817/0.0004819, allocations: 8 kB / 233.8 MB, free: 2.406 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08328/0.08379, allocations: 38.77 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002338/0.08618, allocations: 1.353 MB / 274 MB, free: 10.18 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007582/0.08697, allocations: 283 kB / 274.2 MB, free: 9.906 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.97e-05/0.08709, allocations: 4 kB / 274.3 MB, free: 9.902 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001162/0.08722, allocations: 19.8 kB / 274.3 MB, free: 9.883 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.225e-05/0.08728, allocations: 7.984 kB / 274.3 MB, free: 9.875 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004145/0.08771, allocations: 87.89 kB / 274.4 MB, free: 9.789 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003233/0.08805, allocations: 163.7 kB / 274.5 MB, free: 9.629 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003185/0.08839, allocations: 145.5 kB / 274.7 MB, free: 9.48 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000104/0.0885, allocations: 67.77 kB / 274.7 MB, free: 9.414 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001458/0.08866, allocations: 71.62 kB / 274.8 MB, free: 9.344 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.505e-05/0.08871, allocations: 8 kB / 274.8 MB, free: 9.336 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.341e-05/0.0888, allocations: 23.98 kB / 274.8 MB, free: 9.312 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.587e-05/0.08888, allocations: 43.83 kB / 274.9 MB, free: 9.27 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.923e-05/0.08897, allocations: 57.58 kB / 274.9 MB, free: 9.207 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002776/0.08925, allocations: 151.7 kB / 275.1 MB, free: 9.059 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.08927, allocations: 4 kB / 275.1 MB, free: 9.055 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.08928, allocations: 0 / 275.1 MB, free: 9.055 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.0893, allocations: 0 / 275.1 MB, free: 9.055 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.0008236/0.09013, allocations: 454.1 kB / 275.5 MB, free: 8.562 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.09019, allocations: 12.03 kB / 275.5 MB, free: 8.551 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.734e-05/0.09028, allocations: 23.72 kB / 275.6 MB, free: 8.527 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000315/0.0906, allocations: 222.8 kB / 275.8 MB, free: 8.27 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.489e-05/0.09067, allocations: 20.56 kB / 275.8 MB, free: 8.25 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.865e-05/0.09074, allocations: 31.95 kB / 275.8 MB, free: 8.219 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006425/0.0914, allocations: 262 kB / 276.1 MB, free: 7.941 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.09143, allocations: 15.92 kB / 276.1 MB, free: 7.926 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.09147, allocations: 7.938 kB / 276.1 MB, free: 7.918 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.0915, allocations: 8 kB / 276.1 MB, free: 7.91 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004853/0.09199, allocations: 165.6 kB / 276.3 MB, free: 7.75 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001546/0.09355, allocations: 0.9637 MB / 277.2 MB, free: 6.715 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003981/0.09397, allocations: 151.4 kB / 277.4 MB, free: 6.559 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.942e-05/0.09402, allocations: 192 / 277.4 MB, free: 6.559 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003249/0.09436, allocations: 115.3 kB / 277.5 MB, free: 6.434 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 2.575e-06/0.09437, allocations: 0 / 277.5 MB, free: 6.434 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006383/0.09502, allocations: 213.3 kB / 277.7 MB, free: 6.219 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.568e-05/0.09509, allocations: 63.41 kB / 277.8 MB, free: 6.145 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000175/0.09528, allocations: 153.9 kB / 277.9 MB, free: 5.984 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.483e-05/0.09534, allocations: 33.7 kB / 278 MB, free: 5.945 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/0.09549, allocations: 148.4 kB / 278.1 MB, free: 5.797 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.124e-05/0.09557, allocations: 55.3 kB / 278.2 MB, free: 5.742 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.764e-05/0.0956, allocations: 8 kB / 278.2 MB, free: 5.734 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.09576, allocations: 326.8 kB / 278.5 MB, free: 5.406 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001963/0.09597, allocations: 60.62 kB / 278.5 MB, free: 5.344 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002536/0.09624, allocations: 141.8 kB / 278.7 MB, free: 5.176 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002092/0.09646, allocations: 67.98 kB / 278.8 MB, free: 5.109 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.243e-06/0.09648, allocations: 4 kB / 278.8 MB, free: 5.105 MB / 234.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006017/0.09709, allocations: 241.2 kB / 279 MB, free: 4.863 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.09713, allocations: 10.03 kB / 279 MB, free: 4.855 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.09715, allocations: 4 kB / 279 MB, free: 4.852 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.569e-05/0.09718, allocations: 12.27 kB / 279 MB, free: 4.84 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002358/0.09743, allocations: 31.88 kB / 279 MB, free: 4.809 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.09745, allocations: 7.984 kB / 279.1 MB, free: 4.801 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001683/0.09763, allocations: 31.75 kB / 279.1 MB, free: 4.77 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.739e-05/0.09768, allocations: 8 kB / 279.1 MB, free: 4.762 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.0002202/0.09791, allocations: 168.2 kB / 279.3 MB, free: 4.59 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.498e-05/0.09796, allocations: 15.75 kB / 279.3 MB, free: 4.574 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005491/0.09852, allocations: 190.7 kB / 279.5 MB, free: 4.383 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.09854, allocations: 0 / 279.5 MB, free: 4.383 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.09855, allocations: 0 / 279.5 MB, free: 4.383 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.048e-05/0.09863, allocations: 96.91 kB / 279.6 MB, free: 4.27 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.165e-05/0.09868, allocations: 4 kB / 279.6 MB, free: 4.266 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.0988, allocations: 11.98 kB / 279.6 MB, free: 4.254 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.389e-05/0.09891, allocations: 19.97 kB / 279.6 MB, free: 4.234 MB / 234.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005485/0.09947, allocations: 268.8 kB / 279.9 MB, free: 3.965 MB / 234.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0004948/0.09998, allocations: 350.8 kB / 280.2 MB, free: 3.605 MB / 234.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000185/0.1002, allocations: 75.97 kB / 280.3 MB, free: 3.531 MB / 234.7 MB Notification: Performance of sorting global known variables: time 8.52e-05/0.1003, allocations: 99.25 kB / 280.4 MB, free: 3.434 MB / 234.7 MB Notification: Performance of Backend: time 1.162e-06/0.1003, allocations: 4 kB / 280.4 MB, free: 3.43 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0006367/0.1009, allocations: 198.2 kB / 280.6 MB, free: 3.227 MB / 234.7 MB Notification: Performance of SimCode: time 0.001114/0.1021, allocations: 0.7935 MB / 281.4 MB, free: 2.395 MB / 234.7 MB Notification: Performance of Templates: time 0.007267/0.1094, allocations: 1.71 MB / 283.1 MB, free: 0.6914 MB / 234.7 MB "" Variables in the reference:time,transition1.enableFire,transition2.enableFire Variables in the result:greaterEqual.threshold,initialStep.nIn,initialStep.nOut,step.nIn,step.nOut,time,transition1.enableFire,transition1.enableTimer,transition1.waitTime,transition2.enableFire,transition2.enableTimer,transition2.waitTime