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.0009761/0.0009761, allocations: 98.88 kB / 16.02 MB, free: 76 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.306/1.306, allocations: 223.3 MB / 240 MB, free: 5.25 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.001074/0.001074, allocations: 184.5 kB / 291.3 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5019/0.5019, allocations: 91.93 MB / 434.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003696/0.0003696, allocations: 11.98 kB / 0.5054 GB, free: 7.219 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3011/0.3015, allocations: 72.47 MB / 0.5762 GB, free: 37.08 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.Tutorial.Example_3.Example_3): time 0.008751/0.3103, allocations: 13.41 MB / 0.5893 GB, free: 27.24 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.006345/0.3167, allocations: 3.725 MB / 0.5929 GB, free: 24.56 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001891/0.3186, allocations: 28.75 kB / 0.5929 GB, free: 24.56 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001205/0.3198, allocations: 385.1 kB / 0.5933 GB, free: 24.4 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003663/0.3235, allocations: 1.265 MB / 0.5945 GB, free: 23.55 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002342/0.3259, allocations: 1.234 MB / 0.5957 GB, free: 22.82 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004111/0.33, allocations: 3.815 MB / 0.5995 GB, free: 20.94 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001143/0.3311, allocations: 0.8388 MB / 0.6003 GB, free: 20.48 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001808/0.333, allocations: 1.306 MB / 0.6016 GB, free: 19.88 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001818/0.3348, allocations: 1.685 MB / 0.6032 GB, free: 19.11 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005387/0.3353, allocations: 145.3 kB / 0.6034 GB, free: 19.11 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008335/0.3362, allocations: 279.8 kB / 0.6036 GB, free: 19.06 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004284/0.3366, allocations: 0.5933 MB / 0.6042 GB, free: 18.71 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001254/0.3379, allocations: 1.471 MB / 0.6056 GB, free: 17.72 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003311/0.3412, allocations: 3.475 MB / 0.609 GB, free: 16.82 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.3412, allocations: 0.6562 kB / 0.609 GB, free: 16.82 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.3412, allocations: 1.688 kB / 0.609 GB, free: 16.82 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001155/0.3413, allocations: 0 / 0.609 GB, free: 16.82 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.01655/0.3579, allocations: 4.858 MB / 0.6138 GB, free: 14.64 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.358, allocations: 8.938 kB / 0.6138 GB, free: 14.64 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01128/0.3692, allocations: 1.628 MB / 0.6154 GB, free: 14.3 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004612/0.3739, allocations: 2.019 MB / 0.6173 GB, free: 13.07 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004323/0.3743, allocations: 476.7 kB / 0.6178 GB, free: 12.68 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004681/0.3748, allocations: 202.6 kB / 0.618 GB, free: 12.61 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005317/0.3801, allocations: 2.514 MB / 0.6204 GB, free: 11.66 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.237e-05/0.3802, allocations: 1.062 kB / 0.6205 GB, free: 11.66 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002262/0.3804, allocations: 72.08 kB / 0.6205 GB, free: 11.6 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.886e-05/0.3805, allocations: 44.16 kB / 0.6206 GB, free: 11.6 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005025/0.3855, allocations: 2.347 MB / 0.6229 GB, free: 10.78 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.01708/0.4026, allocations: 9.39 MB / 0.632 GB, free: 3.879 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01016/0.4128, allocations: 4.993 MB / 0.6369 GB, free: 14.81 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003671/0.4165, allocations: 1.664 MB / 0.6385 GB, free: 13.14 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002164/0.4168, allocations: 33.97 kB / 0.6386 GB, free: 13.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003891/0.4207, allocations: 1.895 MB / 0.6404 GB, free: 11.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=242): time 4.068e-06/0.4207, allocations: 0 / 0.6404 GB, free: 11.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=242): time 0.07755/0.4982, allocations: 18.93 MB / 0.6589 GB, free: 8.117 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/0.4984, allocations: 231.6 kB / 0.6591 GB, free: 7.84 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00464/0.503, allocations: 2.519 MB / 0.6616 GB, free: 5.305 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006226/0.5037, allocations: 73.7 kB / 0.6616 GB, free: 5.227 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001058/0.5048, allocations: 1.122 MB / 0.6627 GB, free: 4.094 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001396/0.5062, allocations: 0.8628 MB / 0.6636 GB, free: 3.219 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008346/0.507, allocations: 300.6 kB / 0.6639 GB, free: 2.918 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.495e-05/0.5071, allocations: 301.1 kB / 0.6642 GB, free: 2.621 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003981/0.5111, allocations: 1.697 MB / 0.6658 GB, free: 0.9219 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004147/0.5152, allocations: 2.04 MB / 0.6678 GB, free: 14.81 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0486/0.5639, allocations: 11.87 MB / 0.6794 GB, free: 2.691 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.345e-05/0.5639, allocations: 4 kB / 0.6794 GB, free: 2.688 MB / 478.1 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.02558/0.5895, allocations: 8.507 MB / 0.6877 GB, free: 10.09 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001168/0.5896, allocations: 170.3 kB / 0.6879 GB, free: 9.887 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.903e-05/0.5897, allocations: 11.92 kB / 0.6879 GB, free: 9.875 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01218/0.6019, allocations: 3.213 MB / 0.691 GB, free: 6.637 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003515/0.6054, allocations: 0.6514 MB / 0.6917 GB, free: 5.984 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03835/0.6438, allocations: 18.96 MB / 0.7102 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004549/0.6484, allocations: 469.2 kB / 0.7106 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006886/0.6491, allocations: 124 kB / 0.7107 GB, free: 1.766 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.001845/0.6509, allocations: 0.6091 MB / 0.7113 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009112/0.6518, allocations: 300.2 kB / 0.7116 GB, free: 0.8359 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02719/0.679, allocations: 8.618 MB / 0.72 GB, free: 8.16 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.873e-05/0.6791, allocations: 28 kB / 0.7201 GB, free: 8.133 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.6791, allocations: 0 / 0.7201 GB, free: 8.133 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.873e-05/0.6792, allocations: 15.89 kB / 0.7201 GB, free: 8.117 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.03317/0.7124, allocations: 12.8 MB / 0.7326 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.018e-05/0.7124, allocations: 0 / 0.7326 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00158/0.714, allocations: 255.7 kB / 0.7328 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01341/0.7274, allocations: 3.834 MB / 0.7366 GB, free: 6.953 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005623/0.728, allocations: 59.98 kB / 0.7366 GB, free: 6.895 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04567/0.7737, allocations: 20.4 MB / 0.7565 GB, free: 1.926 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.7737, allocations: 0 / 0.7565 GB, free: 1.926 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03145/0.8052, allocations: 10.52 MB / 0.7668 GB, free: 7.328 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001228/0.8065, allocations: 452.7 kB / 0.7672 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001142/0.8076, allocations: 55.92 kB / 0.7673 GB, free: 6.809 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003372/0.811, allocations: 279.8 kB / 0.7676 GB, free: 6.535 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001419/0.8124, allocations: 382.3 kB / 0.7679 GB, free: 6.156 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003753/0.8128, allocations: 67.92 kB / 0.768 GB, free: 6.09 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003266/0.8161, allocations: 1.681 MB / 0.7696 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2e-07/0.8161, allocations: 0 / 0.7696 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004122/0.8202, allocations: 1.034 MB / 0.7706 GB, free: 3.371 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.0005586/0.8208, allocations: 177.3 kB / 0.7708 GB, free: 3.191 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.2223/1.043, allocations: 6.19 MB / 0.7769 GB, free: 165.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.613e-06/1.043, allocations: 3.75 kB / 0.7769 GB, free: 165.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.009512/1.053, allocations: 3.871 MB / 0.7806 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002881/1.056, allocations: 283.2 kB / 0.7809 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008716/1.064, allocations: 6.806 MB / 0.7876 GB, free: 161.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001106/1.065, allocations: 1.78 MB / 0.7893 GB, free: 160.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0011/1.067, allocations: 181.9 kB / 0.7895 GB, free: 160.6 MB / 0.5606 GB Notification: Performance of SimCode: time 7.21e-07/1.067, allocations: 0 / 0.7895 GB, free: 160.6 MB / 0.5606 GB Notification: Performance of Templates: time 0.08883/1.155, allocations: 102.9 MB / 0.89 GB, free: 79.4 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)