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.0015/0.0015, allocations: 108 kB / 16.41 MB, free: 6.027 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.335/1.335, allocations: 222.9 MB / 240.1 MB, free: 4.559 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.001308/0.001308, allocations: 192.5 kB / 290.4 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5099/0.5099, allocations: 91.9 MB / 432.4 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 82.48 kB / 0.5734 GB, free: 33.48 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1272, allocations: 71.29 MB / 0.643 GB, free: 3.625 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.Tutorial.Example_3.Example_3): time 0.01249/0.1397, allocations: 13.4 MB / 0.6561 GB, free: 6.168 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.007842/0.1476, allocations: 3.626 MB / 0.6596 GB, free: 2.531 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002574/0.1502, allocations: 27.94 kB / 0.6596 GB, free: 2.504 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001988/0.1522, allocations: 0.5071 MB / 0.6601 GB, free: 1.992 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005146/0.1574, allocations: 1.443 MB / 0.6615 GB, free: 0.5469 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003576/0.161, allocations: 1.354 MB / 0.6629 GB, free: 15.2 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.005865/0.1669, allocations: 4.108 MB / 0.6669 GB, free: 11.08 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001862/0.1688, allocations: 0.9213 MB / 0.6678 GB, free: 10.1 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002668/0.1715, allocations: 1.607 MB / 0.6694 GB, free: 8.488 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002961/0.1744, allocations: 1.929 MB / 0.6712 GB, free: 6.551 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001142/0.1756, allocations: 364 kB / 0.6716 GB, free: 6.195 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001592/0.1772, allocations: 0.5038 MB / 0.6721 GB, free: 5.691 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001239/0.1785, allocations: 0.8249 MB / 0.6729 GB, free: 4.863 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002942/0.1814, allocations: 1.705 MB / 0.6745 GB, free: 3.148 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006215/0.1877, allocations: 4.524 MB / 0.679 GB, free: 14.61 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.1877, allocations: 4 kB / 0.679 GB, free: 14.61 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.1877, allocations: 0 / 0.679 GB, free: 14.61 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001683/0.1879, allocations: 4 kB / 0.679 GB, free: 14.6 MB / 494.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.01902/0.2069, allocations: 5.364 MB / 0.6842 GB, free: 9.133 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.207, allocations: 8.031 kB / 0.6842 GB, free: 9.125 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.011/0.218, allocations: 1.615 MB / 0.6858 GB, free: 7.504 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004656/0.2227, allocations: 2.024 MB / 0.6878 GB, free: 5.414 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00052/0.2232, allocations: 464.6 kB / 0.6882 GB, free: 4.898 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006004/0.2239, allocations: 199.9 kB / 0.6884 GB, free: 4.703 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004969/0.2288, allocations: 2.427 MB / 0.6908 GB, free: 2.25 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.181e-05/0.2289, allocations: 0 / 0.6908 GB, free: 2.25 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002106/0.2291, allocations: 72 kB / 0.6908 GB, free: 2.18 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.913e-05/0.2292, allocations: 44 kB / 0.6909 GB, free: 2.137 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00462/0.2338, allocations: 2.243 MB / 0.6931 GB, free: 15.89 MB / 0.4981 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 preOpt removeSimpleEquations (simulation): time 0.01755/0.2514, allocations: 9.209 MB / 0.7021 GB, free: 6.336 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01073/0.2621, allocations: 4.411 MB / 0.7064 GB, free: 1.688 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003341/0.2655, allocations: 1.566 MB / 0.7079 GB, free: 108 kB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002026/0.2657, allocations: 37.97 kB / 0.7079 GB, free: 68 kB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003592/0.2693, allocations: 1.796 MB / 0.7097 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=242): time 4.379e-06/0.2693, allocations: 0 / 0.7097 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of matching and sorting (n=242): time 0.07221/0.3415, allocations: 16.55 MB / 0.7259 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001243/0.3417, allocations: 239.5 kB / 0.7261 GB, free: 13.29 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004087/0.3458, allocations: 2.515 MB / 0.7285 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005894/0.3464, allocations: 73.7 kB / 0.7286 GB, free: 10.68 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009002/0.3473, allocations: 1.122 MB / 0.7297 GB, free: 9.543 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001179/0.3485, allocations: 0.8589 MB / 0.7305 GB, free: 8.672 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001104/0.3496, allocations: 0.5737 MB / 0.7311 GB, free: 8.09 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.796e-05/0.3497, allocations: 309.1 kB / 0.7314 GB, free: 7.785 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003325/0.3531, allocations: 1.607 MB / 0.733 GB, free: 6.176 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003706/0.3568, allocations: 1.942 MB / 0.7349 GB, free: 4.164 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04495/0.4018, allocations: 11.22 MB / 0.7458 GB, free: 8.699 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.819e-06/0.4018, allocations: 0 / 0.7458 GB, free: 8.699 MB / 0.545 GB Notification: Performance of matching and sorting (n=422) (initialization): time 0.02193/0.4237, allocations: 7.492 MB / 0.7531 GB, free: 1.113 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.000116/0.4239, allocations: 178.2 kB / 0.7533 GB, free: 0.9023 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.789e-05/0.4239, allocations: 4 kB / 0.7533 GB, free: 0.8984 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01105/0.435, allocations: 2.811 MB / 0.7561 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003387/0.4384, allocations: 0.6514 MB / 0.7567 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3611/0.7995, allocations: 19.16 MB / 0.7754 GB, free: 104.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004243/0.8038, allocations: 406.4 kB / 0.7758 GB, free: 104.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005864/0.8044, allocations: 120.9 kB / 0.7759 GB, free: 104.3 MB / 0.5606 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.001365/0.8058, allocations: 0.6258 MB / 0.7765 GB, free: 104.1 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006773/0.8065, allocations: 297.3 kB / 0.7768 GB, free: 104.1 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02502/0.8315, allocations: 7.38 MB / 0.784 GB, free: 103.7 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-05/0.8316, allocations: 27.59 kB / 0.784 GB, free: 103.7 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.8316, allocations: 0 / 0.784 GB, free: 103.7 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.89e-05/0.8317, allocations: 15.09 kB / 0.7841 GB, free: 103.7 MB / 0.5606 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.02688/0.8585, allocations: 11.55 MB / 0.7953 GB, free: 99.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.613e-05/0.8586, allocations: 0 / 0.7953 GB, free: 99.84 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001461/0.8601, allocations: 236.6 kB / 0.7956 GB, free: 99.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01107/0.8712, allocations: 3.429 MB / 0.7989 GB, free: 99.24 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005926/0.8718, allocations: 55.08 kB / 0.799 GB, free: 99.21 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0377/0.9095, allocations: 20.88 MB / 0.8194 GB, free: 81.59 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.9096, allocations: 4 kB / 0.8194 GB, free: 81.59 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02476/0.9343, allocations: 9.198 MB / 0.8283 GB, free: 72.32 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001213/0.9356, allocations: 448.1 kB / 0.8288 GB, free: 71.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008591/0.9365, allocations: 52 kB / 0.8288 GB, free: 71.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002565/0.939, allocations: 223.8 kB / 0.829 GB, free: 71.63 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001131/0.9402, allocations: 374.5 kB / 0.8294 GB, free: 71.26 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001519/0.9403, allocations: 67.92 kB / 0.8295 GB, free: 71.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002436/0.9428, allocations: 1.681 MB / 0.8311 GB, free: 69.51 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.5e-07/0.9428, allocations: 0 / 0.8311 GB, free: 69.51 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003348/0.9462, allocations: 1.032 MB / 0.8321 GB, free: 68.48 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.00041/0.9466, allocations: 183.6 kB / 0.8323 GB, free: 68.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01196/0.9585, allocations: 5.86 MB / 0.838 GB, free: 62.27 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/0.9586, allocations: 3.938 kB / 0.838 GB, free: 62.27 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.008663/0.9673, allocations: 3.627 MB / 0.8415 GB, free: 58.56 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002598/0.9699, allocations: 295.6 kB / 0.8418 GB, free: 58.28 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008995/0.9789, allocations: 5.546 MB / 0.8472 GB, free: 52.72 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001068/0.9801, allocations: 1.789 MB / 0.849 GB, free: 50.91 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001187/0.9813, allocations: 182 kB / 0.8492 GB, free: 50.73 MB / 0.5606 GB Notification: Performance of SimCode: time 1.363e-06/0.9813, allocations: 0 / 0.8492 GB, free: 50.73 MB / 0.5606 GB Notification: Performance of Templates: time 0.09982/1.081, allocations: 103.5 MB / 0.9502 GB, free: 11.21 MB / 0.6231 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)