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.0009649/0.000965, allocations: 91.45 kB / 15.06 MB, free: 1.098 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.344/1.344, allocations: 223.3 MB / 239 MB, free: 5.457 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.001013/0.001013, allocations: 176.5 kB / 290.3 MB, free: 2.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4996/0.4996, allocations: 91.91 MB / 433.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003464/0.0003465, allocations: 16 kB / 0.5042 GB, free: 7.648 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3142, allocations: 72.46 MB / 0.5749 GB, free: 36.38 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.Tutorial.Example_3.Example_3): time 0.008575/0.3228, allocations: 12.48 MB / 0.5871 GB, free: 27.88 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.006/0.3288, allocations: 3.604 MB / 0.5906 GB, free: 25.26 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001952/0.3308, allocations: 26.34 kB / 0.5907 GB, free: 25.26 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001185/0.332, allocations: 369.9 kB / 0.591 GB, free: 25.1 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003248/0.3353, allocations: 1.163 MB / 0.5922 GB, free: 24.33 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002234/0.3375, allocations: 0.9948 MB / 0.5931 GB, free: 23.84 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004278/0.3418, allocations: 3.614 MB / 0.5967 GB, free: 21.98 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001437/0.3432, allocations: 0.7189 MB / 0.5974 GB, free: 21.64 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00222/0.3455, allocations: 1.288 MB / 0.5986 GB, free: 21.08 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0029/0.3484, allocations: 1.638 MB / 0.6002 GB, free: 20.36 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001022/0.3494, allocations: 145.1 kB / 0.6004 GB, free: 20.36 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001501/0.3509, allocations: 272.8 kB / 0.6006 GB, free: 20.32 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00118/0.3521, allocations: 0.5811 MB / 0.6012 GB, free: 19.98 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001242/0.3534, allocations: 0.5292 MB / 0.6017 GB, free: 19.64 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003703/0.3571, allocations: 3.473 MB / 0.6051 GB, free: 18.74 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.3571, allocations: 1 kB / 0.6051 GB, free: 18.74 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3571, allocations: 0 / 0.6051 GB, free: 18.74 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000143/0.3573, allocations: 0 / 0.6051 GB, free: 18.74 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.01566/0.3729, allocations: 4.89 MB / 0.6099 GB, free: 16.57 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.373, allocations: 13.12 kB / 0.6099 GB, free: 16.57 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01102/0.384, allocations: 1.629 MB / 0.6115 GB, free: 16.23 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004891/0.3889, allocations: 1.913 MB / 0.6133 GB, free: 15.1 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004543/0.3894, allocations: 476.2 kB / 0.6138 GB, free: 14.71 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005745/0.39, allocations: 207.5 kB / 0.614 GB, free: 14.64 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005345/0.3954, allocations: 2.499 MB / 0.6164 GB, free: 13.68 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.588e-05/0.3954, allocations: 1 kB / 0.6164 GB, free: 13.68 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002224/0.3957, allocations: 76.84 kB / 0.6165 GB, free: 13.62 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-05/0.3957, allocations: 43.91 kB / 0.6165 GB, free: 13.62 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004965/0.4007, allocations: 2.326 MB / 0.6188 GB, free: 12.81 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.01803/0.4187, allocations: 9.38 MB / 0.628 GB, free: 6.195 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009346/0.4281, allocations: 4.984 MB / 0.6328 GB, free: 1.785 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003005/0.4311, allocations: 1.652 MB / 0.6345 GB, free: 124 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002382/0.4314, allocations: 37.97 kB / 0.6345 GB, free: 88 kB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003829/0.4352, allocations: 1.886 MB / 0.6363 GB, free: 14.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=242): time 4.449e-06/0.4353, allocations: 4 kB / 0.6363 GB, free: 14.17 MB / 446.1 MB Notification: Performance of matching and sorting (n=242): time 0.0692/0.5045, allocations: 18.72 MB / 0.6546 GB, free: 11.32 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.5046, allocations: 235.6 kB / 0.6548 GB, free: 11.04 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004824/0.5095, allocations: 2.503 MB / 0.6573 GB, free: 8.523 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006903/0.5102, allocations: 69.7 kB / 0.6574 GB, free: 8.449 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001003/0.5112, allocations: 1.118 MB / 0.6584 GB, free: 7.32 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00136/0.5126, allocations: 0.8588 MB / 0.6593 GB, free: 6.449 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000521/0.5131, allocations: 68 kB / 0.6594 GB, free: 6.383 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002402/0.5133, allocations: 428.9 kB / 0.6598 GB, free: 5.957 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003652/0.517, allocations: 1.689 MB / 0.6614 GB, free: 4.266 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003875/0.5209, allocations: 2.019 MB / 0.6634 GB, free: 2.18 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004081/0.525, allocations: 2.022 MB / 0.6654 GB, free: 108 kB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.15e-05/0.525, allocations: 4 kB / 0.6654 GB, free: 104 kB / 462.1 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.0233/0.5483, allocations: 8.535 MB / 0.6737 GB, free: 7.477 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001158/0.5485, allocations: 174.2 kB / 0.6739 GB, free: 7.27 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.088e-05/0.5485, allocations: 7.984 kB / 0.6739 GB, free: 7.262 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01163/0.5601, allocations: 3.332 MB / 0.6771 GB, free: 3.902 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003447/0.5636, allocations: 0.6398 MB / 0.6777 GB, free: 3.262 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0358/0.5994, allocations: 19.41 MB / 0.6967 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004274/0.6037, allocations: 469.3 kB / 0.6972 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006132/0.6044, allocations: 116 kB / 0.6973 GB, free: 14.6 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 gen3.AVR.firstOrder2.y:VARIABLE(flow=false start = gen3.AVR.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real gen3.gen.e1d:VARIABLE(start = gen3.gen.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real gen3.gen.e1q:VARIABLE(start = gen3.gen.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real gen3.gen.delta:VARIABLE(flow=false start = gen3.gen.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real gen2.AVR.firstOrder2.y:VARIABLE(flow=false start = gen2.AVR.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real gen2.gen.e1d:VARIABLE(start = gen2.gen.e1d0 unit = "1" fixed = true ) "d-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 ($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 initialization (348): * Single equations (assignments): 335 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 3 {4 2,30 32,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.00172/0.6061, allocations: 0.6222 MB / 0.6979 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008548/0.607, allocations: 300.2 kB / 0.6982 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02449/0.6315, allocations: 8.591 MB / 0.7065 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.621e-05/0.6315, allocations: 24 kB / 0.7066 GB, free: 4.98 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.6315, allocations: 4 kB / 0.7066 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-05/0.6316, allocations: 15.95 kB / 0.7066 GB, free: 4.961 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 postOpt removeSimpleEquations (simulation): time 0.0314/0.663, allocations: 12.79 MB / 0.7191 GB, free: 7.91 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.605e-05/0.663, allocations: 0 / 0.7191 GB, free: 7.91 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001489/0.6645, allocations: 243.8 kB / 0.7193 GB, free: 7.672 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01199/0.6765, allocations: 3.838 MB / 0.7231 GB, free: 3.816 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003988/0.677, allocations: 55.98 kB / 0.7231 GB, free: 3.762 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0418/0.7188, allocations: 20.36 MB / 0.743 GB, free: 14.83 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.7188, allocations: 7.938 kB / 0.743 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02766/0.7465, allocations: 10.49 MB / 0.7532 GB, free: 4.258 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001111/0.7476, allocations: 456.6 kB / 0.7537 GB, free: 3.789 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007929/0.7484, allocations: 51.98 kB / 0.7537 GB, free: 3.738 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002703/0.7511, allocations: 283.7 kB / 0.754 GB, free: 3.461 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001227/0.7524, allocations: 386.2 kB / 0.7544 GB, free: 3.086 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002491/0.7526, allocations: 67.98 kB / 0.7544 GB, free: 3.02 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002989/0.7556, allocations: 1.657 MB / 0.756 GB, free: 1.359 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.71e-07/0.7556, allocations: 0 / 0.756 GB, free: 1.359 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003864/0.7595, allocations: 1.034 MB / 0.7571 GB, free: 332 kB / 0.545 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {41 45,1 6,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004801/0.76, allocations: 185.3 kB / 0.7572 GB, free: 136 kB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01428/0.7743, allocations: 6.199 MB / 0.7633 GB, free: 9.754 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.7743, allocations: 4.188 kB / 0.7633 GB, free: 9.75 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.009235/0.7836, allocations: 3.866 MB / 0.7671 GB, free: 5.793 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002862/0.7865, allocations: 277.4 kB / 0.7673 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2292/1.016, allocations: 6.427 MB / 0.7736 GB, free: 163.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001355/1.017, allocations: 1.785 MB / 0.7754 GB, free: 162.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001425/1.019, allocations: 275.4 kB / 0.7756 GB, free: 162.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006638/1.019, allocations: 165.6 kB / 0.7758 GB, free: 162.8 MB / 0.5606 GB Notification: Performance of SimCode: time 1.092e-06/1.019, allocations: 1.438 kB / 0.7758 GB, free: 162.8 MB / 0.5606 GB Notification: Performance of Templates: time 0.07984/1.099, allocations: 49.85 MB / 0.8245 GB, free: 142.8 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)