Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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) 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) Running command: translateModel(OpenIPSL.Examples.Tutorial.Example_3.Example_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3") translateModel(OpenIPSL.Examples.Tutorial.Example_3.Example_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001726/0.001726, allocations: 180.6 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.277/1.277, allocations: 222.9 MB / 239.6 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009726/0.0009723, allocations: 112.2 kB / 289.9 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4151/0.4151, allocations: 78.48 MB / 418.5 MB, free: 8.801 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 67.84 kB / 497.4 MB, free: 10.68 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2311/0.2323, allocations: 68.11 MB / 0.5523 GB, free: 20.24 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.Tutorial.Example_3.Example_3): time 0.008692/0.241, allocations: 14.04 MB / 0.566 GB, free: 6.141 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.004986/0.246, allocations: 3.745 MB / 0.5697 GB, free: 2.387 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009143/0.247, allocations: 28 kB / 0.5697 GB, free: 2.359 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000811/0.2478, allocations: 393.2 kB / 0.5701 GB, free: 1.973 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002342/0.2502, allocations: 1.258 MB / 0.5713 GB, free: 0.7188 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001984/0.2521, allocations: 1.242 MB / 0.5725 GB, free: 15.48 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.003047/0.2552, allocations: 3.86 MB / 0.5763 GB, free: 11.61 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009935/0.2562, allocations: 0.8488 MB / 0.5771 GB, free: 10.71 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00136/0.2576, allocations: 1.396 MB / 0.5785 GB, free: 9.309 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001588/0.2592, allocations: 1.777 MB / 0.5802 GB, free: 7.523 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003339/0.2595, allocations: 180 kB / 0.5804 GB, free: 7.348 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006302/0.2602, allocations: 315.9 kB / 0.5807 GB, free: 7.039 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005045/0.2607, allocations: 0.653 MB / 0.5813 GB, free: 6.383 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00112/0.2618, allocations: 1.51 MB / 0.5828 GB, free: 4.863 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003104/0.2649, allocations: 4.34 MB / 0.587 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.2649, allocations: 0 / 0.587 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.265, allocations: 4 kB / 0.587 GB, free: 0.5039 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.602e-05/0.265, allocations: 0 / 0.587 GB, free: 0.5039 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 463 * Number of variables: 463 Notification: Performance of Generate backend data structure: time 0.01539/0.2804, allocations: 5.371 MB / 0.5923 GB, free: 11.03 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.2804, allocations: 8.031 kB / 0.5923 GB, free: 11.02 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009682/0.2901, allocations: 1.623 MB / 0.5939 GB, free: 9.391 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003288/0.2934, allocations: 2.009 MB / 0.5958 GB, free: 7.316 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004232/0.2939, allocations: 468.6 kB / 0.5963 GB, free: 6.797 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003249/0.2942, allocations: 199.9 kB / 0.5965 GB, free: 6.602 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004266/0.2985, allocations: 2.427 MB / 0.5988 GB, free: 4.148 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.157e-05/0.2985, allocations: 4 kB / 0.5988 GB, free: 4.145 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001961/0.2987, allocations: 68 kB / 0.5989 GB, free: 4.078 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.949e-05/0.2988, allocations: 47.98 kB / 0.599 GB, free: 4.031 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004264/0.3031, allocations: 2.243 MB / 0.6011 GB, free: 1.785 MB / 410.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01401/0.3171, allocations: 9.205 MB / 0.6101 GB, free: 8.234 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01012/0.3272, allocations: 4.42 MB / 0.6144 GB, free: 3.578 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002731/0.33, allocations: 1.566 MB / 0.616 GB, free: 2 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000201/0.3302, allocations: 37.97 kB / 0.616 GB, free: 1.961 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003122/0.3333, allocations: 1.802 MB / 0.6178 GB, free: 140 kB / 426.7 MB Notification: Performance of pre-optimization done (n=242): time 4.719e-06/0.3333, allocations: 0 / 0.6178 GB, free: 140 kB / 426.7 MB Notification: Performance of matching and sorting (n=242): time 0.07889/0.4122, allocations: 18.06 MB / 0.6354 GB, free: 13.94 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.722e-05/0.4123, allocations: 239.6 kB / 0.6356 GB, free: 13.65 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003572/0.4159, allocations: 2.515 MB / 0.6381 GB, free: 11.12 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002407/0.4162, allocations: 73.7 kB / 0.6382 GB, free: 11.04 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007661/0.4169, allocations: 1.126 MB / 0.6393 GB, free: 9.902 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000746/0.4177, allocations: 0.8589 MB / 0.6401 GB, free: 9.031 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00103/0.4187, allocations: 0.5815 MB / 0.6407 GB, free: 8.441 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.482e-05/0.4188, allocations: 305.1 kB / 0.641 GB, free: 8.141 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003115/0.4219, allocations: 1.607 MB / 0.6425 GB, free: 6.531 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003354/0.4253, allocations: 1.942 MB / 0.6444 GB, free: 4.52 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04401/0.4693, allocations: 11.24 MB / 0.6554 GB, free: 9.027 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.346e-06/0.4694, allocations: 0 / 0.6554 GB, free: 9.027 MB / 474.7 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.02126/0.4906, allocations: 7.507 MB / 0.6627 GB, free: 1.426 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.12e-05/0.4907, allocations: 168.5 kB / 0.6629 GB, free: 1.227 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.517e-05/0.4908, allocations: 4 kB / 0.6629 GB, free: 1.223 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01075/0.5015, allocations: 2.815 MB / 0.6657 GB, free: 14.39 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003/0.5045, allocations: 0.6475 MB / 0.6663 GB, free: 13.74 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2343/0.7389, allocations: 17.73 MB / 0.6836 GB, free: 105.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00383/0.7428, allocations: 410.5 kB / 0.684 GB, free: 105.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002752/0.7431, allocations: 117.4 kB / 0.6841 GB, free: 105.1 MB / 490.7 MB Warning: Assuming fixed start value for the following 9 variables: gen3.gen.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real gen2.gen.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real gen1.gen.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real gen1.gen.delta:VARIABLE(flow=false start = gen1.gen.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real gen1.gen.e1q:VARIABLE(start = gen1.gen.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real gen1.gen.e1d:VARIABLE(start = gen1.gen.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real gen1.AVR.firstOrder2.y:VARIABLE(flow=false start = gen1.AVR.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real gen2.gen.delta:VARIABLE(flow=false start = gen2.gen.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real gen2.gen.e1q:VARIABLE(start = gen2.gen.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3,$whenCondition6,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (351): * Single equations (assignments): 338 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(4,2), (29,30), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.001062/0.7441, allocations: 0.619 MB / 0.6847 GB, free: 104.9 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004523/0.7446, allocations: 303.3 kB / 0.685 GB, free: 104.9 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02475/0.7693, allocations: 7.39 MB / 0.6922 GB, free: 103.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-05/0.7694, allocations: 24.64 kB / 0.6922 GB, free: 103.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.7694, allocations: 0 / 0.6922 GB, free: 103.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.252e-05/0.7694, allocations: 15.17 kB / 0.6923 GB, free: 103.7 MB / 490.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02585/0.7953, allocations: 11.56 MB / 0.7035 GB, free: 99.26 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.248e-06/0.7953, allocations: 0 / 0.7035 GB, free: 99.26 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001252/0.7966, allocations: 245 kB / 0.7038 GB, free: 99.23 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01129/0.8079, allocations: 3.437 MB / 0.7071 GB, free: 98.42 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000203/0.8081, allocations: 55.64 kB / 0.7072 GB, free: 98.38 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03569/0.8438, allocations: 19.04 MB / 0.7258 GB, free: 79.99 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.8438, allocations: 3.938 kB / 0.7258 GB, free: 79.98 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.172/1.016, allocations: 70.52 MB / 0.7946 GB, free: 8.68 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006268/1.017, allocations: 448.6 kB / 0.7951 GB, free: 8.219 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005349/1.017, allocations: 59.92 kB / 0.7951 GB, free: 8.16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002567/1.02, allocations: 223.7 kB / 0.7953 GB, free: 7.941 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001177/1.021, allocations: 366.4 kB / 0.7957 GB, free: 7.582 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002012/1.021, allocations: 71.98 kB / 0.7958 GB, free: 7.512 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002317/1.023, allocations: 1.677 MB / 0.7974 GB, free: 5.832 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.6e-07/1.023, allocations: 0 / 0.7974 GB, free: 5.832 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003703/1.027, allocations: 1.479 MB / 0.7988 GB, free: 4.352 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 24 (gen1.gen.delta,gen1.gen.w,gen1.gen.e1q,gen1.gen.e1d,gen1.AVR.ExcitationSystem.x_scaled[1],gen1.AVR.derivativeBlock.x,gen1.AVR.firstOrder2.y,gen1.AVR.simpleLagLim.state,gen2.gen.delta,gen2.gen.w,gen2.gen.e1q,gen2.gen.e1d,gen2.AVR.ExcitationSystem.x_scaled[1],gen2.AVR.derivativeBlock.x,gen2.AVR.firstOrder2.y,gen2.AVR.simpleLagLim.state,gen3.gen.delta,gen3.gen.w,gen3.gen.e1q,gen3.gen.e1d,gen3.AVR.ExcitationSystem.x_scaled[1],gen3.AVR.derivativeBlock.x,gen3.AVR.firstOrder2.y,gen3.AVR.simpleLagLim.state) * Number of discrete variables: 6 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(41,45), (1,6), (1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003445/1.027, allocations: 183.8 kB / 0.799 GB, free: 4.168 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01172/1.039, allocations: 5.801 MB / 0.8047 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/1.039, allocations: 0 / 0.8047 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008754/1.048, allocations: 3.577 MB / 0.8082 GB, free: 10.54 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001774/1.05, allocations: 290.9 kB / 0.8085 GB, free: 10.25 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01764/1.067, allocations: 9.96 MB / 0.8182 GB, free: 180 kB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001451/1.069, allocations: 1.88 MB / 0.82 GB, free: 14.27 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001202/1.07, allocations: 287.2 kB / 0.8203 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007645/1.071, allocations: 167.4 kB / 0.8205 GB, free: 13.82 MB / 0.5105 GB Notification: Performance of SimCode: time 4.81e-07/1.071, allocations: 4 kB / 0.8205 GB, free: 13.81 MB / 0.5105 GB Notification: Performance of Templates: time 0.1039/1.175, allocations: 75.63 MB / 0.8943 GB, free: 2.309 MB / 0.573 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3.sim & ./OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe 2>&1)