Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.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.IEEE9.IEEE_9_Buses_Statcom,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom") translateModel(OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.363/1.363, allocations: 222.9 MB / 238.9 MB, free: 4.773 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.001955/0.001955, allocations: 196.5 kB / 289.1 MB, free: 2.523 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5692/0.5692, allocations: 91.89 MB / 431.2 MB, free: 9.465 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001736/0.001736, allocations: 71.89 kB / 0.5012 GB, free: 8.211 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3696/0.3714, allocations: 71.27 MB / 0.5708 GB, free: 36.44 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom): time 0.01278/0.3842, allocations: 14.41 MB / 0.5849 GB, free: 26.97 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008961/0.3932, allocations: 3.793 MB / 0.5886 GB, free: 24.24 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003886/0.3971, allocations: 31.44 kB / 0.5886 GB, free: 24.24 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002/0.3991, allocations: 409.2 kB / 0.589 GB, free: 24.06 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005127/0.4043, allocations: 1.292 MB / 0.5903 GB, free: 23.19 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003114/0.4074, allocations: 1.269 MB / 0.5915 GB, free: 22.43 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.009059/0.4165, allocations: 3.928 MB / 0.5953 GB, free: 20.48 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001614/0.4182, allocations: 0.8802 MB / 0.5962 GB, free: 20 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003133/0.4213, allocations: 1.421 MB / 0.5976 GB, free: 19.34 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00323/0.4245, allocations: 1.819 MB / 0.5994 GB, free: 18.48 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006689/0.4252, allocations: 183.6 kB / 0.5995 GB, free: 18.48 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001282/0.4265, allocations: 319.2 kB / 0.5998 GB, free: 18.43 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006301/0.4272, allocations: 0.6694 MB / 0.6005 GB, free: 18.03 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001956/0.4291, allocations: 1.566 MB / 0.602 GB, free: 16.99 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005727/0.4349, allocations: 4.382 MB / 0.6063 GB, free: 15.12 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.4349, allocations: 4.5 kB / 0.6063 GB, free: 15.12 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4349, allocations: 0 / 0.6063 GB, free: 15.12 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000179/0.4351, allocations: 4 kB / 0.6063 GB, free: 15.12 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.02445/0.4596, allocations: 5.522 MB / 0.6117 GB, free: 12.49 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.436e-05/0.4596, allocations: 9.047 kB / 0.6117 GB, free: 12.49 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01086/0.4705, allocations: 1.642 MB / 0.6133 GB, free: 12.12 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005101/0.4756, allocations: 2.072 MB / 0.6153 GB, free: 10.85 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004915/0.4762, allocations: 499.8 kB / 0.6158 GB, free: 10.43 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004439/0.4766, allocations: 207.3 kB / 0.616 GB, free: 10.36 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00554/0.4822, allocations: 2.467 MB / 0.6184 GB, free: 9.395 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.599e-05/0.4822, allocations: 3.938 kB / 0.6184 GB, free: 9.391 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002234/0.4824, allocations: 78.64 kB / 0.6185 GB, free: 9.332 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.251e-05/0.4825, allocations: 44.78 kB / 0.6185 GB, free: 9.332 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005133/0.4876, allocations: 2.276 MB / 0.6208 GB, free: 8.516 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.01985/0.5075, allocations: 9.422 MB / 0.63 GB, free: 1.695 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01004/0.5176, allocations: 4.598 MB / 0.6345 GB, free: 12.83 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003623/0.5213, allocations: 1.57 MB / 0.636 GB, free: 11.25 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002577/0.5215, allocations: 42.97 kB / 0.636 GB, free: 11.21 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003886/0.5254, allocations: 1.831 MB / 0.6378 GB, free: 9.355 MB / 446.1 MB Notification: Performance of pre-optimization done (n=245): time 8.095e-06/0.5255, allocations: 7.938 kB / 0.6378 GB, free: 9.348 MB / 446.1 MB Notification: Performance of matching and sorting (n=245): time 0.08661/0.6121, allocations: 19.05 MB / 0.6564 GB, free: 6.152 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001738/0.6123, allocations: 239.6 kB / 0.6567 GB, free: 5.867 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009278/0.6216, allocations: 2.652 MB / 0.6592 GB, free: 3.203 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001849/0.6236, allocations: 69.7 kB / 0.6593 GB, free: 3.129 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002013/0.6256, allocations: 1.186 MB / 0.6605 GB, free: 1.934 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002802/0.6284, allocations: 0.8666 MB / 0.6613 GB, free: 1.055 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003991/0.6325, allocations: 0.5893 MB / 0.6619 GB, free: 468 kB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.6326, allocations: 309.1 kB / 0.6622 GB, free: 156 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004433/0.637, allocations: 1.619 MB / 0.6638 GB, free: 14.53 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004605/0.6417, allocations: 1.958 MB / 0.6657 GB, free: 12.5 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04884/0.6906, allocations: 11.12 MB / 0.6765 GB, free: 1.137 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.737e-05/0.6906, allocations: 0 / 0.6765 GB, free: 1.137 MB / 478.1 MB Notification: Performance of matching and sorting (n=426) (initialization): time 0.03014/0.7208, allocations: 7.929 MB / 0.6843 GB, free: 9.125 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001523/0.721, allocations: 170.2 kB / 0.6844 GB, free: 8.922 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.707e-05/0.721, allocations: 8 kB / 0.6845 GB, free: 8.914 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01229/0.7333, allocations: 3.057 MB / 0.6874 GB, free: 5.844 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003571/0.7369, allocations: 0.6202 MB / 0.688 GB, free: 5.223 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04299/0.7799, allocations: 17.97 MB / 0.7056 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005548/0.7855, allocations: 429.1 kB / 0.706 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00119/0.7868, allocations: 120 kB / 0.7061 GB, free: 2.297 MB / 0.4981 GB Warning: Assuming fixed start value for the following 6 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.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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3,$whenCondition6,$whenCondition5,$whenCondition8,$whenCondition7) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (340): * Single equations (assignments): 331 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(36,46), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.00328/0.7901, allocations: 0.6155 MB / 0.7067 GB, free: 1.656 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001767/0.7918, allocations: 316.2 kB / 0.707 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02636/0.8182, allocations: 7.468 MB / 0.7143 GB, free: 9.824 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.763e-05/0.8183, allocations: 32 kB / 0.7143 GB, free: 9.793 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.8183, allocations: 4 kB / 0.7144 GB, free: 9.789 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.542e-05/0.8184, allocations: 11.95 kB / 0.7144 GB, free: 9.777 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.03823/0.8566, allocations: 12.21 MB / 0.7263 GB, free: 13.28 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.907e-05/0.8567, allocations: 4.094 kB / 0.7263 GB, free: 13.28 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001688/0.8584, allocations: 235.7 kB / 0.7265 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01349/0.8719, allocations: 3.539 MB / 0.73 GB, free: 9.492 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001083/0.873, allocations: 59.98 kB / 0.73 GB, free: 9.434 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04792/0.921, allocations: 19.62 MB / 0.7492 GB, free: 5.238 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.921, allocations: 3.938 kB / 0.7492 GB, free: 5.234 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03056/0.9516, allocations: 9.37 MB / 0.7583 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001677/0.9533, allocations: 452.5 kB / 0.7588 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00155/0.9549, allocations: 55.98 kB / 0.7588 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003653/0.9586, allocations: 231.7 kB / 0.7591 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001825/0.9604, allocations: 386.3 kB / 0.7594 GB, free: 10.67 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000529/0.9609, allocations: 67.98 kB / 0.7595 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00392/0.9649, allocations: 1.767 MB / 0.7612 GB, free: 8.84 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.51e-07/0.9649, allocations: 7.938 kB / 0.7612 GB, free: 8.832 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005095/0.97, allocations: 1.073 MB / 0.7623 GB, free: 7.758 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 25 (sTATCOM3_1.simpleLagLim.state,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: 8 ($whenCondition7,$whenCondition8,$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 (146): * Single equations (assignments): 139 * 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 {(43,48), (1,6), (1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007171/0.9707, allocations: 169.3 kB / 0.7624 GB, free: 7.582 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01378/0.9845, allocations: 5.517 MB / 0.7678 GB, free: 1.953 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.243e-06/0.9846, allocations: 0 / 0.7678 GB, free: 1.953 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.252/1.237, allocations: 3.617 MB / 0.7714 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.003306/1.24, allocations: 291.8 kB / 0.7716 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01076/1.251, allocations: 6.854 MB / 0.7783 GB, free: 161.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001132/1.252, allocations: 1.839 MB / 0.7801 GB, free: 160.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00137/1.253, allocations: 271 kB / 0.7804 GB, free: 160.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006245/1.254, allocations: 170.4 kB / 0.7805 GB, free: 160.7 MB / 0.5606 GB Notification: Performance of SimCode: time 6.21e-07/1.254, allocations: 0 / 0.7805 GB, free: 160.7 MB / 0.5606 GB Notification: Performance of Templates: time 0.09199/1.346, allocations: 54.22 MB / 0.8335 GB, free: 132.1 MB / 0.5606 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.sim & ./OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.pipe 2>&1)