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.001264/0.001264, allocations: 106.6 kB / 15.99 MB, free: 6.348 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.292/1.292, allocations: 222.9 MB / 239.6 MB, free: 4.77 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.001285/0.001285, allocations: 192.5 kB / 289.9 MB, free: 2.496 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4777/0.4777, allocations: 91.9 MB / 432 MB, free: 9.449 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 79.88 kB / 0.502 GB, free: 8.102 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2714, allocations: 71.26 MB / 0.5716 GB, free: 36.41 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.Tutorial.Example_3.Example_3): time 0.008993/0.2804, allocations: 14.06 MB / 0.5854 GB, free: 27.16 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.005924/0.2864, allocations: 3.721 MB / 0.589 GB, free: 24.48 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00158/0.288, allocations: 31.81 kB / 0.589 GB, free: 24.48 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001083/0.2891, allocations: 393.1 kB / 0.5894 GB, free: 24.31 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002892/0.292, allocations: 1.247 MB / 0.5906 GB, free: 23.48 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002022/0.294, allocations: 1.262 MB / 0.5918 GB, free: 22.71 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003342/0.2974, allocations: 4.09 MB / 0.5958 GB, free: 20.6 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001057/0.2985, allocations: 0.926 MB / 0.5967 GB, free: 20.11 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00179/0.3003, allocations: 1.601 MB / 0.5983 GB, free: 19.26 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001548/0.3018, allocations: 1.926 MB / 0.6002 GB, free: 18.28 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004604/0.3023, allocations: 364 kB / 0.6005 GB, free: 18.28 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008082/0.3031, allocations: 0.5075 MB / 0.601 GB, free: 18.23 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004449/0.3036, allocations: 0.8237 MB / 0.6018 GB, free: 17.66 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001059/0.3046, allocations: 1.706 MB / 0.6035 GB, free: 16.47 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002872/0.3075, allocations: 3.621 MB / 0.607 GB, free: 15.17 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.3075, allocations: 0 / 0.607 GB, free: 15.17 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3075, allocations: 1.922 kB / 0.607 GB, free: 15.17 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.708e-05/0.3076, allocations: 4 kB / 0.607 GB, free: 15.16 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.01611/0.3237, allocations: 5.365 MB / 0.6123 GB, free: 12.62 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.3238, allocations: 10.19 kB / 0.6123 GB, free: 12.62 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01033/0.3341, allocations: 1.618 MB / 0.6139 GB, free: 12.27 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003681/0.3378, allocations: 2.017 MB / 0.6158 GB, free: 11.04 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003627/0.3382, allocations: 468.7 kB / 0.6163 GB, free: 10.64 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003648/0.3386, allocations: 202.4 kB / 0.6165 GB, free: 10.57 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004524/0.3431, allocations: 2.421 MB / 0.6189 GB, free: 9.629 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.593e-05/0.3431, allocations: 0 / 0.6189 GB, free: 9.629 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002068/0.3434, allocations: 77.72 kB / 0.6189 GB, free: 9.57 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.252e-05/0.3434, allocations: 47.03 kB / 0.619 GB, free: 9.566 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00423/0.3476, allocations: 2.236 MB / 0.6212 GB, free: 8.766 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.01464/0.3623, allocations: 9.269 MB / 0.6302 GB, free: 2.266 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009129/0.3714, allocations: 4.407 MB / 0.6345 GB, free: 13.63 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002701/0.3742, allocations: 1.574 MB / 0.636 GB, free: 12.04 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002034/0.3744, allocations: 37.97 kB / 0.6361 GB, free: 12 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003223/0.3776, allocations: 1.808 MB / 0.6378 GB, free: 10.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=242): time 4.549e-06/0.3776, allocations: 0 / 0.6378 GB, free: 10.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=242): time 0.07066/0.4483, allocations: 16.55 MB / 0.654 GB, free: 9.492 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/0.4484, allocations: 235.6 kB / 0.6542 GB, free: 9.211 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003895/0.4523, allocations: 2.519 MB / 0.6567 GB, free: 6.676 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004974/0.4528, allocations: 69.7 kB / 0.6568 GB, free: 6.602 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007957/0.4537, allocations: 1.122 MB / 0.6579 GB, free: 5.469 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009027/0.4546, allocations: 0.8589 MB / 0.6587 GB, free: 4.598 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001055/0.4556, allocations: 0.5776 MB / 0.6593 GB, free: 4.012 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.854e-05/0.4557, allocations: 305.1 kB / 0.6595 GB, free: 3.711 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003082/0.4588, allocations: 1.607 MB / 0.6611 GB, free: 2.102 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003295/0.4621, allocations: 1.942 MB / 0.663 GB, free: 92 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04332/0.5054, allocations: 11.27 MB / 0.674 GB, free: 4.566 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/0.5055, allocations: 4 kB / 0.674 GB, free: 4.562 MB / 478.1 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.02084/0.5263, allocations: 7.495 MB / 0.6813 GB, free: 12.98 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.905e-05/0.5265, allocations: 174.2 kB / 0.6815 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.5265, allocations: 4 kB / 0.6815 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01046/0.5369, allocations: 2.815 MB / 0.6843 GB, free: 9.926 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003324/0.5403, allocations: 0.6475 MB / 0.6849 GB, free: 9.277 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03544/0.5757, allocations: 19.19 MB / 0.7036 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004252/0.58, allocations: 417.4 kB / 0.704 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003882/0.5804, allocations: 116 kB / 0.7041 GB, free: 4.852 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.001278/0.5817, allocations: 0.6238 MB / 0.7048 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006359/0.5824, allocations: 300.2 kB / 0.705 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02291/0.6053, allocations: 7.384 MB / 0.7123 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-05/0.6053, allocations: 27.94 kB / 0.7123 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.6054, allocations: 0 / 0.7123 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-05/0.6054, allocations: 11.95 kB / 0.7123 GB, free: 12.43 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.02881/0.6342, allocations: 11.58 MB / 0.7236 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.979e-05/0.6343, allocations: 4 kB / 0.7236 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001531/0.6358, allocations: 235.7 kB / 0.7238 GB, free: 360 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0121/0.6479, allocations: 3.436 MB / 0.7272 GB, free: 12.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005235/0.6485, allocations: 55.98 kB / 0.7272 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0425/0.691, allocations: 20.91 MB / 0.7477 GB, free: 7.344 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.6911, allocations: 0 / 0.7477 GB, free: 7.344 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02748/0.7185, allocations: 9.199 MB / 0.7566 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001137/0.7197, allocations: 448.6 kB / 0.7571 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006471/0.7204, allocations: 60 kB / 0.7571 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002615/0.723, allocations: 227.8 kB / 0.7573 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001213/0.7242, allocations: 374.5 kB / 0.7577 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001851/0.7244, allocations: 63.98 kB / 0.7578 GB, free: 12.9 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002698/0.7271, allocations: 1.681 MB / 0.7594 GB, free: 11.22 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.2e-07/0.7271, allocations: 0 / 0.7594 GB, free: 11.22 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002985/0.7301, allocations: 1.034 MB / 0.7604 GB, free: 10.18 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.0004128/0.7306, allocations: 181.2 kB / 0.7606 GB, free: 9.996 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01493/0.7455, allocations: 5.972 MB / 0.7664 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.69e-06/0.7455, allocations: 4 kB / 0.7664 GB, free: 3.84 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.009077/0.7546, allocations: 3.614 MB / 0.7699 GB, free: 140 kB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1843/0.9389, allocations: 296.2 kB / 0.7702 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009021/0.948, allocations: 6.632 MB / 0.7767 GB, free: 161.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009061/0.9489, allocations: 1.785 MB / 0.7784 GB, free: 161 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008166/0.9497, allocations: 181.2 kB / 0.7786 GB, free: 161 MB / 0.5606 GB Notification: Performance of SimCode: time 1.312e-06/0.9497, allocations: 0 / 0.7786 GB, free: 161 MB / 0.5606 GB Notification: Performance of Templates: time 0.07684/1.027, allocations: 103.2 MB / 0.8794 GB, free: 84.97 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)