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.001011/0.001011, allocations: 99.23 kB / 15.05 MB, free: 1.105 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.433/1.433, allocations: 223.2 MB / 238.9 MB, free: 5.488 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.001528/0.001528, allocations: 180.9 kB / 290.2 MB, free: 2.184 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5965/0.5965, allocations: 79.45 MB / 420.7 MB, free: 3.965 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004912/0.0004914, allocations: 12 kB / 0.489 GB, free: 5.605 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2284/0.2289, allocations: 69.52 MB / 0.5569 GB, free: 36 kB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.Tutorial.Example_3.Example_3): time 0.3917/0.6207, allocations: 11.8 MB / 0.5684 GB, free: 35.24 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.009847/0.6306, allocations: 3.717 MB / 0.572 GB, free: 32.57 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004036/0.6347, allocations: 27.19 kB / 0.5721 GB, free: 32.56 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002501/0.6372, allocations: 362.2 kB / 0.5724 GB, free: 32.41 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006424/0.6436, allocations: 1.304 MB / 0.5737 GB, free: 31.53 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00336/0.647, allocations: 0.9877 MB / 0.5746 GB, free: 31.07 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00631/0.6533, allocations: 2.439 MB / 0.577 GB, free: 29.71 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001421/0.6548, allocations: 0.7123 MB / 0.5777 GB, free: 29.45 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00264/0.6575, allocations: 1.305 MB / 0.579 GB, free: 28.86 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002489/0.66, allocations: 1.599 MB / 0.5806 GB, free: 28.15 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006828/0.6607, allocations: 149.4 kB / 0.5807 GB, free: 28.14 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001103/0.6618, allocations: 262.8 kB / 0.5809 GB, free: 28.11 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004919/0.6623, allocations: 0.5688 MB / 0.5815 GB, free: 27.79 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007485/0.663, allocations: 0.5312 MB / 0.582 GB, free: 27.45 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0034/0.6664, allocations: 3.401 MB / 0.5853 GB, free: 26.57 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.6665, allocations: 0 / 0.5853 GB, free: 26.57 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.398e-06/0.6665, allocations: 0 / 0.5853 GB, free: 26.57 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001468/0.6666, allocations: 0 / 0.5853 GB, free: 26.57 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.01747/0.6841, allocations: 4.898 MB / 0.5901 GB, free: 24.41 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.31e-05/0.6842, allocations: 8.656 kB / 0.5901 GB, free: 24.41 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0123/0.6965, allocations: 1.627 MB / 0.5917 GB, free: 24.07 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008161/0.7047, allocations: 1.91 MB / 0.5936 GB, free: 22.95 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000806/0.7056, allocations: 480.9 kB / 0.594 GB, free: 22.55 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00125/0.7069, allocations: 205.4 kB / 0.5942 GB, free: 22.48 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01036/0.7173, allocations: 2.484 MB / 0.5967 GB, free: 21.53 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.869e-05/0.7174, allocations: 4 kB / 0.5967 GB, free: 21.52 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008691/0.7183, allocations: 77.61 kB / 0.5967 GB, free: 21.46 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.712e-05/0.7184, allocations: 44.2 kB / 0.5968 GB, free: 21.46 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008069/0.7265, allocations: 2.323 MB / 0.5991 GB, free: 20.65 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.0257/0.7522, allocations: 9.697 MB / 0.6085 GB, free: 15.08 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01214/0.7644, allocations: 4.976 MB / 0.6134 GB, free: 12.84 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005009/0.7649, allocations: 33.11 kB / 0.6134 GB, free: 12.83 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005662/0.7706, allocations: 1.89 MB / 0.6153 GB, free: 12.13 MB / 430.1 MB Notification: Performance of pre-optimization done (n=242): time 1.635e-05/0.7706, allocations: 0 / 0.6153 GB, free: 12.13 MB / 430.1 MB Notification: Performance of matching and sorting (n=242): time 0.07591/0.8465, allocations: 18.76 MB / 0.6336 GB, free: 13.75 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002388/0.8468, allocations: 239.6 kB / 0.6338 GB, free: 13.47 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005706/0.8525, allocations: 2.495 MB / 0.6363 GB, free: 10.96 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008871/0.8535, allocations: 73.7 kB / 0.6363 GB, free: 10.88 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001192/0.8547, allocations: 1.118 MB / 0.6374 GB, free: 9.75 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001888/0.8566, allocations: 0.8589 MB / 0.6383 GB, free: 8.879 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006977/0.8573, allocations: 64 kB / 0.6383 GB, free: 8.816 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004103/0.8577, allocations: 428.9 kB / 0.6387 GB, free: 8.391 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003814/0.8615, allocations: 1.693 MB / 0.6404 GB, free: 6.691 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003784/0.8653, allocations: 2.004 MB / 0.6423 GB, free: 4.617 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003851/0.8692, allocations: 2.026 MB / 0.6443 GB, free: 2.539 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.8692, allocations: 2.531 kB / 0.6443 GB, free: 2.539 MB / 446.1 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.02454/0.8937, allocations: 8.531 MB / 0.6526 GB, free: 9.918 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001154/0.8939, allocations: 170.2 kB / 0.6528 GB, free: 9.715 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.683e-05/0.8939, allocations: 4 kB / 0.6528 GB, free: 9.711 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0124/0.9063, allocations: 3.337 MB / 0.6561 GB, free: 6.355 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004125/0.9105, allocations: 0.6406 MB / 0.6567 GB, free: 5.715 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0393/0.9498, allocations: 20.08 MB / 0.6763 GB, free: 0.9961 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00511/0.955, allocations: 474.3 kB / 0.6768 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008827/0.9559, allocations: 116.7 kB / 0.6769 GB, free: 428 kB / 478.1 MB 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.001981/0.9579, allocations: 0.6184 MB / 0.6775 GB, free: 15.78 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009297/0.9588, allocations: 296.3 kB / 0.6778 GB, free: 15.48 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02554/0.9844, allocations: 8.591 MB / 0.6862 GB, free: 6.836 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.747e-05/0.9845, allocations: 25.83 kB / 0.6862 GB, free: 6.812 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.9845, allocations: 4 kB / 0.6862 GB, free: 6.809 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-05/0.9846, allocations: 11.95 kB / 0.6862 GB, free: 6.797 MB / 494.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 postOpt removeSimpleEquations (simulation): time 0.03408/1.019, allocations: 12.78 MB / 0.6987 GB, free: 9.762 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.924e-05/1.019, allocations: 4 kB / 0.6987 GB, free: 9.758 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001962/1.021, allocations: 251.7 kB / 0.6989 GB, free: 9.512 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01347/1.034, allocations: 3.835 MB / 0.7027 GB, free: 5.664 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001019/1.035, allocations: 55.98 kB / 0.7027 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04972/1.085, allocations: 21.25 MB / 0.7235 GB, free: 15.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.085, allocations: 0 / 0.7235 GB, free: 15.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03302/1.118, allocations: 10.56 MB / 0.7338 GB, free: 5.145 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002178/1.12, allocations: 460.5 kB / 0.7342 GB, free: 4.672 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00209/1.122, allocations: 48 kB / 0.7343 GB, free: 4.625 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004437/1.127, allocations: 287.7 kB / 0.7345 GB, free: 4.344 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002117/1.129, allocations: 387.2 kB / 0.7349 GB, free: 3.969 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006685/1.13, allocations: 67.98 kB / 0.735 GB, free: 3.902 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004247/1.134, allocations: 1.653 MB / 0.7366 GB, free: 2.246 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.71e-07/1.134, allocations: 0.5625 kB / 0.7366 GB, free: 2.246 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006774/1.141, allocations: 1.034 MB / 0.7376 GB, free: 1.211 MB / 0.5294 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.0008235/1.142, allocations: 173.3 kB / 0.7378 GB, free: 1.031 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0155/1.157, allocations: 6.207 MB / 0.7438 GB, free: 10.64 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.395e-06/1.157, allocations: 0 / 0.7438 GB, free: 10.64 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01107/1.168, allocations: 3.864 MB / 0.7476 GB, free: 6.691 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003474/1.172, allocations: 253.7 kB / 0.7478 GB, free: 6.445 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0157/1.188, allocations: 6.475 MB / 0.7542 GB, free: 15.97 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001713/1.189, allocations: 1.843 MB / 0.756 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001759/1.191, allocations: 277.7 kB / 0.7562 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007039/1.192, allocations: 163.4 kB / 0.7564 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of SimCode: time 1.643e-06/1.192, allocations: 0 / 0.7564 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of Templates: time 0.4099/1.602, allocations: 49.76 MB / 0.805 GB, free: 157 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)