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.001334/0.001334, allocations: 110.4 kB / 16.27 MB, free: 6.352 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.44/1.44, allocations: 222.9 MB / 239.9 MB, free: 4.609 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.00167/0.00167, allocations: 187.6 kB / 290.2 MB, free: 2.332 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5431/0.5431, allocations: 92.62 MB / 433 MB, free: 8.629 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002299/0.002299, allocations: 75.88 kB / 0.5034 GB, free: 6.945 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3789/0.3813, allocations: 71.4 MB / 0.5731 GB, free: 36.21 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.Tutorial.Example_3.Example_3): time 0.01099/0.3923, allocations: 13.41 MB / 0.5862 GB, free: 27.09 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008579/0.4009, allocations: 3.644 MB / 0.5897 GB, free: 24.45 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003705/0.4047, allocations: 24 kB / 0.5898 GB, free: 24.45 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002309/0.407, allocations: 0.5115 MB / 0.5903 GB, free: 24.16 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006214/0.4133, allocations: 1.439 MB / 0.5917 GB, free: 23.17 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003573/0.4169, allocations: 1.349 MB / 0.593 GB, free: 22.44 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006866/0.4238, allocations: 4.082 MB / 0.597 GB, free: 20.33 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00195/0.4258, allocations: 0.9246 MB / 0.5979 GB, free: 19.84 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003415/0.4292, allocations: 1.592 MB / 0.5994 GB, free: 19.01 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003654/0.4329, allocations: 1.934 MB / 0.6013 GB, free: 18.02 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001717/0.4347, allocations: 365 kB / 0.6017 GB, free: 18.02 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002295/0.437, allocations: 0.5023 MB / 0.6022 GB, free: 17.98 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001135/0.4381, allocations: 0.8151 MB / 0.6029 GB, free: 17.42 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003077/0.4412, allocations: 1.707 MB / 0.6046 GB, free: 16.22 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007179/0.4484, allocations: 4.472 MB / 0.609 GB, free: 14.31 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.825e-06/0.4485, allocations: 0 / 0.609 GB, free: 14.31 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.4485, allocations: 1.312 kB / 0.609 GB, free: 14.31 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002005/0.4487, allocations: 0 / 0.609 GB, free: 14.31 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.0239/0.4726, allocations: 5.374 MB / 0.6142 GB, free: 11.76 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.4727, allocations: 8.25 kB / 0.6142 GB, free: 11.76 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0119/0.4846, allocations: 1.624 MB / 0.6158 GB, free: 11.4 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005854/0.4905, allocations: 2.013 MB / 0.6178 GB, free: 10.17 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005677/0.4911, allocations: 464.5 kB / 0.6182 GB, free: 9.785 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000969/0.492, allocations: 202.9 kB / 0.6184 GB, free: 9.715 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006215/0.4983, allocations: 2.42 MB / 0.6208 GB, free: 8.77 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.388e-05/0.4984, allocations: 5.719 kB / 0.6208 GB, free: 8.766 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002353/0.4986, allocations: 71.52 kB / 0.6209 GB, free: 8.711 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.02e-05/0.4986, allocations: 44.69 kB / 0.6209 GB, free: 8.711 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005352/0.504, allocations: 2.241 MB / 0.6231 GB, free: 7.832 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.02008/0.5241, allocations: 9.262 MB / 0.6321 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01125/0.5354, allocations: 4.427 MB / 0.6365 GB, free: 12.06 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004031/0.5395, allocations: 1.566 MB / 0.638 GB, free: 10.48 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002773/0.5398, allocations: 33.97 kB / 0.638 GB, free: 10.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004517/0.5443, allocations: 1.799 MB / 0.6398 GB, free: 8.625 MB / 446.1 MB Notification: Performance of pre-optimization done (n=242): time 6.633e-06/0.5444, allocations: 0 / 0.6398 GB, free: 8.625 MB / 446.1 MB Notification: Performance of matching and sorting (n=242): time 0.07599/0.6204, allocations: 16.55 MB / 0.6559 GB, free: 7.934 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001822/0.6206, allocations: 231.6 kB / 0.6562 GB, free: 7.656 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005478/0.6261, allocations: 2.523 MB / 0.6586 GB, free: 5.117 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008753/0.627, allocations: 69.7 kB / 0.6587 GB, free: 5.043 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001335/0.6283, allocations: 1.122 MB / 0.6598 GB, free: 3.91 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001879/0.6302, allocations: 0.8589 MB / 0.6606 GB, free: 3.039 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001611/0.6319, allocations: 0.5853 MB / 0.6612 GB, free: 2.445 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.632, allocations: 301.1 kB / 0.6615 GB, free: 2.148 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003786/0.6358, allocations: 1.615 MB / 0.6631 GB, free: 0.5312 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004327/0.6402, allocations: 1.93 MB / 0.665 GB, free: 14.53 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04922/0.6894, allocations: 11.27 MB / 0.676 GB, free: 3.012 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.349e-05/0.6895, allocations: 4 kB / 0.676 GB, free: 3.008 MB / 478.1 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.02625/0.7158, allocations: 7.491 MB / 0.6833 GB, free: 11.43 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001754/0.716, allocations: 176.2 kB / 0.6834 GB, free: 11.22 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.862e-05/0.716, allocations: 4 kB / 0.6835 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01168/0.7277, allocations: 2.823 MB / 0.6862 GB, free: 8.367 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003896/0.7316, allocations: 0.6437 MB / 0.6868 GB, free: 7.723 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04103/0.7727, allocations: 19.19 MB / 0.7056 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004687/0.7774, allocations: 413.2 kB / 0.706 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007348/0.7782, allocations: 123.9 kB / 0.7061 GB, free: 3.285 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.002158/0.7803, allocations: 0.617 MB / 0.7067 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001194/0.7815, allocations: 304.2 kB / 0.707 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0264/0.8079, allocations: 7.384 MB / 0.7142 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.4e-05/0.808, allocations: 27.94 kB / 0.7142 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.808, allocations: 0 / 0.7142 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-05/0.8081, allocations: 15.95 kB / 0.7142 GB, free: 10.87 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.03424/0.8424, allocations: 11.56 MB / 0.7255 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.929e-05/0.8424, allocations: 4 kB / 0.7255 GB, free: 15.03 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001554/0.844, allocations: 239.7 kB / 0.7258 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01296/0.8569, allocations: 3.447 MB / 0.7291 GB, free: 11.33 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006475/0.8576, allocations: 55.98 kB / 0.7292 GB, free: 11.28 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04775/0.9054, allocations: 20.9 MB / 0.7496 GB, free: 5.785 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/0.9054, allocations: 0 / 0.7496 GB, free: 5.785 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03056/0.936, allocations: 9.208 MB / 0.7586 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001439/0.9375, allocations: 444.6 kB / 0.759 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001376/0.9389, allocations: 52 kB / 0.7591 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003525/0.9424, allocations: 219.8 kB / 0.7593 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001767/0.9442, allocations: 378.5 kB / 0.7596 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006206/0.9448, allocations: 67.98 kB / 0.7597 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00394/0.9488, allocations: 1.681 MB / 0.7613 GB, free: 9.656 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.71e-07/0.9488, allocations: 0 / 0.7613 GB, free: 9.656 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00529/0.9541, allocations: 1.03 MB / 0.7623 GB, free: 8.625 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.0008187/0.955, allocations: 181.2 kB / 0.7625 GB, free: 8.441 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01816/0.9731, allocations: 5.972 MB / 0.7683 GB, free: 2.293 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/0.9732, allocations: 0 / 0.7683 GB, free: 2.293 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.2383/1.212, allocations: 3.621 MB / 0.7719 GB, free: 164.4 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004733/1.216, allocations: 301.9 kB / 0.7722 GB, free: 164.4 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01629/1.233, allocations: 5.628 MB / 0.7777 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0019/1.235, allocations: 1.787 MB / 0.7794 GB, free: 161.6 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001651/1.236, allocations: 184.2 kB / 0.7796 GB, free: 161.6 MB / 0.5606 GB Notification: Performance of SimCode: time 1.744e-06/1.236, allocations: 0 / 0.7796 GB, free: 161.6 MB / 0.5606 GB Notification: Performance of Templates: time 0.1072/1.344, allocations: 103.2 MB / 0.8803 GB, free: 84.43 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)