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: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 1.964/1.964, allocations: 194.9 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003417/0.0003419, allocations: 12 kB / 264.5 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09167/0.09203, allocations: 44.52 MB / 309.1 MB, free: 376 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002231/0.09433, allocations: 1.172 MB / 310.2 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007192/0.09507, allocations: 251.3 kB / 310.5 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.799e-05/0.09519, allocations: 7.938 kB / 310.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001135/0.09531, allocations: 19.86 kB / 310.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.276e-05/0.09538, allocations: 7.922 kB / 310.5 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003992/0.09579, allocations: 91.83 kB / 310.6 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003158/0.09613, allocations: 151.7 kB / 310.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003006/0.09644, allocations: 130.3 kB / 310.9 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.09656, allocations: 67.78 kB / 310.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001391/0.09671, allocations: 67.67 kB / 311 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.393e-05/0.09676, allocations: 8 kB / 311 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.242e-05/0.09684, allocations: 20 kB / 311 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.923e-05/0.09692, allocations: 39.83 kB / 311.1 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.006e-05/0.097, allocations: 49.64 kB / 311.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002524/0.09726, allocations: 147.7 kB / 311.3 MB, free: 14.13 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.09728, allocations: 4 kB / 311.3 MB, free: 14.13 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.09729, allocations: 0 / 311.3 MB, free: 14.13 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.0973, allocations: 0 / 311.3 MB, free: 14.13 MB / 266.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.0007759/0.09809, allocations: 446.5 kB / 311.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.09814, allocations: 8.031 kB / 311.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.1e-05/0.09822, allocations: 19.81 kB / 311.7 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003019/0.09853, allocations: 226.6 kB / 312 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.604e-05/0.09859, allocations: 20.44 kB / 312 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.57e-05/0.09867, allocations: 27.98 kB / 312 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005788/0.09925, allocations: 229.8 kB / 312.2 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.09928, allocations: 0 / 312.2 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.368e-05/0.09932, allocations: 12 kB / 312.2 MB, free: 13.06 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.09935, allocations: 4 kB / 312.2 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004696/0.09983, allocations: 165.6 kB / 312.4 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001331/0.1012, allocations: 0.6975 MB / 313.1 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004368/0.1016, allocations: 171.3 kB / 313.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.741e-05/0.1017, allocations: 4.188 kB / 313.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000318/0.102, allocations: 119.4 kB / 313.4 MB, free: 11.83 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 2.475e-06/0.102, allocations: 0 / 313.4 MB, free: 11.83 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006106/0.1026, allocations: 217.9 kB / 313.6 MB, free: 11.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.238e-05/0.1027, allocations: 55.41 kB / 313.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001595/0.1029, allocations: 149.8 kB / 313.8 MB, free: 11.39 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.6e-05/0.1029, allocations: 37.69 kB / 313.8 MB, free: 11.34 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.103, allocations: 132.6 kB / 314 MB, free: 11.21 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.667e-05/0.1031, allocations: 63.19 kB / 314 MB, free: 11.15 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.754e-05/0.1032, allocations: 4 kB / 314 MB, free: 11.14 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.1033, allocations: 326.8 kB / 314.4 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001888/0.1035, allocations: 60.62 kB / 314.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002424/0.1038, allocations: 124.1 kB / 314.5 MB, free: 10.61 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001994/0.104, allocations: 71.92 kB / 314.6 MB, free: 10.54 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.104, allocations: 0 / 314.6 MB, free: 10.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005708/0.1046, allocations: 245.5 kB / 314.8 MB, free: 10.29 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.1046, allocations: 4 kB / 314.8 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.1046, allocations: 3.984 kB / 314.9 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.1046, allocations: 4 kB / 314.9 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002088/0.1049, allocations: 35.86 kB / 314.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.863e-05/0.1049, allocations: 7.953 kB / 314.9 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001522/0.1051, allocations: 31.73 kB / 314.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.502e-05/0.1051, allocations: 8 kB / 314.9 MB, free: 10.2 MB / 266.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.0001919/0.1053, allocations: 161.8 kB / 315.1 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.137e-05/0.1053, allocations: 11.91 kB / 315.1 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005296/0.1059, allocations: 190.4 kB / 315.3 MB, free: 9.828 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.1059, allocations: 3.984 kB / 315.3 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.1059, allocations: 0 / 315.3 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.112e-05/0.106, allocations: 104.8 kB / 315.4 MB, free: 9.703 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.719e-05/0.1061, allocations: 4 kB / 315.4 MB, free: 9.699 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.754e-05/0.1062, allocations: 8 kB / 315.4 MB, free: 9.691 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.568e-05/0.1063, allocations: 27.95 kB / 315.4 MB, free: 9.664 MB / 266.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005486/0.1068, allocations: 269 kB / 315.7 MB, free: 9.395 MB / 266.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0005083/0.1074, allocations: 354.6 kB / 316 MB, free: 9.031 MB / 266.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001928/0.1076, allocations: 87.78 kB / 316.1 MB, free: 8.945 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.592e-05/0.1076, allocations: 95.27 kB / 316.2 MB, free: 8.852 MB / 266.7 MB Notification: Performance of Backend: time 8.11e-07/0.1077, allocations: 0 / 316.2 MB, free: 8.852 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000577/0.1082, allocations: 198.2 kB / 316.4 MB, free: 8.648 MB / 266.7 MB Notification: Performance of SimCode: time 0.000959/0.1092, allocations: 0.7812 MB / 317.2 MB, free: 7.82 MB / 266.7 MB Notification: Performance of Templates: time 0.006914/0.1162, allocations: 1.704 MB / 318.9 MB, free: 6.121 MB / 266.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