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.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 2.28/2.28, allocations: 171.2 MB / 186.7 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000518/0.0005182, allocations: 8 kB / 233.8 MB, free: 2.406 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09251/0.09306, allocations: 38.78 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002082/0.0952, allocations: 1.171 MB / 273.8 MB, free: 10.36 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007414/0.09597, allocations: 259.2 kB / 274 MB, free: 10.11 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.201e-05/0.09608, allocations: 7.938 kB / 274.1 MB, free: 10.1 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001142/0.0962, allocations: 23.8 kB / 274.1 MB, free: 10.08 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.305e-05/0.09627, allocations: 11.97 kB / 274.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004056/0.09669, allocations: 75.91 kB / 274.2 MB, free: 9.992 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003153/0.09702, allocations: 151.7 kB / 274.3 MB, free: 9.844 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003055/0.09734, allocations: 138.2 kB / 274.4 MB, free: 9.703 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001233/0.09748, allocations: 63.78 kB / 274.5 MB, free: 9.641 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001529/0.09764, allocations: 79.61 kB / 274.6 MB, free: 9.562 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.499e-05/0.09769, allocations: 8 kB / 274.6 MB, free: 9.555 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.423e-05/0.09778, allocations: 16 kB / 274.6 MB, free: 9.539 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.004e-05/0.09786, allocations: 43.88 kB / 274.7 MB, free: 9.496 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.76e-05/0.09794, allocations: 53.58 kB / 274.7 MB, free: 9.438 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002519/0.0982, allocations: 147.6 kB / 274.9 MB, free: 9.293 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.09822, allocations: 0 / 274.9 MB, free: 9.293 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.09823, allocations: 0 / 274.9 MB, free: 9.293 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.09825, allocations: 4 kB / 274.9 MB, free: 9.289 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007595/0.09901, allocations: 438.5 kB / 275.3 MB, free: 8.812 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.09907, allocations: 12.03 kB / 275.3 MB, free: 8.801 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.263e-05/0.09915, allocations: 15.81 kB / 275.3 MB, free: 8.785 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00031/0.09947, allocations: 230.8 kB / 275.5 MB, free: 8.52 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.678e-05/0.09953, allocations: 20.44 kB / 275.6 MB, free: 8.5 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.806e-05/0.0996, allocations: 24 kB / 275.6 MB, free: 8.477 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005945/0.1002, allocations: 233.7 kB / 275.8 MB, free: 8.234 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.1002, allocations: 3.984 kB / 275.8 MB, free: 8.23 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.582e-05/0.1003, allocations: 12 kB / 275.8 MB, free: 8.219 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.582e-05/0.1003, allocations: 8 kB / 275.8 MB, free: 8.211 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004765/0.1008, allocations: 157.7 kB / 276 MB, free: 8.059 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001344/0.1021, allocations: 0.7013 MB / 276.7 MB, free: 7.301 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004439/0.1026, allocations: 159.3 kB / 276.8 MB, free: 7.137 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.959e-05/0.1027, allocations: 4.188 kB / 276.8 MB, free: 7.133 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003082/0.103, allocations: 131.3 kB / 277 MB, free: 6.992 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 2.896e-06/0.103, allocations: 0 / 277 MB, free: 6.992 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006191/0.1036, allocations: 213.4 kB / 277.2 MB, free: 6.777 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.1037, allocations: 55.41 kB / 277.2 MB, free: 6.711 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000155/0.1038, allocations: 145.9 kB / 277.4 MB, free: 6.555 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.647e-05/0.1039, allocations: 37.7 kB / 277.4 MB, free: 6.512 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.104, allocations: 128.6 kB / 277.5 MB, free: 6.383 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.41e-05/0.1041, allocations: 67.19 kB / 277.6 MB, free: 6.316 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.748e-05/0.1041, allocations: 4 kB / 277.6 MB, free: 6.312 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.1043, allocations: 338.7 kB / 277.9 MB, free: 5.973 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000194/0.1045, allocations: 64.56 kB / 278 MB, free: 5.906 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002487/0.1048, allocations: 124.1 kB / 278.1 MB, free: 5.762 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001989/0.105, allocations: 67.98 kB / 278.2 MB, free: 5.695 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.105, allocations: 0 / 278.2 MB, free: 5.695 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005903/0.1056, allocations: 237.2 kB / 278.4 MB, free: 5.457 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.1056, allocations: 10.03 kB / 278.4 MB, free: 5.449 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.1056, allocations: 0 / 278.4 MB, free: 5.449 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.1057, allocations: 8.219 kB / 278.4 MB, free: 5.441 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002154/0.1059, allocations: 31.92 kB / 278.5 MB, free: 5.41 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.1059, allocations: 7.984 kB / 278.5 MB, free: 5.402 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001496/0.1061, allocations: 19.84 kB / 278.5 MB, free: 5.383 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.078e-05/0.1061, allocations: 16 kB / 278.5 MB, free: 5.367 MB / 234.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.0002011/0.1063, allocations: 157.7 kB / 278.7 MB, free: 5.203 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.205e-05/0.1064, allocations: 11.81 kB / 278.7 MB, free: 5.191 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005212/0.1069, allocations: 198.4 kB / 278.9 MB, free: 4.988 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.1069, allocations: 3.984 kB / 278.9 MB, free: 4.984 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.1069, allocations: 0 / 278.9 MB, free: 4.984 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.224e-05/0.107, allocations: 88.95 kB / 279 MB, free: 4.879 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.112e-05/0.1071, allocations: 11.94 kB / 279 MB, free: 4.867 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.1072, allocations: 15.98 kB / 279 MB, free: 4.852 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.431e-05/0.1073, allocations: 27.92 kB / 279 MB, free: 4.824 MB / 234.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008858/0.1082, allocations: 272.7 kB / 279.3 MB, free: 4.551 MB / 234.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0008528/0.1091, allocations: 351 kB / 279.6 MB, free: 4.191 MB / 234.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003222/0.1094, allocations: 79.95 kB / 279.7 MB, free: 4.113 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0001167/0.1096, allocations: 99.77 kB / 279.8 MB, free: 4.016 MB / 234.7 MB Notification: Performance of Backend: time 9.91e-07/0.1096, allocations: 0 / 279.8 MB, free: 4.016 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0009352/0.1105, allocations: 198.2 kB / 280 MB, free: 3.816 MB / 234.7 MB Notification: Performance of SimCode: time 0.001292/0.1118, allocations: 0.7813 MB / 280.8 MB, free: 2.992 MB / 234.7 MB Notification: Performance of Templates: time 0.007088/0.119, allocations: 1.7 MB / 282.5 MB, free: 1.297 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