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.001696/0.001696, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.357/1.357, allocations: 222.9 MB / 240.1 MB, free: 4.555 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.002195/0.002196, allocations: 192.4 kB / 290.4 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5143/0.5143, allocations: 91.9 MB / 432.4 MB, free: 9.133 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 74.95 kB / 0.5734 GB, free: 33.45 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.131, allocations: 71.29 MB / 0.643 GB, free: 3.59 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.Tutorial.Example_3.Example_3): time 0.01255/0.1436, allocations: 13.4 MB / 0.6561 GB, free: 6.137 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.00774/0.1514, allocations: 3.63 MB / 0.6596 GB, free: 2.496 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002518/0.154, allocations: 27.94 kB / 0.6596 GB, free: 2.469 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001752/0.1557, allocations: 0.5071 MB / 0.6601 GB, free: 1.957 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004851/0.1607, allocations: 1.451 MB / 0.6616 GB, free: 0.5039 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00314/0.1638, allocations: 1.335 MB / 0.6629 GB, free: 15.18 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.005649/0.1695, allocations: 4.112 MB / 0.6669 GB, free: 11.05 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001462/0.171, allocations: 0.933 MB / 0.6678 GB, free: 10.06 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002456/0.1735, allocations: 1.603 MB / 0.6694 GB, free: 8.453 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002689/0.1762, allocations: 1.929 MB / 0.6712 GB, free: 6.516 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008583/0.177, allocations: 364 kB / 0.6716 GB, free: 6.16 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001135/0.1782, allocations: 0.5038 MB / 0.6721 GB, free: 5.656 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007643/0.179, allocations: 0.821 MB / 0.6729 GB, free: 4.832 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001905/0.1809, allocations: 1.705 MB / 0.6745 GB, free: 3.117 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004918/0.1858, allocations: 4.532 MB / 0.679 GB, free: 14.57 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.225e-06/0.1859, allocations: 0 / 0.679 GB, free: 14.57 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1859, allocations: 4 kB / 0.679 GB, free: 14.57 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001424/0.186, allocations: 0 / 0.679 GB, free: 14.57 MB / 494.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.01781/0.2038, allocations: 5.36 MB / 0.6842 GB, free: 9.102 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.2039, allocations: 8.031 kB / 0.6842 GB, free: 9.094 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01074/0.2146, allocations: 1.623 MB / 0.6858 GB, free: 7.465 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00477/0.2194, allocations: 2.024 MB / 0.6878 GB, free: 5.375 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004965/0.22, allocations: 464.6 kB / 0.6882 GB, free: 4.859 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005237/0.2205, allocations: 199.9 kB / 0.6884 GB, free: 4.664 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004693/0.2252, allocations: 2.423 MB / 0.6908 GB, free: 2.215 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.75e-05/0.2253, allocations: 0 / 0.6908 GB, free: 2.215 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002112/0.2255, allocations: 76 kB / 0.6909 GB, free: 2.141 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.22e-05/0.2255, allocations: 44 kB / 0.6909 GB, free: 2.098 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004618/0.2302, allocations: 2.243 MB / 0.6931 GB, free: 15.85 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 preOpt removeSimpleEquations (simulation): time 0.01769/0.2479, allocations: 9.197 MB / 0.7021 GB, free: 6.309 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0103/0.2582, allocations: 4.419 MB / 0.7064 GB, free: 1.652 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003328/0.2616, allocations: 1.562 MB / 0.7079 GB, free: 76 kB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000229/0.2619, allocations: 37.97 kB / 0.7079 GB, free: 36 kB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00348/0.2653, allocations: 1.8 MB / 0.7097 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=242): time 5.05e-06/0.2654, allocations: 0 / 0.7097 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of matching and sorting (n=242): time 0.07062/0.336, allocations: 16.55 MB / 0.7259 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001365/0.3362, allocations: 239.6 kB / 0.7261 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004548/0.3407, allocations: 2.523 MB / 0.7286 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.00067/0.3414, allocations: 65.7 kB / 0.7286 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009654/0.3424, allocations: 1.13 MB / 0.7297 GB, free: 9.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001233/0.3437, allocations: 0.8511 MB / 0.7305 GB, free: 8.637 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00117/0.3448, allocations: 0.5854 MB / 0.7311 GB, free: 8.043 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.855e-05/0.3449, allocations: 301.1 kB / 0.7314 GB, free: 7.746 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003197/0.3481, allocations: 1.607 MB / 0.733 GB, free: 6.137 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003474/0.3516, allocations: 1.938 MB / 0.7349 GB, free: 4.129 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04569/0.3973, allocations: 11.22 MB / 0.7458 GB, free: 8.668 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.365e-05/0.3974, allocations: 4 kB / 0.7458 GB, free: 8.664 MB / 0.545 GB Notification: Performance of matching and sorting (n=422) (initialization): time 0.02174/0.4192, allocations: 7.496 MB / 0.7531 GB, free: 1.074 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001214/0.4193, allocations: 170.2 kB / 0.7533 GB, free: 0.8711 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.885e-05/0.4193, allocations: 4 kB / 0.7533 GB, free: 0.8672 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01063/0.43, allocations: 2.811 MB / 0.7561 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003441/0.4335, allocations: 0.6514 MB / 0.7567 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3386/0.7721, allocations: 19.16 MB / 0.7754 GB, free: 104.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004118/0.7762, allocations: 409.7 kB / 0.7758 GB, free: 104.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007126/0.777, allocations: 123.3 kB / 0.7759 GB, free: 104.2 MB / 0.5606 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.001599/0.7786, allocations: 0.62 MB / 0.7765 GB, free: 104 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007336/0.7793, allocations: 299.3 kB / 0.7768 GB, free: 104 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02375/0.8031, allocations: 7.381 MB / 0.784 GB, free: 103.6 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-05/0.8031, allocations: 23.72 kB / 0.784 GB, free: 103.6 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.8032, allocations: 4 kB / 0.784 GB, free: 103.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.543e-05/0.8032, allocations: 14.62 kB / 0.7841 GB, free: 103.6 MB / 0.5606 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.02606/0.8293, allocations: 11.55 MB / 0.7953 GB, free: 99.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-05/0.8294, allocations: 0 / 0.7953 GB, free: 99.82 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001585/0.831, allocations: 244.9 kB / 0.7956 GB, free: 99.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01071/0.8417, allocations: 3.43 MB / 0.7989 GB, free: 99.23 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005236/0.8423, allocations: 56.39 kB / 0.799 GB, free: 99.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03602/0.8783, allocations: 20.88 MB / 0.8194 GB, free: 81.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.8783, allocations: 4 kB / 0.8194 GB, free: 81.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02327/0.9016, allocations: 9.201 MB / 0.8283 GB, free: 72.23 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001192/0.9029, allocations: 444.1 kB / 0.8288 GB, free: 71.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000776/0.9036, allocations: 48 kB / 0.8288 GB, free: 71.76 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002473/0.9061, allocations: 219.8 kB / 0.829 GB, free: 71.55 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001142/0.9073, allocations: 378.5 kB / 0.8294 GB, free: 71.18 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001554/0.9074, allocations: 71.92 kB / 0.8295 GB, free: 71.11 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002348/0.9098, allocations: 1.677 MB / 0.8311 GB, free: 69.43 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.1e-07/0.9098, allocations: 4 kB / 0.8311 GB, free: 69.42 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003463/0.9133, allocations: 1.024 MB / 0.8321 GB, free: 68.4 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.0004246/0.9137, allocations: 187.6 kB / 0.8323 GB, free: 68.21 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01163/0.9254, allocations: 5.852 MB / 0.838 GB, free: 62.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.9254, allocations: 4.188 kB / 0.838 GB, free: 62.19 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.007951/0.9334, allocations: 3.64 MB / 0.8415 GB, free: 58.47 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002512/0.9359, allocations: 294.9 kB / 0.8418 GB, free: 58.19 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009111/0.9451, allocations: 5.546 MB / 0.8472 GB, free: 52.64 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001023/0.9461, allocations: 1.791 MB / 0.849 GB, free: 50.82 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001109/0.9473, allocations: 179.4 kB / 0.8492 GB, free: 50.64 MB / 0.5606 GB Notification: Performance of SimCode: time 9.42e-07/0.9473, allocations: 0 / 0.8492 GB, free: 50.64 MB / 0.5606 GB Notification: Performance of Templates: time 0.09591/1.043, allocations: 103.5 MB / 0.9502 GB, free: 11.12 MB / 0.6231 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)