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.001298/0.001298, allocations: 101.2 kB / 16.27 MB, free: 5.969 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.305/1.305, allocations: 222.9 MB / 239.9 MB, free: 4.613 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.001274/0.001274, allocations: 196.4 kB / 290.2 MB, free: 2.32 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5067/0.5067, allocations: 91.9 MB / 432.3 MB, free: 9.258 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 79.88 kB / 0.5025 GB, free: 7.73 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3465/0.3481, allocations: 71.27 MB / 0.5721 GB, free: 36.65 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.Tutorial.Example_3.Example_3): time 0.009996/0.3581, allocations: 13.41 MB / 0.5852 GB, free: 27.79 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007178/0.3653, allocations: 3.645 MB / 0.5888 GB, free: 25.15 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002345/0.3677, allocations: 22.88 kB / 0.5888 GB, free: 25.15 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001483/0.3692, allocations: 0.5149 MB / 0.5893 GB, free: 24.86 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004619/0.3739, allocations: 1.434 MB / 0.5907 GB, free: 23.88 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002741/0.3766, allocations: 1.345 MB / 0.592 GB, free: 23.15 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005316/0.382, allocations: 4.085 MB / 0.596 GB, free: 21.04 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001548/0.3835, allocations: 0.9346 MB / 0.5969 GB, free: 20.54 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002555/0.3861, allocations: 1.588 MB / 0.5985 GB, free: 19.71 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002738/0.3889, allocations: 1.928 MB / 0.6004 GB, free: 18.73 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009352/0.3898, allocations: 363.2 kB / 0.6007 GB, free: 18.73 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0014/0.3912, allocations: 0.5036 MB / 0.6012 GB, free: 18.68 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006752/0.3919, allocations: 0.8226 MB / 0.602 GB, free: 18.12 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001784/0.3937, allocations: 1.703 MB / 0.6037 GB, free: 16.92 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005551/0.3993, allocations: 4.47 MB / 0.608 GB, free: 15.01 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.654e-06/0.3993, allocations: 5.25 kB / 0.608 GB, free: 15.01 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3993, allocations: 0 / 0.608 GB, free: 15.01 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000148/0.3995, allocations: 0 / 0.608 GB, free: 15.01 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.01907/0.4185, allocations: 5.365 MB / 0.6133 GB, free: 12.47 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.4186, allocations: 10.41 kB / 0.6133 GB, free: 12.47 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01089/0.4295, allocations: 1.622 MB / 0.6149 GB, free: 12.11 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00453/0.4341, allocations: 2.018 MB / 0.6168 GB, free: 10.88 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004183/0.4345, allocations: 464.4 kB / 0.6173 GB, free: 10.49 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004274/0.4349, allocations: 197.9 kB / 0.6175 GB, free: 10.42 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004709/0.4397, allocations: 2.42 MB / 0.6198 GB, free: 9.477 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.44e-05/0.4397, allocations: 5.125 kB / 0.6198 GB, free: 9.473 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002093/0.4399, allocations: 76.78 kB / 0.6199 GB, free: 9.414 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-05/0.44, allocations: 47.77 kB / 0.62 GB, free: 9.41 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004519/0.4445, allocations: 2.235 MB / 0.6221 GB, free: 8.609 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.01592/0.4604, allocations: 9.272 MB / 0.6312 GB, free: 1.578 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009783/0.4702, allocations: 4.419 MB / 0.6355 GB, free: 12.93 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003486/0.4738, allocations: 1.562 MB / 0.637 GB, free: 11.35 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002437/0.474, allocations: 45.97 kB / 0.6371 GB, free: 11.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003506/0.4776, allocations: 1.792 MB / 0.6388 GB, free: 9.492 MB / 446.1 MB Notification: Performance of pre-optimization done (n=242): time 4.117e-06/0.4776, allocations: 4 kB / 0.6388 GB, free: 9.488 MB / 446.1 MB Notification: Performance of matching and sorting (n=242): time 0.07328/0.5509, allocations: 16.55 MB / 0.655 GB, free: 8.801 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.551, allocations: 235.6 kB / 0.6552 GB, free: 8.52 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004905/0.5559, allocations: 2.519 MB / 0.6577 GB, free: 5.984 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007112/0.5567, allocations: 69.7 kB / 0.6577 GB, free: 5.91 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009962/0.5577, allocations: 1.126 MB / 0.6588 GB, free: 4.773 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001389/0.5591, allocations: 0.8589 MB / 0.6597 GB, free: 3.902 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001629/0.5607, allocations: 0.5737 MB / 0.6602 GB, free: 3.32 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.728e-05/0.5608, allocations: 301.1 kB / 0.6605 GB, free: 3.023 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003344/0.5642, allocations: 1.607 MB / 0.6621 GB, free: 1.414 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003514/0.5677, allocations: 1.942 MB / 0.664 GB, free: 15.4 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04484/0.6125, allocations: 11.27 MB / 0.675 GB, free: 3.879 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-05/0.6126, allocations: 0 / 0.675 GB, free: 3.879 MB / 478.1 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.02347/0.6361, allocations: 7.499 MB / 0.6823 GB, free: 12.29 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000121/0.6362, allocations: 162.2 kB / 0.6825 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.32e-05/0.6363, allocations: 4 kB / 0.6825 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01097/0.6472, allocations: 2.831 MB / 0.6852 GB, free: 9.234 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003583/0.6508, allocations: 0.6515 MB / 0.6859 GB, free: 8.582 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03675/0.6876, allocations: 19.2 MB / 0.7046 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00474/0.6924, allocations: 413.2 kB / 0.705 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007935/0.6932, allocations: 119.9 kB / 0.7051 GB, free: 4.156 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.002074/0.6953, allocations: 0.6083 MB / 0.7057 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001155/0.6965, allocations: 308.2 kB / 0.706 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02422/0.7207, allocations: 7.384 MB / 0.7132 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-05/0.7208, allocations: 28.06 kB / 0.7133 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.7208, allocations: 8 kB / 0.7133 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.375e-05/0.7209, allocations: 15.89 kB / 0.7133 GB, free: 11.73 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.03269/0.7536, allocations: 11.57 MB / 0.7246 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.068e-05/0.7536, allocations: 0 / 0.7246 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001572/0.7552, allocations: 243.8 kB / 0.7248 GB, free: 15.65 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01219/0.7674, allocations: 3.436 MB / 0.7282 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005863/0.768, allocations: 55.98 kB / 0.7282 GB, free: 12.14 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04522/0.8133, allocations: 20.9 MB / 0.7486 GB, free: 6.648 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.8133, allocations: 4 kB / 0.7486 GB, free: 6.645 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02989/0.8432, allocations: 9.206 MB / 0.7576 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002149/0.8454, allocations: 444.6 kB / 0.7581 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001648/0.8471, allocations: 51.98 kB / 0.7581 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003717/0.8508, allocations: 223.8 kB / 0.7583 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001739/0.8526, allocations: 378.5 kB / 0.7587 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004535/0.8531, allocations: 71.81 kB / 0.7587 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003565/0.8566, allocations: 1.681 MB / 0.7604 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.41e-07/0.8567, allocations: 0 / 0.7604 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005273/0.8619, allocations: 1.026 MB / 0.7614 GB, free: 9.492 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.0007222/0.8627, allocations: 181.2 kB / 0.7616 GB, free: 9.305 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01692/0.8796, allocations: 5.976 MB / 0.7674 GB, free: 3.148 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.217e-06/0.8797, allocations: 0 / 0.7674 GB, free: 3.148 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.2517/1.131, allocations: 3.622 MB / 0.7709 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.00346/1.135, allocations: 284.6 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.01005/1.145, allocations: 5.624 MB / 0.7767 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001103/1.146, allocations: 1.784 MB / 0.7784 GB, free: 161.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001146/1.147, allocations: 185 kB / 0.7786 GB, free: 161.8 MB / 0.5606 GB Notification: Performance of SimCode: time 1.102e-06/1.147, allocations: 0 / 0.7786 GB, free: 161.8 MB / 0.5606 GB Notification: Performance of Templates: time 0.101/1.248, allocations: 103.2 MB / 0.8794 GB, free: 85.45 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)