Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 1.817/1.817, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003715/0.0003717, allocations: 8 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08909/0.08949, allocations: 44.5 MB / 308.3 MB, free: 1.043 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001944/0.09149, allocations: 1.176 MB / 309.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006592/0.09219, allocations: 259.2 kB / 309.8 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.247e-05/0.0923, allocations: 4 kB / 309.8 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001066/0.09242, allocations: 27.8 kB / 309.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 4.958e-05/0.09248, allocations: 7.984 kB / 309.8 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003612/0.09286, allocations: 83.83 kB / 309.9 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000281/0.09316, allocations: 151.7 kB / 310 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000286/0.09346, allocations: 126.3 kB / 310.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001153/0.09359, allocations: 71.75 kB / 310.2 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.09373, allocations: 71.62 kB / 310.3 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.526e-05/0.09378, allocations: 15.98 kB / 310.3 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.953e-05/0.09387, allocations: 12 kB / 310.3 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.93e-05/0.09394, allocations: 31.91 kB / 310.4 MB, free: 15 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.95e-05/0.09402, allocations: 57.58 kB / 310.4 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002455/0.09428, allocations: 151.7 kB / 310.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.66e-06/0.0943, allocations: 4 kB / 310.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.087e-06/0.09431, allocations: 0 / 310.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.818e-06/0.09432, allocations: 0 / 310.6 MB, free: 14.79 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.000714/0.09505, allocations: 434.6 kB / 311 MB, free: 14.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.0951, allocations: 16.02 kB / 311 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.844e-05/0.09518, allocations: 15.81 kB / 311 MB, free: 14.29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003084/0.09551, allocations: 226.7 kB / 311.2 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.785e-05/0.09557, allocations: 24.44 kB / 311.3 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.98e-05/0.09563, allocations: 24 kB / 311.3 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005501/0.09619, allocations: 233.8 kB / 311.5 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.09622, allocations: 0 / 311.5 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.337e-05/0.09626, allocations: 12 kB / 311.5 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.972e-06/0.09628, allocations: 4 kB / 311.5 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004251/0.09672, allocations: 165.6 kB / 311.7 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001339/0.09808, allocations: 0.6936 MB / 312.4 MB, free: 12.81 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004101/0.09851, allocations: 171.4 kB / 312.6 MB, free: 12.63 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.09855, allocations: 192 / 312.6 MB, free: 12.63 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002978/0.09886, allocations: 123.3 kB / 312.7 MB, free: 12.5 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 2.668e-06/0.09888, allocations: 0 / 312.7 MB, free: 12.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005774/0.09947, allocations: 220.8 kB / 312.9 MB, free: 12.28 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.173e-05/0.09955, allocations: 59.39 kB / 312.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001682/0.09973, allocations: 145.9 kB / 313.1 MB, free: 12.05 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.418e-05/0.0998, allocations: 41.69 kB / 313.1 MB, free: 12.01 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001472/0.09996, allocations: 206.9 kB / 313.3 MB, free: 11.8 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.349e-05/0.1, allocations: 55.27 kB / 313.4 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.58e-05/0.1001, allocations: 4 kB / 313.4 MB, free: 11.75 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.1003, allocations: 326.8 kB / 313.7 MB, free: 11.42 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001701/0.1004, allocations: 60.62 kB / 313.8 MB, free: 11.36 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002337/0.1007, allocations: 128.1 kB / 313.9 MB, free: 11.21 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001797/0.1009, allocations: 64 kB / 314 MB, free: 11.14 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.432e-06/0.1009, allocations: 0 / 314 MB, free: 11.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005355/0.1014, allocations: 245.2 kB / 314.2 MB, free: 10.9 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.895e-05/0.1015, allocations: 8 kB / 314.2 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.1015, allocations: 3.984 kB / 314.2 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.536e-05/0.1016, allocations: 7.984 kB / 314.2 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.1017, allocations: 27.92 kB / 314.2 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.414e-05/0.1018, allocations: 7.953 kB / 314.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001547/0.1019, allocations: 32 kB / 314.3 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.479e-05/0.102, allocations: 12 kB / 314.3 MB, free: 10.8 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.0002198/0.1022, allocations: 153.8 kB / 314.4 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.702e-05/0.1023, allocations: 19.75 kB / 314.5 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004724/0.1027, allocations: 194.4 kB / 314.7 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.409e-05/0.1028, allocations: 4 kB / 314.7 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.723e-06/0.1028, allocations: 0 / 314.7 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.1028, allocations: 3.953 kB / 314.7 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.1039, allocations: 0.5767 MB / 315.2 MB, free: 9.785 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.312e-06/0.1039, allocations: 0 / 315.2 MB, free: 9.785 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001133/0.104, allocations: 19.92 kB / 315.3 MB, free: 9.766 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.742e-06/0.1041, allocations: 3.953 kB / 315.3 MB, free: 9.762 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.896e-05/0.1041, allocations: 4 kB / 315.3 MB, free: 9.758 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.487e-06/0.1041, allocations: 4 kB / 315.3 MB, free: 9.754 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.241e-06/0.1041, allocations: 0 / 315.3 MB, free: 9.754 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004426/0.1046, allocations: 279.3 kB / 315.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.204e-05/0.1047, allocations: 92.86 kB / 315.6 MB, free: 9.355 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.294e-05/0.1047, allocations: 3.953 kB / 315.6 MB, free: 9.352 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001351/0.1049, allocations: 15.98 kB / 315.7 MB, free: 9.336 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.968e-05/0.105, allocations: 19.97 kB / 315.7 MB, free: 9.316 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.46e-05/0.105, allocations: 8 kB / 315.7 MB, free: 9.309 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.04e-05/0.1051, allocations: 103.8 kB / 315.8 MB, free: 9.207 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.23e-07/0.1051, allocations: 3.938 kB / 315.8 MB, free: 9.203 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004912/0.1056, allocations: 51.84 kB / 315.8 MB, free: 9.152 MB / 266.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.0001891/0.1058, allocations: 115.1 kB / 315.9 MB, free: 9.027 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004429/0.1063, allocations: 167.8 kB / 316.1 MB, free: 8.863 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.283e-06/0.1063, allocations: 0 / 316.1 MB, free: 8.863 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002035/0.1065, allocations: 88.28 kB / 316.2 MB, free: 8.777 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002582/0.1068, allocations: 25.25 kB / 316.2 MB, free: 8.754 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008057/0.1076, allocations: 389.5 kB / 316.6 MB, free: 8.344 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004414/0.1081, allocations: 0.7367 MB / 317.3 MB, free: 7.582 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.846e-05/0.1082, allocations: 27.42 kB / 317.4 MB, free: 7.555 MB / 266.7 MB Notification: Performance of SimCode: time 1.69e-06/0.1082, allocations: 0 / 317.4 MB, free: 7.555 MB / 266.7 MB Notification: Performance of Templates: time 0.005437/0.1136, allocations: 2.25 MB / 319.6 MB, free: 5.305 MB / 266.7 MB