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.001551/0.001551, allocations: 108.2 kB / 15.99 MB, free: 5.891 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.456/1.456, allocations: 222.9 MB / 239.6 MB, free: 4.777 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.00146/0.00146, allocations: 192.5 kB / 289.9 MB, free: 2.504 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5421/0.5421, allocations: 92.6 MB / 432.7 MB, free: 8.777 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002317/0.002317, allocations: 79.88 kB / 0.5029 GB, free: 7.305 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3366, allocations: 71.4 MB / 0.5726 GB, free: 36.54 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.Tutorial.Example_3.Example_3): time 0.01023/0.3469, allocations: 14.07 MB / 0.5863 GB, free: 27.01 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008406/0.3553, allocations: 3.721 MB / 0.59 GB, free: 24.32 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003601/0.3589, allocations: 25.41 kB / 0.59 GB, free: 24.32 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002068/0.361, allocations: 394.4 kB / 0.5904 GB, free: 24.16 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005073/0.3662, allocations: 1.257 MB / 0.5916 GB, free: 23.3 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003105/0.3693, allocations: 1.24 MB / 0.5928 GB, free: 22.57 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005786/0.3751, allocations: 4.089 MB / 0.5968 GB, free: 20.45 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001623/0.3767, allocations: 0.9342 MB / 0.5977 GB, free: 19.96 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002734/0.3795, allocations: 1.601 MB / 0.5993 GB, free: 19.11 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002947/0.3824, allocations: 1.925 MB / 0.6011 GB, free: 18.13 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001204/0.3837, allocations: 368.5 kB / 0.6015 GB, free: 18.13 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001733/0.3854, allocations: 0.5021 MB / 0.602 GB, free: 18.09 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006549/0.3861, allocations: 0.8282 MB / 0.6028 GB, free: 17.52 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00211/0.3882, allocations: 1.707 MB / 0.6045 GB, free: 16.32 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005166/0.3934, allocations: 3.621 MB / 0.608 GB, free: 15.02 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.655e-06/0.3934, allocations: 1.688 kB / 0.608 GB, free: 15.02 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3934, allocations: 0 / 0.608 GB, free: 15.02 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001805/0.3936, allocations: 0 / 0.608 GB, free: 15.02 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.02043/0.414, allocations: 5.366 MB / 0.6132 GB, free: 12.48 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.636e-05/0.4141, allocations: 9.25 kB / 0.6133 GB, free: 12.48 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01147/0.4256, allocations: 1.622 MB / 0.6148 GB, free: 12.12 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005593/0.4312, allocations: 2.017 MB / 0.6168 GB, free: 10.88 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005313/0.4318, allocations: 464.8 kB / 0.6172 GB, free: 10.5 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008802/0.4327, allocations: 199.4 kB / 0.6174 GB, free: 10.43 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006075/0.4388, allocations: 2.424 MB / 0.6198 GB, free: 9.48 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.216e-05/0.4388, allocations: 5.094 kB / 0.6198 GB, free: 9.477 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002486/0.4391, allocations: 76.44 kB / 0.6199 GB, free: 9.418 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.035e-05/0.4392, allocations: 43.81 kB / 0.6199 GB, free: 9.418 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00511/0.4443, allocations: 2.241 MB / 0.6221 GB, free: 8.613 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.01888/0.4632, allocations: 9.263 MB / 0.6312 GB, free: 1.387 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01062/0.4738, allocations: 4.423 MB / 0.6355 GB, free: 12.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0039/0.4778, allocations: 1.566 MB / 0.637 GB, free: 11.15 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000254/0.4781, allocations: 37.97 kB / 0.637 GB, free: 11.11 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004095/0.4822, allocations: 1.795 MB / 0.6388 GB, free: 9.297 MB / 446.1 MB Notification: Performance of pre-optimization done (n=242): time 4.468e-06/0.4822, allocations: 0 / 0.6388 GB, free: 9.297 MB / 446.1 MB Notification: Performance of matching and sorting (n=242): time 0.07422/0.5564, allocations: 16.55 MB / 0.655 GB, free: 8.609 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001796/0.5566, allocations: 239.6 kB / 0.6552 GB, free: 8.324 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005109/0.5617, allocations: 2.519 MB / 0.6576 GB, free: 5.789 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008556/0.5626, allocations: 69.7 kB / 0.6577 GB, free: 5.715 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001163/0.5638, allocations: 1.122 MB / 0.6588 GB, free: 4.582 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001692/0.5655, allocations: 0.8589 MB / 0.6596 GB, free: 3.711 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001349/0.5669, allocations: 0.5815 MB / 0.6602 GB, free: 3.121 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.567, allocations: 305.1 kB / 0.6605 GB, free: 2.82 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003675/0.5707, allocations: 1.607 MB / 0.6621 GB, free: 1.211 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004344/0.5751, allocations: 1.942 MB / 0.664 GB, free: 15.2 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04871/0.6238, allocations: 11.26 MB / 0.675 GB, free: 3.688 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-05/0.6239, allocations: 4 kB / 0.675 GB, free: 3.684 MB / 478.1 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.02425/0.6481, allocations: 7.487 MB / 0.6823 GB, free: 12.11 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001799/0.6483, allocations: 174.2 kB / 0.6825 GB, free: 11.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.012e-05/0.6484, allocations: 4.562 kB / 0.6825 GB, free: 11.89 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01132/0.6597, allocations: 2.826 MB / 0.6852 GB, free: 9.043 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003727/0.6635, allocations: 0.6553 MB / 0.6859 GB, free: 8.387 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03936/0.7029, allocations: 19.2 MB / 0.7046 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00472/0.7076, allocations: 413.2 kB / 0.705 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005685/0.7082, allocations: 115.9 kB / 0.7051 GB, free: 3.961 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.001529/0.7097, allocations: 0.6176 MB / 0.7057 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008053/0.7106, allocations: 308.2 kB / 0.706 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0246/0.7352, allocations: 7.376 MB / 0.7132 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.207e-05/0.7352, allocations: 27.94 kB / 0.7132 GB, free: 11.56 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.7353, allocations: 0 / 0.7132 GB, free: 11.56 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.216e-05/0.7353, allocations: 15.95 kB / 0.7133 GB, free: 11.55 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.0323/0.7676, allocations: 11.57 MB / 0.7245 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-05/0.7677, allocations: 4 kB / 0.7246 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001688/0.7694, allocations: 239.6 kB / 0.7248 GB, free: 15.47 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01302/0.7824, allocations: 3.44 MB / 0.7281 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006985/0.7832, allocations: 55.98 kB / 0.7282 GB, free: 11.96 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04786/0.831, allocations: 20.9 MB / 0.7486 GB, free: 6.469 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.8311, allocations: 4 kB / 0.7486 GB, free: 6.465 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02931/0.8604, allocations: 9.208 MB / 0.7576 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001295/0.8617, allocations: 440.6 kB / 0.758 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008087/0.8625, allocations: 52 kB / 0.7581 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002704/0.8653, allocations: 223.8 kB / 0.7583 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001342/0.8666, allocations: 382.4 kB / 0.7586 GB, free: 12.08 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002229/0.8668, allocations: 67.98 kB / 0.7587 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003068/0.8699, allocations: 1.681 MB / 0.7604 GB, free: 10.33 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.2e-07/0.8699, allocations: 0 / 0.7604 GB, free: 10.33 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00378/0.8737, allocations: 1.03 MB / 0.7614 GB, free: 9.301 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.0004823/0.8742, allocations: 177.2 kB / 0.7615 GB, free: 9.121 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01689/0.8911, allocations: 5.976 MB / 0.7674 GB, free: 2.969 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.8912, allocations: 0 / 0.7674 GB, free: 2.969 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.2248/1.116, allocations: 3.624 MB / 0.7709 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003183/1.119, allocations: 297.9 kB / 0.7712 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01065/1.13, allocations: 6.634 MB / 0.7777 GB, free: 161.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001148/1.131, allocations: 1.788 MB / 0.7794 GB, free: 160.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00126/1.132, allocations: 182.1 kB / 0.7796 GB, free: 160.7 MB / 0.5606 GB Notification: Performance of SimCode: time 7.42e-07/1.132, allocations: 0 / 0.7796 GB, free: 160.7 MB / 0.5606 GB Notification: Performance of Templates: time 0.09467/1.227, allocations: 103.2 MB / 0.8803 GB, free: 83.99 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)