Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ThermoPower.Test.ElectricalComponents.TestElectrical6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008588/0.0008588, allocations: 89.19 kB / 16.31 MB, free: 6.457 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.0007824/0.0007824, allocations: 183.2 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.387/1.387, allocations: 205.4 MB / 223.4 MB, free: 5.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.373/0.373, allocations: 48.77 MB / 320.4 MB, free: 3.824 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008833/0.0008835, allocations: 19.98 kB / 391.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.134, allocations: 60.25 MB / 451.4 MB, free: 1.926 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.1767/0.3108, allocations: 2.647 MB / 454.1 MB, free: 47.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00136/0.3122, allocations: 0.8215 MB / 454.9 MB, free: 47.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003184/0.3125, allocations: 5.375 kB / 454.9 MB, free: 47.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001857/0.3127, allocations: 43.67 kB / 454.9 MB, free: 47.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004191/0.3131, allocations: 130.2 kB / 455.1 MB, free: 47.26 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002414/0.3134, allocations: 83.38 kB / 455.1 MB, free: 47.26 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004433/0.3139, allocations: 446.5 kB / 455.6 MB, free: 47.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002132/0.3141, allocations: 110 kB / 455.7 MB, free: 47.13 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002314/0.3143, allocations: 160.8 kB / 455.9 MB, free: 47.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002322/0.3146, allocations: 181.2 kB / 456 MB, free: 47.04 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.829e-05/0.3146, allocations: 17.81 kB / 456 MB, free: 47.04 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.753e-05/0.3147, allocations: 21.22 kB / 456.1 MB, free: 47.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.893e-05/0.3148, allocations: 64.84 kB / 456.1 MB, free: 47.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.132e-05/0.3149, allocations: 97.98 kB / 456.2 MB, free: 46.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002234/0.3151, allocations: 289.9 kB / 456.5 MB, free: 46.94 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3151, allocations: 0 / 456.5 MB, free: 46.94 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3151, allocations: 0 / 456.5 MB, free: 46.94 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.3151, allocations: 0 / 456.5 MB, free: 46.94 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0009368/0.3161, allocations: 0.6878 MB / 457.2 MB, free: 46.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.984e-05/0.3161, allocations: 10.47 kB / 457.2 MB, free: 46.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.3162, allocations: 47.62 kB / 457.3 MB, free: 46.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003142/0.3165, allocations: 338.2 kB / 457.6 MB, free: 46.17 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.3166, allocations: 22.94 kB / 457.6 MB, free: 46.17 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.592e-05/0.3166, allocations: 46.69 kB / 457.7 MB, free: 46.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003891/0.317, allocations: 293.8 kB / 457.9 MB, free: 46.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.317, allocations: 3.594 kB / 457.9 MB, free: 46.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.261e-05/0.3171, allocations: 8.188 kB / 457.9 MB, free: 46.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-06/0.3171, allocations: 8.812 kB / 458 MB, free: 46.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003322/0.3174, allocations: 215.1 kB / 458.2 MB, free: 46.08 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001332/0.3188, allocations: 1.119 MB / 459.3 MB, free: 45.53 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003119/0.3191, allocations: 245.6 kB / 459.5 MB, free: 45.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.3193, allocations: 122.3 kB / 459.6 MB, free: 45.49 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.3193, allocations: 2.719 kB / 459.6 MB, free: 45.49 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.836e-05/0.3193, allocations: 38.06 kB / 459.7 MB, free: 45.45 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.432e-06/0.3193, allocations: 0 / 459.7 MB, free: 45.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.00139/0.3207, allocations: 0.9485 MB / 460.6 MB, free: 45 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.901e-05/0.3207, allocations: 54.53 kB / 460.7 MB, free: 44.94 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002711/0.321, allocations: 351.6 kB / 461 MB, free: 44.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.321, allocations: 33.98 kB / 461.1 MB, free: 44.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.651e-05/0.3211, allocations: 208.5 kB / 461.3 MB, free: 44.67 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.331e-05/0.3212, allocations: 122.7 kB / 461.4 MB, free: 44.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.319e-05/0.3212, allocations: 5.75 kB / 461.4 MB, free: 44.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.393e-05/0.3213, allocations: 355.5 kB / 461.7 MB, free: 44.28 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001598/0.3214, allocations: 88.22 kB / 461.8 MB, free: 44.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.3216, allocations: 133.2 kB / 462 MB, free: 44.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001746/0.3218, allocations: 108.4 kB / 462.1 MB, free: 44.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.3218, allocations: 0 / 462.1 MB, free: 44.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007954/0.3226, allocations: 423 kB / 462.5 MB, free: 44.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.3226, allocations: 8.859 kB / 462.5 MB, free: 44.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.3226, allocations: 0 / 462.5 MB, free: 44.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000518/0.3232, allocations: 126.2 kB / 462.6 MB, free: 44.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003781/0.3235, allocations: 89.02 kB / 462.7 MB, free: 44.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002312/0.3259, allocations: 3.123 MB / 465.8 MB, free: 41.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001943/0.3261, allocations: 13.91 kB / 465.8 MB, free: 41.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.242e-05/0.3261, allocations: 16.12 kB / 465.8 MB, free: 41.22 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001287/0.3262, allocations: 143.4 kB / 466 MB, free: 41.08 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.148e-05/0.3263, allocations: 55.64 kB / 466 MB, free: 41.05 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004128/0.3267, allocations: 299.2 kB / 466.3 MB, free: 40.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.3267, allocations: 2.781 kB / 466.3 MB, free: 40.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-06/0.3268, allocations: 0 / 466.3 MB, free: 40.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.3268, allocations: 0.6562 kB / 466.3 MB, free: 40.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007608/0.3275, allocations: 0.7593 MB / 467.1 MB, free: 40.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.3275, allocations: 1.562 kB / 467.1 MB, free: 40.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003446/0.3279, allocations: 80.16 kB / 467.2 MB, free: 40.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.3279, allocations: 3.344 kB / 467.2 MB, free: 40.42 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.901e-05/0.3279, allocations: 4 kB / 467.2 MB, free: 40.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.3279, allocations: 3.312 kB / 467.2 MB, free: 40.42 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3279, allocations: 1.688 kB / 467.2 MB, free: 40.42 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004939/0.3284, allocations: 0.4917 MB / 467.7 MB, free: 40.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.759e-05/0.3285, allocations: 129.3 kB / 467.8 MB, free: 40.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.086e-05/0.3286, allocations: 7 kB / 467.8 MB, free: 40.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001902/0.3288, allocations: 14.3 kB / 467.8 MB, free: 40.01 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.887e-05/0.3288, allocations: 16.27 kB / 467.8 MB, free: 40.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.46e-05/0.3289, allocations: 17.88 kB / 467.9 MB, free: 40 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001878/0.329, allocations: 251 kB / 468.1 MB, free: 39.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3291, allocations: 0 / 468.1 MB, free: 39.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003472/0.3294, allocations: 90.72 kB / 468.2 MB, free: 39.86 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt,torqueGen_a.y,torqueGen_b.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 34 * 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 Backend phase and start with SimCode phase: time 7.812e-05/0.3295, allocations: 98.41 kB / 468.3 MB, free: 39.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007653/0.3303, allocations: 446.1 kB / 468.7 MB, free: 39.56 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3303, allocations: 0 / 468.7 MB, free: 39.56 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001677/0.3304, allocations: 133.7 kB / 468.9 MB, free: 39.51 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004598/0.3309, allocations: 84.83 kB / 468.9 MB, free: 39.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.3323, allocations: 1.276 MB / 470.2 MB, free: 38.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001843/0.3325, allocations: 0.8289 MB / 471 MB, free: 37.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001417/0.3327, allocations: 38.78 kB / 471.1 MB, free: 37.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.439e-05/0.3328, allocations: 32.5 kB / 471.1 MB, free: 37.95 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3328, allocations: 0 / 471.1 MB, free: 37.95 MB / 382.1 MB Notification: Performance of Templates: time 0.007749/0.3405, allocations: 4.055 MB / 475.2 MB, free: 37.68 MB / 382.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.makefile Environment - environmentSimulation: (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe 2>&1) Environment - environmentSimulation: