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: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008537/0.0008539, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.37/1.37, allocations: 223.3 MB / 239 MB, free: 5.535 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.00141/0.00141, allocations: 172.5 kB / 290.3 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.481/0.481, allocations: 79.47 MB / 420.8 MB, free: 3.969 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003894/0.0003895, allocations: 8 kB / 0.4892 GB, free: 5.512 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4097/0.4101, allocations: 69.51 MB / 0.5571 GB, free: 37.76 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII): time 0.01566/0.4258, allocations: 20.89 MB / 0.5775 GB, free: 28.52 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01231/0.4382, allocations: 4.943 MB / 0.5823 GB, free: 24.91 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005325/0.4435, allocations: 52.22 kB / 0.5824 GB, free: 24.91 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00284/0.4464, allocations: 0.6143 MB / 0.583 GB, free: 24.64 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007597/0.454, allocations: 1.75 MB / 0.5847 GB, free: 23.43 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005311/0.4593, allocations: 1.768 MB / 0.5864 GB, free: 22.55 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.008362/0.4677, allocations: 5.177 MB / 0.5915 GB, free: 19.84 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003047/0.4708, allocations: 1.062 MB / 0.5925 GB, free: 19.36 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004088/0.4749, allocations: 2 MB / 0.5945 GB, free: 18.43 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005172/0.4801, allocations: 2.58 MB / 0.597 GB, free: 17.25 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002191/0.4823, allocations: 234 kB / 0.5972 GB, free: 17.25 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00351/0.4858, allocations: 365.8 kB / 0.5975 GB, free: 17.21 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002275/0.4881, allocations: 0.9022 MB / 0.5984 GB, free: 16.66 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003191/0.4913, allocations: 0.8378 MB / 0.5992 GB, free: 16.16 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007359/0.4987, allocations: 4.629 MB / 0.6038 GB, free: 14.68 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.305e-06/0.4987, allocations: 0 / 0.6038 GB, free: 14.68 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.4987, allocations: 3.938 kB / 0.6038 GB, free: 14.68 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003516/0.4991, allocations: 0 / 0.6038 GB, free: 14.68 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.03142/0.5305, allocations: 8.45 MB / 0.612 GB, free: 11.55 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.565e-05/0.5306, allocations: 9.031 kB / 0.612 GB, free: 11.55 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002385/0.533, allocations: 491.1 kB / 0.6125 GB, free: 11.25 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02688/0.5599, allocations: 4.047 MB / 0.6164 GB, free: 10.54 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00932/0.5692, allocations: 2.497 MB / 0.6189 GB, free: 9.07 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001366/0.5707, allocations: 0.9932 MB / 0.6199 GB, free: 8.238 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002229/0.5729, allocations: 347.5 kB / 0.6202 GB, free: 8.125 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01708/0.59, allocations: 4.958 MB / 0.625 GB, free: 6.191 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001437/0.5902, allocations: 3.25 kB / 0.625 GB, free: 6.191 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001192/0.5914, allocations: 135.5 kB / 0.6252 GB, free: 6.086 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.344e-05/0.5915, allocations: 92.36 kB / 0.6252 GB, free: 6.078 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0108/0.6023, allocations: 4.484 MB / 0.6296 GB, free: 2.598 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.03958/0.6419, allocations: 18.83 MB / 0.648 GB, free: 14.57 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01312/0.6551, allocations: 5.719 MB / 0.6536 GB, free: 8.773 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006588/0.6617, allocations: 3.033 MB / 0.6566 GB, free: 5.73 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008176/0.6626, allocations: 74.77 kB / 0.6566 GB, free: 5.66 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007875/0.6705, allocations: 3.425 MB / 0.66 GB, free: 2.195 MB / 462.1 MB Notification: Performance of pre-optimization done (n=383): time 9.377e-06/0.6705, allocations: 0 / 0.66 GB, free: 2.195 MB / 462.1 MB Notification: Performance of matching and sorting (n=383): time 0.2901/0.9606, allocations: 81.25 MB / 0.7393 GB, free: 0.7578 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.651e-05/0.9607, allocations: 145.8 kB / 0.7395 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005009/0.9657, allocations: 3.183 MB / 0.7426 GB, free: 13.38 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001246/0.967, allocations: 85.7 kB / 0.7427 GB, free: 13.29 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001537/0.9686, allocations: 1.97 MB / 0.7446 GB, free: 11.31 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002158/0.9707, allocations: 1.313 MB / 0.7459 GB, free: 9.98 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003337/0.9711, allocations: 84 kB / 0.7459 GB, free: 9.898 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.00024/0.9713, allocations: 463 kB / 0.7464 GB, free: 9.438 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005483/0.9768, allocations: 2.837 MB / 0.7492 GB, free: 6.594 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005943/0.9828, allocations: 3.455 MB / 0.7525 GB, free: 2.918 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006014/0.9888, allocations: 3.108 MB / 0.7556 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-05/0.9888, allocations: 8 kB / 0.7556 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of matching and sorting (n=538) (initialization): time 0.3203/1.309, allocations: 20.72 MB / 0.7758 GB, free: 156.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.388e-05/1.309, allocations: 64.03 kB / 0.7759 GB, free: 156.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.946e-05/1.309, allocations: 17.7 kB / 0.7759 GB, free: 156.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02424/1.334, allocations: 8.607 MB / 0.7843 GB, free: 156.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003266/1.337, allocations: 0.674 MB / 0.7849 GB, free: 156.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08434/1.421, allocations: 35.39 MB / 0.8195 GB, free: 150 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005963/1.427, allocations: 0.7579 MB / 0.8202 GB, free: 149.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007467/1.428, allocations: 150 kB / 0.8204 GB, free: 149.8 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 aVRTypeII.firstOrder2.y:VARIABLE(flow=false start = aVRTypeII.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.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: 65 * Number of states: 0 () * 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 initialization (401): * Single equations (assignments): 398 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {93 45} Notification: Performance of prepare postOptimizeDAE: time 0.001684/1.43, allocations: 0.6718 MB / 0.821 GB, free: 149.3 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001033/1.431, allocations: 456.9 kB / 0.8215 GB, free: 149.1 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04938/1.48, allocations: 20.61 MB / 0.8416 GB, free: 137.7 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.789e-05/1.48, allocations: 40 kB / 0.8416 GB, free: 137.6 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-05/1.48, allocations: 29.75 kB / 0.8417 GB, free: 137.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001096/1.48, allocations: 20.16 kB / 0.8417 GB, free: 137.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.05774/1.538, allocations: 25.61 MB / 0.8667 GB, free: 112.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.77e-05/1.538, allocations: 0 / 0.8667 GB, free: 112.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002226/1.54, allocations: 392.1 kB / 0.8671 GB, free: 111.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02358/1.564, allocations: 8.67 MB / 0.8755 GB, free: 103.1 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001212/1.565, allocations: 75.92 kB / 0.8756 GB, free: 103 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0663/1.632, allocations: 32.68 MB / 0.9075 GB, free: 70.08 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/1.632, allocations: 0.625 kB / 0.9075 GB, free: 70.08 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05749/1.689, allocations: 24.22 MB / 0.9312 GB, free: 45.79 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002241/1.691, allocations: 0.5532 MB / 0.9317 GB, free: 45.21 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001707/1.693, allocations: 64 kB / 0.9318 GB, free: 45.15 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004132/1.697, allocations: 0.5137 MB / 0.9323 GB, free: 44.64 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002809/1.7, allocations: 0.784 MB / 0.933 GB, free: 43.85 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002709/1.7, allocations: 95.98 kB / 0.9331 GB, free: 43.76 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002591/1.703, allocations: 2.074 MB / 0.9352 GB, free: 41.68 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.61e-07/1.703, allocations: 0 / 0.9352 GB, free: 41.68 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006124/1.709, allocations: 1.802 MB / 0.9369 GB, free: 39.88 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(98,5.5%) 38} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.05724/1.766, allocations: 24.89 MB / 0.9612 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0259/1.792, allocations: 10.25 MB / 0.9712 GB, free: 4.609 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.246e-06/1.792, allocations: 5.812 kB / 0.9712 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01987/1.812, allocations: 7.029 MB / 0.9781 GB, free: 13.54 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008108/1.82, allocations: 383.1 kB / 0.9785 GB, free: 13.16 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3838/2.204, allocations: 51.02 MB / 1.028 GB, free: 167.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002723/2.207, allocations: 2.448 MB / 1.031 GB, free: 166.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.002038/2.209, allocations: 374.6 kB / 1.031 GB, free: 166.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002524/2.212, allocations: 1.967 MB / 1.033 GB, free: 165.8 MB / 0.5762 GB Notification: Performance of SimCode: time 8.91e-07/2.212, allocations: 3.938 kB / 1.033 GB, free: 165.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1558/2.367, allocations: 116.8 MB / 1.147 GB, free: 63.11 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000123/2.368, allocations: 217.7 kB / 1.147 GB, free: 62.88 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.685/8.052, allocations: 0 / 1.147 GB, free: 62.88 MB / 0.5762 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe 2>&1) Environment - environmentSimulation: