Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.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.PSATSystems.TwoArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 115.2 kB / 16.37 MB, free: 6 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.365/1.365, allocations: 222.9 MB / 240 MB, free: 4.52 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.001258/0.001258, allocations: 200.3 kB / 290.3 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4972/0.4972, allocations: 91.89 MB / 432.4 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 79.88 kB / 0.5033 GB, free: 6.977 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4218/0.4235, allocations: 71.25 MB / 0.5729 GB, free: 37.68 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII): time 0.01524/0.4388, allocations: 21.84 MB / 0.5942 GB, free: 22.04 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01178/0.4506, allocations: 4.86 MB / 0.5989 GB, free: 18.52 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004969/0.4556, allocations: 44.25 kB / 0.599 GB, free: 18.52 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002535/0.4582, allocations: 0.8829 MB / 0.5998 GB, free: 18.04 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006928/0.4651, allocations: 2.036 MB / 0.6018 GB, free: 16.6 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005152/0.4703, allocations: 2.064 MB / 0.6039 GB, free: 15.52 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.008815/0.4791, allocations: 5.711 MB / 0.6094 GB, free: 12.6 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002747/0.4819, allocations: 1.323 MB / 0.6107 GB, free: 11.96 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00433/0.4862, allocations: 2.321 MB / 0.613 GB, free: 10.77 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005708/0.4919, allocations: 2.928 MB / 0.6158 GB, free: 9.281 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002382/0.4943, allocations: 435.8 kB / 0.6163 GB, free: 9.281 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003621/0.498, allocations: 0.5783 MB / 0.6168 GB, free: 9.238 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002416/0.5004, allocations: 1.148 MB / 0.6179 GB, free: 8.453 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005627/0.506, allocations: 2.608 MB / 0.6205 GB, free: 6.699 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01102/0.5171, allocations: 6.229 MB / 0.6266 GB, free: 3.805 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.5171, allocations: 0 / 0.6266 GB, free: 3.805 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.5171, allocations: 0 / 0.6266 GB, free: 3.805 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002223/0.5173, allocations: 0 / 0.6266 GB, free: 3.805 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: 893 * Number of variables: 893 Notification: Performance of Generate backend data structure: time 0.03172/0.5491, allocations: 9.143 MB / 0.6355 GB, free: 14.36 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.5491, allocations: 12.03 kB / 0.6355 GB, free: 14.35 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02571/0.5748, allocations: 4.009 MB / 0.6394 GB, free: 10.33 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006743/0.5816, allocations: 2.651 MB / 0.642 GB, free: 7.594 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008797/0.5825, allocations: 0.9611 MB / 0.643 GB, free: 6.496 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009676/0.5835, allocations: 348 kB / 0.6433 GB, free: 6.156 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008972/0.5925, allocations: 4.723 MB / 0.6479 GB, free: 1.402 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.285e-05/0.5926, allocations: 11.88 kB / 0.6479 GB, free: 1.391 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003608/0.593, allocations: 140 kB / 0.648 GB, free: 1.254 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.636e-05/0.593, allocations: 84 kB / 0.6481 GB, free: 1.172 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007994/0.601, allocations: 4.244 MB / 0.6523 GB, free: 12.92 MB / 462.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.03365/0.6347, allocations: 18.23 MB / 0.6701 GB, free: 9.516 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01143/0.6461, allocations: 4.992 MB / 0.6749 GB, free: 4.441 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005295/0.6515, allocations: 2.789 MB / 0.6777 GB, free: 1.645 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004092/0.6519, allocations: 66.91 kB / 0.6777 GB, free: 1.578 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005892/0.6578, allocations: 3.173 MB / 0.6808 GB, free: 14.36 MB / 494.1 MB Notification: Performance of pre-optimization done (n=383): time 5.25e-06/0.6578, allocations: 0 / 0.6808 GB, free: 14.36 MB / 494.1 MB Notification: Performance of matching and sorting (n=383): time 0.2663/0.9242, allocations: 68.04 MB / 0.7473 GB, free: 10.12 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.399e-05/0.9243, allocations: 141.8 kB / 0.7474 GB, free: 9.961 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004494/0.9288, allocations: 3.214 MB / 0.7506 GB, free: 6.727 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009297/0.9297, allocations: 93.73 kB / 0.7506 GB, free: 6.629 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001338/0.9311, allocations: 1.97 MB / 0.7526 GB, free: 4.645 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00147/0.9325, allocations: 1.313 MB / 0.7538 GB, free: 3.312 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001306/0.9339, allocations: 0.6782 MB / 0.7545 GB, free: 2.621 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.471e-05/0.9339, allocations: 301.1 kB / 0.7548 GB, free: 2.324 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0051/0.9391, allocations: 2.585 MB / 0.7573 GB, free: 15.73 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005416/0.9445, allocations: 3.209 MB / 0.7605 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3248/1.269, allocations: 18.78 MB / 0.7788 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-05/1.269, allocations: 2.562 kB / 0.7788 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=538) (initialization): time 0.05279/1.322, allocations: 17.25 MB / 0.7956 GB, free: 152.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.16e-05/1.322, allocations: 64.38 kB / 0.7957 GB, free: 152.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.57e-05/1.322, allocations: 15.12 kB / 0.7957 GB, free: 152.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02541/1.348, allocations: 7.154 MB / 0.8027 GB, free: 150.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004297/1.352, allocations: 0.6684 MB / 0.8034 GB, free: 150.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07691/1.429, allocations: 33.28 MB / 0.8359 GB, free: 133.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006397/1.435, allocations: 0.625 MB / 0.8365 GB, free: 133.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001083/1.437, allocations: 149 kB / 0.8366 GB, free: 133.2 MB / 0.5606 GB Warning: Assuming fixed start value for the following 5 variables: order4.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3.e1q:VARIABLE(start = order3.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 400 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(92,44,5.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002376/1.439, allocations: 0.6706 MB / 0.8373 GB, free: 132.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001354/1.44, allocations: 454.3 kB / 0.8377 GB, free: 132.1 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04622/1.487, allocations: 16.85 MB / 0.8542 GB, free: 115.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-05/1.487, allocations: 36 kB / 0.8542 GB, free: 115.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.455e-05/1.487, allocations: 31.94 kB / 0.8542 GB, free: 115.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001098/1.487, allocations: 23.92 kB / 0.8542 GB, free: 115.1 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.05485/1.542, allocations: 21.84 MB / 0.8756 GB, free: 93.21 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.396e-05/1.542, allocations: 0 / 0.8756 GB, free: 93.21 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002277/1.544, allocations: 390.6 kB / 0.8759 GB, free: 92.83 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02136/1.565, allocations: 7.341 MB / 0.8831 GB, free: 85.48 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009925/1.566, allocations: 71.98 kB / 0.8832 GB, free: 85.41 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06525/1.632, allocations: 31.8 MB / 0.9142 GB, free: 53.31 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/1.632, allocations: 0 / 0.9142 GB, free: 53.31 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05353/1.685, allocations: 20.21 MB / 0.934 GB, free: 33.02 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001791/1.687, allocations: 0.557 MB / 0.9345 GB, free: 32.44 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001375/1.688, allocations: 68.11 kB / 0.9346 GB, free: 32.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004182/1.693, allocations: 384 kB / 0.9349 GB, free: 32 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002881/1.696, allocations: 0.7805 MB / 0.9357 GB, free: 31.21 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003378/1.696, allocations: 95.98 kB / 0.9358 GB, free: 31.12 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002609/1.699, allocations: 2.105 MB / 0.9379 GB, free: 29.01 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8.72e-07/1.699, allocations: 0 / 0.9379 GB, free: 29.01 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004848/1.703, allocations: 1.794 MB / 0.9396 GB, free: 27.21 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order3.delta,order3.w,order3.e1q,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (247): * Single equations (assignments): 244 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(98,38,5.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004908/1.704, allocations: 195.5 kB / 0.9398 GB, free: 27.02 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02106/1.725, allocations: 9.158 MB / 0.9487 GB, free: 17.82 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/1.725, allocations: 1.875 kB / 0.9487 GB, free: 17.82 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01609/1.741, allocations: 6.146 MB / 0.9547 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003042/1.744, allocations: 388.9 kB / 0.9551 GB, free: 11.24 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01312/1.757, allocations: 7.831 MB / 0.9628 GB, free: 3.398 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001583/1.759, allocations: 2.451 MB / 0.9652 GB, free: 0.9102 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001586/1.761, allocations: 371.1 kB / 0.9655 GB, free: 0.543 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007834/1.761, allocations: 247.4 kB / 0.9657 GB, free: 308 kB / 0.5606 GB Notification: Performance of SimCode: time 7.71e-07/1.761, allocations: 4 kB / 0.9657 GB, free: 304 kB / 0.5606 GB Notification: Performance of Templates: time 0.4035/2.165, allocations: 88.8 MB / 1.052 GB, free: 163.5 MB / 0.5919 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe 2>&1)