Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_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.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FifthOrder_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.007097/0.007097, allocations: 101 kB / 15.73 MB, free: 6.059 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.487/1.487, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001805/0.001805, allocations: 192.4 kB / 289.7 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.5792/0.5792, allocations: 91.9 MB / 431.8 MB, free: 9.164 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002176/0.002176, allocations: 79.53 kB / 0.5724 GB, free: 33.61 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1449/0.1471, allocations: 71.29 MB / 0.642 GB, free: 3.957 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII): time 0.02331/0.1705, allocations: 21.92 MB / 0.6634 GB, free: 13.95 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01297/0.1835, allocations: 4.896 MB / 0.6682 GB, free: 9.027 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005296/0.1889, allocations: 40 kB / 0.6682 GB, free: 8.988 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003421/0.1924, allocations: 0.8828 MB / 0.6691 GB, free: 8.098 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009079/0.2015, allocations: 2.036 MB / 0.6711 GB, free: 6.051 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006081/0.2076, allocations: 2.083 MB / 0.6731 GB, free: 4 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.009878/0.2174, allocations: 5.756 MB / 0.6787 GB, free: 14.22 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003095/0.2206, allocations: 1.325 MB / 0.68 GB, free: 12.84 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005048/0.2256, allocations: 2.349 MB / 0.6823 GB, free: 10.48 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005686/0.2313, allocations: 2.971 MB / 0.6852 GB, free: 7.5 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002008/0.2334, allocations: 444 kB / 0.6856 GB, free: 7.066 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002873/0.2362, allocations: 0.578 MB / 0.6862 GB, free: 6.488 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002197/0.2385, allocations: 1.159 MB / 0.6873 GB, free: 5.324 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005302/0.2438, allocations: 2.629 MB / 0.6899 GB, free: 2.68 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01117/0.255, allocations: 6.293 MB / 0.696 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.255, allocations: 0 / 0.696 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.394e-06/0.255, allocations: 4 kB / 0.696 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0003082/0.2553, allocations: 0 / 0.696 GB, free: 12.35 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 894 * Number of variables: 894 Notification: Performance of Generate backend data structure: time 0.03606/0.2914, allocations: 9.384 MB / 0.7052 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.2915, allocations: 8.031 kB / 0.7052 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001681/0.2931, allocations: 492.9 kB / 0.7057 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02728/0.3205, allocations: 4.031 MB / 0.7096 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007476/0.328, allocations: 2.713 MB / 0.7123 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001339/0.3294, allocations: 0.9612 MB / 0.7132 GB, free: 10.44 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001711/0.3311, allocations: 356 kB / 0.7135 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01443/0.3455, allocations: 4.743 MB / 0.7182 GB, free: 5.316 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001232/0.3457, allocations: 0 / 0.7182 GB, free: 5.316 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001126/0.3469, allocations: 144 kB / 0.7183 GB, free: 5.176 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-05/0.347, allocations: 84 kB / 0.7184 GB, free: 5.094 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01131/0.3583, allocations: 4.252 MB / 0.7225 GB, free: 0.8359 MB / 0.5137 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.04225/0.4006, allocations: 18.3 MB / 0.7404 GB, free: 13.37 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01362/0.4142, allocations: 5.013 MB / 0.7453 GB, free: 8.27 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006658/0.4209, allocations: 2.79 MB / 0.748 GB, free: 5.469 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007235/0.4217, allocations: 74.86 kB / 0.7481 GB, free: 5.395 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008303/0.43, allocations: 3.185 MB / 0.7512 GB, free: 2.168 MB / 0.545 GB Notification: Performance of pre-optimization done (n=384): time 1.045e-05/0.43, allocations: 0 / 0.7512 GB, free: 2.168 MB / 0.545 GB Notification: Performance of matching and sorting (n=384): time 0.6316/1.062, allocations: 67.79 MB / 0.8174 GB, free: 82.67 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.05e-05/1.062, allocations: 141.8 kB / 0.8176 GB, free: 82.51 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004269/1.066, allocations: 3.258 MB / 0.8207 GB, free: 80.12 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001019/1.067, allocations: 88.7 kB / 0.8208 GB, free: 80.08 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001176/1.068, allocations: 2.005 MB / 0.8228 GB, free: 78.87 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001677/1.07, allocations: 1.38 MB / 0.8241 GB, free: 77.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001221/1.071, allocations: 0.6863 MB / 0.8248 GB, free: 77 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.141e-05/1.071, allocations: 301.1 kB / 0.8251 GB, free: 76.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004523/1.076, allocations: 2.601 MB / 0.8276 GB, free: 74.09 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00518/1.081, allocations: 3.237 MB / 0.8308 GB, free: 70.63 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06378/1.145, allocations: 18.99 MB / 0.8493 GB, free: 51.39 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.539e-05/1.145, allocations: 8 kB / 0.8493 GB, free: 51.38 MB / 0.5606 GB Notification: Performance of matching and sorting (n=542) (initialization): time 0.05213/1.197, allocations: 17.32 MB / 0.8663 GB, free: 34.02 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.191e-05/1.197, allocations: 63.41 kB / 0.8663 GB, free: 33.94 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.763e-05/1.197, allocations: 16 kB / 0.8663 GB, free: 33.93 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02368/1.221, allocations: 7.157 MB / 0.8733 GB, free: 26.76 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003726/1.225, allocations: 0.6904 MB / 0.874 GB, free: 26.07 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08769/1.312, allocations: 33.34 MB / 0.9065 GB, free: 8.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007009/1.319, allocations: 0.6313 MB / 0.9072 GB, free: 8.039 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001248/1.321, allocations: 160 kB / 0.9073 GB, free: 7.883 MB / 0.5762 GB Warning: Assuming fixed start value for the following 5 variables: order5.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 order5.delta:VARIABLE(flow=false start = order5.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 (407): * Single equations (assignments): 404 * 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.003712/1.324, allocations: 0.6672 MB / 0.908 GB, free: 7.215 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002151/1.327, allocations: 484.8 kB / 0.9084 GB, free: 6.738 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05968/1.386, allocations: 16.87 MB / 0.9249 GB, free: 5.801 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.244e-05/1.386, allocations: 36 kB / 0.9249 GB, free: 5.766 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001111/1.387, allocations: 35.88 kB / 0.925 GB, free: 5.73 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001163/1.387, allocations: 22.08 kB / 0.925 GB, free: 5.711 MB / 0.5919 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.07162/1.458, allocations: 21.88 MB / 0.9464 GB, free: 15.81 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.823e-05/1.458, allocations: 0 / 0.9464 GB, free: 15.81 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002549/1.461, allocations: 387.5 kB / 0.9467 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02749/1.488, allocations: 7.378 MB / 0.9539 GB, free: 8.035 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001172/1.49, allocations: 75.92 kB / 0.954 GB, free: 7.961 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09204/1.582, allocations: 31.83 MB / 0.9851 GB, free: 7.871 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/1.582, allocations: 0 / 0.9851 GB, free: 7.871 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0688/1.651, allocations: 20.28 MB / 1.005 GB, free: 3.508 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00185/1.652, allocations: 0.5769 MB / 1.005 GB, free: 2.961 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001969/1.654, allocations: 76.92 kB / 1.006 GB, free: 2.887 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005656/1.66, allocations: 375.5 kB / 1.006 GB, free: 2.52 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004092/1.664, allocations: 0.7844 MB / 1.007 GB, free: 1.734 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009981/1.665, allocations: 99.98 kB / 1.007 GB, free: 1.637 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.00482/1.67, allocations: 2.133 MB / 1.009 GB, free: 15.5 MB / 0.6856 GB Notification: Performance of sort global known variables: time 6.92e-07/1.67, allocations: 0 / 1.009 GB, free: 15.5 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.008783/1.679, allocations: 1.813 MB / 1.011 GB, free: 13.75 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (order3.delta,order3.w,order3.e1q,order5.delta,order5.w,order5.e1q,order5.e2q,order5.e2d,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 (248): * Single equations (assignments): 245 * 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 {(100,36,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.07046/1.749, allocations: 20.94 MB / 1.031 GB, free: 8.715 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.3783/2.128, allocations: 9.207 MB / 1.04 GB, free: 241.8 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/2.128, allocations: 3.938 kB / 1.04 GB, free: 241.8 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.02139/2.149, allocations: 6.22 MB / 1.046 GB, free: 241.1 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004005/2.153, allocations: 392.2 kB / 1.046 GB, free: 241 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1589/2.312, allocations: 59.22 MB / 1.104 GB, free: 206.7 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004507/2.317, allocations: 2.455 MB / 1.107 GB, free: 204.2 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.002572/2.319, allocations: 375.1 kB / 1.107 GB, free: 203.9 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003302/2.323, allocations: 2.026 MB / 1.109 GB, free: 201.8 MB / 0.7012 GB Notification: Performance of SimCode: time 1.513e-06/2.323, allocations: 0 / 1.109 GB, free: 201.8 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2017/2.524, allocations: 126.7 MB / 1.233 GB, free: 75.41 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.6/26.13, allocations: 9.406 kB / 1.233 GB, free: 75.4 MB / 0.7012 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FifthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe 2>&1)