Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo", uses=false) Using package Modelica_StateGraph2 with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007145/0.007145, allocations: 102.7 kB / 15.73 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 191.2 kB / 16.67 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2312/0.2312, allocations: 13.54 MB / 304.1 MB, free: 0.5 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001209, allocations: 63.91 kB / 421.8 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3239, allocations: 52.69 MB / 474.5 MB, free: 28.7 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample): time 0.003085/0.3271, allocations: 1.832 MB / 476.3 MB, free: 27.26 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001486/0.3286, allocations: 0.8176 MB / 477.1 MB, free: 26.61 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001545/0.3287, allocations: 19.78 kB / 477.1 MB, free: 26.6 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001027/0.3298, allocations: 0.6004 MB / 477.7 MB, free: 26.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.781e-05/0.3299, allocations: 29.44 kB / 477.8 MB, free: 26.12 MB / 366.1 MB [/home/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 NFTyping.typeClassSections: time 0.0006087/0.3305, allocations: 249.8 kB / 478 MB, free: 25.93 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004307/0.3309, allocations: 436.4 kB / 478.4 MB, free: 25.67 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006528/0.3316, allocations: 0.4933 MB / 478.9 MB, free: 25.38 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001563/0.3318, allocations: 155.9 kB / 479.1 MB, free: 25.28 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001581/0.3319, allocations: 157.9 kB / 479.2 MB, free: 25.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.077e-05/0.332, allocations: 35.62 kB / 479.3 MB, free: 25.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001253/0.3321, allocations: 50.78 kB / 479.3 MB, free: 25.15 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.563e-05/0.3322, allocations: 103.9 kB / 479.4 MB, free: 25.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.3323, allocations: 162.9 kB / 479.6 MB, free: 24.94 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004389/0.3328, allocations: 451.9 kB / 480 MB, free: 24.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.3328, allocations: 0 / 480 MB, free: 24.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3328, allocations: 1.375 kB / 480 MB, free: 24.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.312e-05/0.3328, allocations: 0 / 480 MB, free: 24.62 MB / 366.1 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.0008047/0.3336, allocations: 0.6367 MB / 480.6 MB, free: 24.04 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.3337, allocations: 13.48 kB / 480.7 MB, free: 24.03 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/0.3338, allocations: 49.27 kB / 480.7 MB, free: 24 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004334/0.3343, allocations: 334.7 kB / 481 MB, free: 23.69 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.432e-05/0.3343, allocations: 30 kB / 481.1 MB, free: 23.68 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.033e-05/0.3344, allocations: 42.5 kB / 481.1 MB, free: 23.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006664/0.335, allocations: 459.9 kB / 481.6 MB, free: 23.34 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.3351, allocations: 1.688 kB / 481.6 MB, free: 23.34 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.511e-05/0.3351, allocations: 15.28 kB / 481.6 MB, free: 23.33 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.3351, allocations: 9.688 kB / 481.6 MB, free: 23.33 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004469/0.3356, allocations: 285.1 kB / 481.9 MB, free: 23.19 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001557/0.3371, allocations: 1.878 MB / 483.7 MB, free: 21.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002946/0.3375, allocations: 384.4 kB / 484.1 MB, free: 21.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.277e-05/0.3376, allocations: 64.67 kB / 484.2 MB, free: 21.01 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.006e-05/0.3376, allocations: 88.67 kB / 484.3 MB, free: 20.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001896/0.3378, allocations: 115 kB / 484.4 MB, free: 20.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 4.288e-06/0.3378, allocations: 7.984 kB / 484.4 MB, free: 20.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004083/0.3383, allocations: 217.2 kB / 484.6 MB, free: 20.7 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.58e-05/0.3383, allocations: 108.2 kB / 484.7 MB, free: 20.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002145/0.3385, allocations: 256.2 kB / 484.9 MB, free: 20.37 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.461e-05/0.3386, allocations: 38.25 kB / 485 MB, free: 20.33 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.3387, allocations: 193.6 kB / 485.2 MB, free: 20.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.789e-05/0.3387, allocations: 56.44 kB / 485.2 MB, free: 20.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/0.3389, allocations: 108.6 kB / 485.3 MB, free: 20.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.946e-05/0.3389, allocations: 335.6 kB / 485.7 MB, free: 19.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.3391, allocations: 70.31 kB / 485.7 MB, free: 19.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001889/0.3393, allocations: 220.8 kB / 485.9 MB, free: 19.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000287/0.3395, allocations: 280.6 kB / 486.2 MB, free: 19.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.3396, allocations: 2.562 kB / 486.2 MB, free: 19.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000433/0.34, allocations: 317.3 kB / 486.5 MB, free: 19.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.34, allocations: 8.531 kB / 486.5 MB, free: 19.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.34, allocations: 4.562 kB / 486.5 MB, free: 19.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.486e-05/0.3401, allocations: 9.875 kB / 486.6 MB, free: 19.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.967e-05/0.3402, allocations: 30.52 kB / 486.6 MB, free: 19.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.588e-05/0.3402, allocations: 13.3 kB / 486.6 MB, free: 19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001791/0.3404, allocations: 33.5 kB / 486.6 MB, free: 18.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.495e-05/0.3404, allocations: 22.22 kB / 486.7 MB, free: 18.97 MB / 366.1 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,initialStep.oldActive,$PRE.initialStep.oldActive,step2.oldActive,$PRE.step2.oldActive,step3.oldActive,$PRE.step3.oldActive,T3.t_start,$PRE.T3.t_start,T3.enableFire,T3.fire,step3.outport_fire,step3.inport_fire,step3.newActive,$PRE.step3.newActive,T2.t_start,$PRE.T2.t_start,T2.enableFire,T2.fire,step2.outport_fire,step2.inport_fire,step2.newActive,$PRE.step2.newActive,T1.enableFire,T1.condition,initialStep.outport_fire,initialStep.inport_fire,initialStep.newActive,$PRE.initialStep.newActive,initialStep.active,$whenCondition1,$whenCondition2,T3.condition,T2.condition,initialStep.connectorNode.node.suspend,initialStep.connectorNode.node.resume,T3.outPort.checkOneDelayedTransitionPerLoop,step2.inPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,T2.outPort.checkOneDelayedTransitionPerLoop,step3.outPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,step2.inPort[1].checkUnaryConnection,initialStep.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001863/0.3406, allocations: 199.1 kB / 486.8 MB, free: 18.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.485e-05/0.3407, allocations: 23.11 kB / 486.9 MB, free: 18.79 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002884/0.341, allocations: 187.3 kB / 487.1 MB, free: 18.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.992e-06/0.341, allocations: 6.375 kB / 487.1 MB, free: 18.67 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.341, allocations: 0 / 487.1 MB, free: 18.67 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.341, allocations: 1.25 kB / 487.1 MB, free: 18.67 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000701/0.3417, allocations: 0.6237 MB / 487.7 MB, free: 18.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.3417, allocations: 1.188 kB / 487.7 MB, free: 18.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.15e-05/0.3417, allocations: 10.03 kB / 487.7 MB, free: 18.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.3418, allocations: 6.047 kB / 487.7 MB, free: 18.15 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.3418, allocations: 9.281 kB / 487.7 MB, free: 18.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.3418, allocations: 1.438 kB / 487.7 MB, free: 18.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3418, allocations: 0 / 487.7 MB, free: 18.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002843/0.3421, allocations: 267.6 kB / 488 MB, free: 17.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.354e-05/0.3422, allocations: 111 kB / 488.1 MB, free: 17.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.283e-05/0.3422, allocations: 9.5 kB / 488.1 MB, free: 17.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.3423, allocations: 24.7 kB / 488.1 MB, free: 17.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.193e-05/0.3424, allocations: 22.06 kB / 488.1 MB, free: 17.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.3424, allocations: 5.188 kB / 488.1 MB, free: 17.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001066/0.3425, allocations: 146.4 kB / 488.3 MB, free: 17.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3425, allocations: 0 / 488.3 MB, free: 17.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003735/0.3429, allocations: 77.3 kB / 488.4 MB, free: 17.66 MB / 366.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001691/0.3431, allocations: 118.4 kB / 488.5 MB, free: 17.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003285/0.3434, allocations: 199.8 kB / 488.7 MB, free: 17.47 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3434, allocations: 1.188 kB / 488.7 MB, free: 17.47 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.3436, allocations: 67.72 kB / 488.7 MB, free: 17.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000288/0.3439, allocations: 31.92 kB / 488.8 MB, free: 17.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007226/0.3446, allocations: 492.5 kB / 489.3 MB, free: 17.1 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002086/0.3448, allocations: 0.7941 MB / 490 MB, free: 16.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001092/0.3449, allocations: 41.88 kB / 490.1 MB, free: 16.33 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.294e-05/0.345, allocations: 23.53 kB / 490.1 MB, free: 16.32 MB / 366.1 MB Notification: Performance of SimCode: time 3.9e-07/0.345, allocations: 1.125 kB / 490.1 MB, free: 16.32 MB / 366.1 MB Notification: Performance of Templates: time 0.005585/0.3506, allocations: 2.268 MB / 492.4 MB, free: 15.19 MB / 366.1 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.makefile (rm -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.pipe ; mkfifo Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.pipe ; head -c 1048576 < Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.pipe >> ../files/Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.sim & ./Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.pipe 2>&1)