Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.conf.json Using package Modelica_StateGraph2 with version 2.1.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004701/0.004706, allocations: 355 kB / 15.94 MB, free: 6.211 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 4.626/4.626, allocations: 446.5 MB / 463.2 MB, free: 2.941 MB / 362.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001931/0.001931, allocations: 192 kB / 0.5024 GB, free: 15.59 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2432/0.2432, allocations: 27.15 MB / 0.5788 GB, free: 210.1 MB / 458.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000637/0.0006373, allocations: 12 kB / 0.6415 GB, free: 147.3 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09701/0.0977, allocations: 53.7 MB / 0.6939 GB, free: 93.59 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1113/0.209, allocations: 76.99 MB / 0.7691 GB, free: 16.5 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001552/0.2092, allocations: 58.81 kB / 0.7692 GB, free: 16.44 MB / 458.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:12183:5-12189:3:writable] Warning: Usage of non-standard operator (not specified in the Modelica specification): Connections.uniqueRoot. Functionality might be partially supported but is not guaranteed. Notification: Performance of FrontEnd - DAE generated: time 0.0173/0.2265, allocations: 5.075 MB / 0.7741 GB, free: 11.34 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.175e-06/0.2266, allocations: 0 / 0.7741 GB, free: 11.34 MB / 458.7 MB Notification: Performance of Transformations before backend: time 2.926e-05/0.2266, allocations: 23.86 kB / 0.7741 GB, free: 11.32 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001001/0.2277, allocations: 0.5389 MB / 0.7747 GB, free: 10.73 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.2277, allocations: 8.031 kB / 0.7747 GB, free: 10.72 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00015/0.2279, allocations: 47.48 kB / 0.7747 GB, free: 10.68 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007979/0.2287, allocations: 318.5 kB / 0.775 GB, free: 10.32 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.415e-05/0.2288, allocations: 33 kB / 0.7751 GB, free: 10.29 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.2289, allocations: 39.94 kB / 0.7751 GB, free: 10.25 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/0.2302, allocations: 466 kB / 0.7755 GB, free: 9.758 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.798e-05/0.2302, allocations: 3.984 kB / 0.7755 GB, free: 9.754 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.876e-05/0.2303, allocations: 19.98 kB / 0.7756 GB, free: 9.734 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.2303, allocations: 12 kB / 0.7756 GB, free: 9.723 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009574/0.2313, allocations: 282.3 kB / 0.7758 GB, free: 9.445 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003099/0.2344, allocations: 1.876 MB / 0.7777 GB, free: 7.398 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005385/0.235, allocations: 378.9 kB / 0.778 GB, free: 6.965 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001948/0.2352, allocations: 64.02 kB / 0.7781 GB, free: 6.902 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.657e-05/0.2353, allocations: 85.3 kB / 0.7782 GB, free: 6.801 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003116/0.2357, allocations: 111.5 kB / 0.7783 GB, free: 6.68 MB / 458.7 MB Notification: Performance of pre-optimization done (n=23): time 4.258e-06/0.2357, allocations: 0 / 0.7783 GB, free: 6.68 MB / 458.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007247/0.2364, allocations: 210.8 kB / 0.7785 GB, free: 6.469 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.876e-05/0.2365, allocations: 110.8 kB / 0.7786 GB, free: 6.336 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004118/0.2369, allocations: 254.8 kB / 0.7788 GB, free: 6.078 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.778e-05/0.237, allocations: 37.69 kB / 0.7789 GB, free: 6.035 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001785/0.2372, allocations: 192.3 kB / 0.779 GB, free: 5.84 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.927e-05/0.2373, allocations: 51.44 kB / 0.7791 GB, free: 5.789 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.704e-05/0.2373, allocations: 4 kB / 0.7791 GB, free: 5.785 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.2375, allocations: 342.8 kB / 0.7794 GB, free: 5.441 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002525/0.2377, allocations: 64.84 kB / 0.7795 GB, free: 5.379 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003797/0.2381, allocations: 215.8 kB / 0.7797 GB, free: 5.102 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003031/0.2384, allocations: 98.73 kB / 0.7798 GB, free: 5.008 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.2385, allocations: 4 kB / 0.7798 GB, free: 5.004 MB / 458.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008692/0.2393, allocations: 305 kB / 0.7801 GB, free: 4.699 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.604e-05/0.2394, allocations: 11.95 kB / 0.7801 GB, free: 4.688 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.2394, allocations: 4 kB / 0.7801 GB, free: 4.684 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.804e-05/0.2395, allocations: 11.98 kB / 0.7801 GB, free: 4.672 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.2396, allocations: 23.88 kB / 0.7801 GB, free: 4.648 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.84e-05/0.2397, allocations: 7.984 kB / 0.7801 GB, free: 4.641 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003889/0.2401, allocations: 28.38 kB / 0.7802 GB, free: 4.613 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.104e-05/0.2401, allocations: 23.98 kB / 0.7802 GB, free: 4.59 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 46 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.initialStep.oldActive,initialStep.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.step3.oldActive,step3.oldActive,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.newActive,initialStep.newActive,initialStep.inport_fire,initialStep.outport_fire,T1.condition,T1.enableFire,$PRE.step2.newActive,step2.newActive,step2.inport_fire,step2.outport_fire,T2.fire,T2.enableFire,$PRE.T2.t_start,T2.t_start,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.enableFire,$PRE.T3.t_start,T3.t_start,initialStep.connectorNode.node.resume,initialStep.connectorNode.node.suspend,T3.condition,T2.condition,initialStep.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,T2.outPort.checkOneDelayedTransitionPerLoop,step3.outPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,step2.inPort[1].checkUnaryConnection) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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.0003114/0.2405, allocations: 193.3 kB / 0.7804 GB, free: 4.395 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.303e-05/0.2405, allocations: 19.8 kB / 0.7804 GB, free: 4.375 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005381/0.2411, allocations: 200.4 kB / 0.7806 GB, free: 4.176 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.251e-06/0.2411, allocations: 7.938 kB / 0.7806 GB, free: 4.168 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.2411, allocations: 4 kB / 0.7806 GB, free: 4.164 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.2411, allocations: 0 / 0.7806 GB, free: 4.164 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00126/0.2424, allocations: 0.6252 MB / 0.7812 GB, free: 3.484 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.2424, allocations: 0 / 0.7812 GB, free: 3.484 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.798e-05/0.2425, allocations: 7.984 kB / 0.7812 GB, free: 3.477 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.2425, allocations: 8 kB / 0.7812 GB, free: 3.469 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.074e-05/0.2425, allocations: 4 kB / 0.7812 GB, free: 3.465 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.2426, allocations: 0 / 0.7812 GB, free: 3.465 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2426, allocations: 0 / 0.7812 GB, free: 3.465 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004312/0.243, allocations: 272.7 kB / 0.7815 GB, free: 3.184 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/0.2431, allocations: 108.8 kB / 0.7816 GB, free: 3.059 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.563e-05/0.2432, allocations: 0 / 0.7816 GB, free: 3.059 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002703/0.2435, allocations: 19.98 kB / 0.7816 GB, free: 3.039 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.2436, allocations: 27.81 kB / 0.7816 GB, free: 3.012 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.519e-05/0.2436, allocations: 8 kB / 0.7816 GB, free: 3.004 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0001726/0.2438, allocations: 144.6 kB / 0.7818 GB, free: 2.863 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.2439, allocations: 0 / 0.7818 GB, free: 2.863 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0007022/0.2446, allocations: 52 kB / 0.7818 GB, free: 2.812 MB / 458.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: 23 (initialStep.inport_fire,initialStep.outport_fire,step2.outport_fire,T2.enableFire,T3.enableFire,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,T1.condition,T1.enableFire,step2.newActive,step2.oldActive,step2.inport_fire,T2.fire,T2.t_start,step3.newActive,step3.oldActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.t_start) * Number of discrete states: 3 (step3.newActive,step2.newActive,initialStep.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001982/0.2448, allocations: 120.9 kB / 0.7819 GB, free: 2.688 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0005454/0.2453, allocations: 187 kB / 0.7821 GB, free: 2.508 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.2454, allocations: 0 / 0.7821 GB, free: 2.508 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001989/0.2456, allocations: 78.89 kB / 0.7822 GB, free: 2.434 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005513/0.2461, allocations: 32.56 kB / 0.7822 GB, free: 2.406 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.2474, allocations: 0.5545 MB / 0.7828 GB, free: 1.824 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003454/0.2478, allocations: 0.7957 MB / 0.7836 GB, free: 1.004 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0002306/0.248, allocations: 38.95 kB / 0.7836 GB, free: 0.9609 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.533e-05/0.2481, allocations: 23.44 kB / 0.7836 GB, free: 0.9375 MB / 458.7 MB Notification: Performance of SimCode: time 8.21e-07/0.2482, allocations: 0 / 0.7836 GB, free: 0.9375 MB / 458.7 MB Notification: Performance of Templates: time 0.3435/0.5917, allocations: 1.992 MB / 0.7856 GB, free: 127 MB / 458.7 MB