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/ModelicaServices 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/Complex 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.294/1.294, allocations: 222.9 MB / 239.5 MB, free: 4.758 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 196.4 kB / 289.8 MB, free: 2.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4702/0.4702, allocations: 91.9 MB / 431.8 MB, free: 9.418 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 75.88 kB / 0.5019 GB, free: 8.145 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2902/0.2917, allocations: 71.27 MB / 0.5715 GB, free: 36.41 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.Tutorial.Example_3.Example_3): time 0.009173/0.3009, allocations: 14.06 MB / 0.5852 GB, free: 27.25 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.006479/0.3074, allocations: 3.742 MB / 0.5888 GB, free: 24.55 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001821/0.3092, allocations: 31.81 kB / 0.5889 GB, free: 24.55 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001087/0.3104, allocations: 393.4 kB / 0.5892 GB, free: 24.39 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003044/0.3134, allocations: 1.257 MB / 0.5905 GB, free: 23.54 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002205/0.3156, allocations: 1.258 MB / 0.5917 GB, free: 22.79 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004023/0.3197, allocations: 3.806 MB / 0.5954 GB, free: 20.91 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001108/0.3208, allocations: 0.848 MB / 0.5963 GB, free: 20.44 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001885/0.3227, allocations: 1.383 MB / 0.5976 GB, free: 19.79 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001523/0.3242, allocations: 1.777 MB / 0.5993 GB, free: 18.96 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000351/0.3246, allocations: 179.3 kB / 0.5995 GB, free: 18.96 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007356/0.3253, allocations: 315.2 kB / 0.5998 GB, free: 18.92 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004488/0.3258, allocations: 0.6465 MB / 0.6004 GB, free: 18.53 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001094/0.3269, allocations: 1.512 MB / 0.6019 GB, free: 17.53 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002686/0.3296, allocations: 3.57 MB / 0.6054 GB, free: 16.24 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3296, allocations: 0.6094 kB / 0.6054 GB, free: 16.24 MB / 430.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.3296, allocations: 0 / 0.6054 GB, free: 16.24 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.798e-05/0.3297, allocations: 0 / 0.6054 GB, free: 16.24 MB / 430.1 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.01797/0.3477, allocations: 5.369 MB / 0.6106 GB, free: 13.7 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.3477, allocations: 9.625 kB / 0.6107 GB, free: 13.7 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01067/0.3584, allocations: 1.614 MB / 0.6122 GB, free: 13.34 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00463/0.3631, allocations: 2.02 MB / 0.6142 GB, free: 12.11 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004193/0.3635, allocations: 465.5 kB / 0.6146 GB, free: 11.72 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005967/0.3641, allocations: 202 kB / 0.6148 GB, free: 11.65 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004816/0.3689, allocations: 2.421 MB / 0.6172 GB, free: 10.7 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.634e-05/0.369, allocations: 2.062 kB / 0.6172 GB, free: 10.7 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002066/0.3692, allocations: 71.5 kB / 0.6173 GB, free: 10.65 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.197e-05/0.3692, allocations: 49.7 kB / 0.6173 GB, free: 10.64 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004424/0.3737, allocations: 2.238 MB / 0.6195 GB, free: 9.84 MB / 430.1 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.01537/0.3891, allocations: 9.272 MB / 0.6286 GB, free: 3.371 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008983/0.3981, allocations: 4.412 MB / 0.6329 GB, free: 15.12 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003107/0.4012, allocations: 1.566 MB / 0.6344 GB, free: 13.55 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000205/0.4014, allocations: 37.95 kB / 0.6344 GB, free: 13.51 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003405/0.4048, allocations: 1.794 MB / 0.6362 GB, free: 11.69 MB / 446.1 MB Notification: Performance of pre-optimization done (n=242): time 4.378e-06/0.4049, allocations: 0 / 0.6362 GB, free: 11.69 MB / 446.1 MB Notification: Performance of matching and sorting (n=242): time 0.06894/0.4738, allocations: 16.55 MB / 0.6524 GB, free: 11.01 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/0.474, allocations: 239.7 kB / 0.6526 GB, free: 10.72 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004094/0.4781, allocations: 2.519 MB / 0.655 GB, free: 8.188 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006137/0.4787, allocations: 69.7 kB / 0.6551 GB, free: 8.113 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008536/0.4796, allocations: 1.134 MB / 0.6562 GB, free: 6.969 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001001/0.4806, allocations: 0.8549 MB / 0.657 GB, free: 6.102 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001062/0.4816, allocations: 0.5776 MB / 0.6576 GB, free: 5.516 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.19e-05/0.4817, allocations: 301.1 kB / 0.6579 GB, free: 5.219 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003136/0.4849, allocations: 1.607 MB / 0.6595 GB, free: 3.609 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003343/0.4882, allocations: 1.938 MB / 0.6614 GB, free: 1.602 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04472/0.533, allocations: 11.24 MB / 0.6723 GB, free: 6.105 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.466e-06/0.533, allocations: 0 / 0.6723 GB, free: 6.105 MB / 478.1 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.02099/0.554, allocations: 7.495 MB / 0.6797 GB, free: 14.52 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001043/0.5541, allocations: 168.2 kB / 0.6798 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.735e-05/0.5541, allocations: 8 kB / 0.6798 GB, free: 14.31 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01073/0.5649, allocations: 2.819 MB / 0.6826 GB, free: 11.47 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003368/0.5683, allocations: 0.6397 MB / 0.6832 GB, free: 10.83 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0329/0.6012, allocations: 17.75 MB / 0.7005 GB, free: 8.398 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004202/0.6054, allocations: 417.2 kB / 0.7009 GB, free: 7.988 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000375/0.6058, allocations: 112 kB / 0.701 GB, free: 7.879 MB / 0.4981 GB 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.001303/0.6071, allocations: 0.6091 MB / 0.7016 GB, free: 7.246 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006218/0.6077, allocations: 304.2 kB / 0.7019 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02323/0.631, allocations: 7.38 MB / 0.7091 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.498e-05/0.631, allocations: 24 kB / 0.7092 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.631, allocations: 0 / 0.7092 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-05/0.6311, allocations: 19.89 kB / 0.7092 GB, free: 15.46 MB / 0.5137 GB 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.02845/0.6596, allocations: 11.58 MB / 0.7205 GB, free: 3.621 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.786e-05/0.6596, allocations: 0 / 0.7205 GB, free: 3.621 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001522/0.6611, allocations: 239.8 kB / 0.7207 GB, free: 3.387 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0122/0.6734, allocations: 3.443 MB / 0.7241 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003874/0.6738, allocations: 63.91 kB / 0.7241 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0391/0.7129, allocations: 19.03 MB / 0.7427 GB, free: 12.26 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.7129, allocations: 0 / 0.7427 GB, free: 12.26 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02648/0.7394, allocations: 9.214 MB / 0.7517 GB, free: 2.973 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001215/0.7406, allocations: 440.7 kB / 0.7521 GB, free: 2.52 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009369/0.7416, allocations: 51.94 kB / 0.7522 GB, free: 2.469 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003143/0.7447, allocations: 223.8 kB / 0.7524 GB, free: 2.25 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001439/0.7462, allocations: 374.4 kB / 0.7528 GB, free: 1.879 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00034/0.7466, allocations: 67.97 kB / 0.7528 GB, free: 1.812 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003202/0.7498, allocations: 1.677 MB / 0.7545 GB, free: 136 kB / 0.545 GB Notification: Performance of sort global known variables: time 2.2e-07/0.7498, allocations: 0 / 0.7545 GB, free: 136 kB / 0.545 GB Notification: Performance of remove unused functions: time 0.003654/0.7534, allocations: 1.03 MB / 0.7555 GB, free: 15.1 MB / 0.5606 GB 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.0004758/0.7539, allocations: 185.2 kB / 0.7556 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01253/0.7665, allocations: 5.785 MB / 0.7613 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.7665, allocations: 0 / 0.7613 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.008774/0.7753, allocations: 3.558 MB / 0.7648 GB, free: 5.309 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002798/0.7781, allocations: 290.1 kB / 0.765 GB, free: 5.027 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2024/0.9805, allocations: 6.621 MB / 0.7715 GB, free: 162.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001272/0.9818, allocations: 1.792 MB / 0.7733 GB, free: 161.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001194/0.983, allocations: 173.7 kB / 0.7734 GB, free: 161.4 MB / 0.5606 GB Notification: Performance of SimCode: time 7.21e-07/0.983, allocations: 0 / 0.7734 GB, free: 161.4 MB / 0.5606 GB Notification: Performance of Templates: time 0.08618/1.069, allocations: 103.2 MB / 0.8742 GB, free: 88.01 MB / 0.5606 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)