Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_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.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_ThirdOrder_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.006331/0.006331, allocations: 100.3 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.435/1.435, allocations: 222.9 MB / 239.4 MB, free: 4.406 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.002078/0.002078, allocations: 192.5 kB / 289.7 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5545/0.5545, allocations: 91.9 MB / 431.8 MB, free: 9.117 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002205/0.002205, allocations: 81.19 kB / 0.5724 GB, free: 33.27 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1528/0.1551, allocations: 71.29 MB / 0.642 GB, free: 3.953 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII): time 0.02226/0.1774, allocations: 21.74 MB / 0.6632 GB, free: 14.13 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01443/0.1919, allocations: 4.846 MB / 0.6679 GB, free: 9.262 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005622/0.1975, allocations: 44 kB / 0.668 GB, free: 9.219 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003839/0.2014, allocations: 0.8828 MB / 0.6689 GB, free: 8.328 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009831/0.2113, allocations: 2.032 MB / 0.6708 GB, free: 6.285 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006545/0.2179, allocations: 2.055 MB / 0.6728 GB, free: 4.262 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.01075/0.2286, allocations: 5.705 MB / 0.6784 GB, free: 14.54 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00271/0.2314, allocations: 1.318 MB / 0.6797 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004/0.2354, allocations: 2.333 MB / 0.682 GB, free: 10.82 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003867/0.2393, allocations: 2.932 MB / 0.6848 GB, free: 7.875 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008818/0.2402, allocations: 440 kB / 0.6853 GB, free: 7.445 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001361/0.2415, allocations: 0.5702 MB / 0.6858 GB, free: 6.875 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009992/0.2426, allocations: 1.147 MB / 0.6869 GB, free: 5.723 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002949/0.2455, allocations: 2.614 MB / 0.6895 GB, free: 3.094 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008189/0.2537, allocations: 6.239 MB / 0.6956 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 9.207e-06/0.2537, allocations: 11.94 kB / 0.6956 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2538, allocations: 4 kB / 0.6956 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001726/0.2539, allocations: 0 / 0.6956 GB, free: 12.81 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: 892 * Number of variables: 892 Notification: Performance of Generate backend data structure: time 0.03037/0.2843, allocations: 9.31 MB / 0.7047 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.2844, allocations: 8.031 kB / 0.7047 GB, free: 3.395 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006699/0.285, allocations: 488.8 kB / 0.7052 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02569/0.3107, allocations: 4.043 MB / 0.7091 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005988/0.3168, allocations: 2.689 MB / 0.7117 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001013/0.3178, allocations: 0.9573 MB / 0.7127 GB, free: 11 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009077/0.3187, allocations: 344 kB / 0.713 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009497/0.3282, allocations: 4.723 MB / 0.7176 GB, free: 5.906 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.029e-05/0.3283, allocations: 0 / 0.7176 GB, free: 5.906 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003925/0.3287, allocations: 144 kB / 0.7177 GB, free: 5.766 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.371e-05/0.3288, allocations: 91.88 kB / 0.7178 GB, free: 5.676 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00873/0.3375, allocations: 4.244 MB / 0.722 GB, free: 1.426 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.03519/0.3727, allocations: 18.22 MB / 0.7398 GB, free: 14.03 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01274/0.3855, allocations: 4.992 MB / 0.7447 GB, free: 8.941 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005773/0.3913, allocations: 2.779 MB / 0.7474 GB, free: 6.152 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004997/0.3918, allocations: 70.89 kB / 0.7474 GB, free: 6.082 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00703/0.3989, allocations: 3.167 MB / 0.7505 GB, free: 2.875 MB / 0.545 GB Notification: Performance of pre-optimization done (n=382): time 9.017e-06/0.3989, allocations: 0 / 0.7505 GB, free: 2.875 MB / 0.545 GB Notification: Performance of matching and sorting (n=382): time 0.6289/1.028, allocations: 68.22 MB / 0.8171 GB, free: 82.98 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.714e-05/1.028, allocations: 148.9 kB / 0.8173 GB, free: 82.82 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003761/1.032, allocations: 3.229 MB / 0.8204 GB, free: 80.44 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008734/1.033, allocations: 87.89 kB / 0.8205 GB, free: 80.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00103/1.034, allocations: 2.007 MB / 0.8225 GB, free: 79.23 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001255/1.035, allocations: 1.374 MB / 0.8238 GB, free: 78.06 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001135/1.036, allocations: 0.6704 MB / 0.8245 GB, free: 77.38 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.252e-05/1.036, allocations: 301.1 kB / 0.8248 GB, free: 77.08 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004391/1.04, allocations: 2.582 MB / 0.8273 GB, free: 74.49 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004679/1.045, allocations: 3.201 MB / 0.8304 GB, free: 71.07 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06042/1.106, allocations: 18.75 MB / 0.8487 GB, free: 52.06 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.26e-05/1.106, allocations: 4 kB / 0.8487 GB, free: 52.05 MB / 0.5606 GB Notification: Performance of matching and sorting (n=534) (initialization): time 0.04778/1.153, allocations: 16.95 MB / 0.8653 GB, free: 35.05 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.128e-05/1.154, allocations: 67.39 kB / 0.8654 GB, free: 34.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.294e-05/1.154, allocations: 12 kB / 0.8654 GB, free: 34.96 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02281/1.176, allocations: 7.233 MB / 0.8724 GB, free: 27.73 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003163/1.18, allocations: 0.6666 MB / 0.8731 GB, free: 27.06 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07499/1.255, allocations: 33.75 MB / 0.906 GB, free: 9.195 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006057/1.261, allocations: 0.6313 MB / 0.9067 GB, free: 8.645 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008246/1.262, allocations: 148 kB / 0.9068 GB, free: 8.5 MB / 0.5762 GB Warning: Assuming fixed start value for the following 4 variables: order3_1.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 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 (398): * Single equations (assignments): 395 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(92,45)} Notification: Performance of prepare postOptimizeDAE: time 0.001937/1.263, allocations: 0.6722 MB / 0.9075 GB, free: 7.824 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001193/1.265, allocations: 480.9 kB / 0.9079 GB, free: 7.352 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05414/1.319, allocations: 16.84 MB / 0.9244 GB, free: 6.445 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.193e-05/1.319, allocations: 36 kB / 0.9244 GB, free: 6.41 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.21e-05/1.319, allocations: 31.94 kB / 0.9244 GB, free: 6.379 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001056/1.319, allocations: 23.92 kB / 0.9244 GB, free: 6.355 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.06339/1.382, allocations: 21.83 MB / 0.9458 GB, free: 0.5078 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.638e-05/1.383, allocations: 4.031 kB / 0.9458 GB, free: 0.5039 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002394/1.385, allocations: 387.5 kB / 0.9461 GB, free: 128 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02593/1.411, allocations: 7.368 MB / 0.9533 GB, free: 8.738 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001081/1.412, allocations: 71.98 kB / 0.9534 GB, free: 8.668 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08021/1.492, allocations: 31.85 MB / 0.9845 GB, free: 8.551 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/1.492, allocations: 0 / 0.9845 GB, free: 8.551 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06324/1.556, allocations: 20.23 MB / 1.004 GB, free: 4.242 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001788/1.557, allocations: 0.5782 MB / 1.005 GB, free: 3.695 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001274/1.559, allocations: 67.98 kB / 1.005 GB, free: 3.629 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004288/1.563, allocations: 379.6 kB / 1.005 GB, free: 3.258 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003233/1.566, allocations: 0.7844 MB / 1.006 GB, free: 2.473 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003212/1.567, allocations: 91.98 kB / 1.006 GB, free: 2.383 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.003435/1.57, allocations: 2.117 MB / 1.008 GB, free: 268 kB / 0.67 GB Notification: Performance of sort global known variables: time 2e-07/1.57, allocations: 3.938 kB / 1.008 GB, free: 264 kB / 0.67 GB Notification: Performance of remove unused functions: time 0.006315/1.576, allocations: 1.798 MB / 1.01 GB, free: 14.52 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order3.delta,order3.w,order3.e1q,order3_1.delta,order3_1.w,order3_1.e1q,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 (246): * Single equations (assignments): 243 * 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.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.06371/1.64, allocations: 20.9 MB / 1.03 GB, free: 9.531 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.3711/2.011, allocations: 9.289 MB / 1.039 GB, free: 241.8 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 1.054e-05/2.011, allocations: 0 / 1.039 GB, free: 241.8 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.02042/2.032, allocations: 6.203 MB / 1.045 GB, free: 241.2 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004074/2.036, allocations: 379.7 kB / 1.046 GB, free: 241.2 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1469/2.183, allocations: 58.21 MB / 1.103 GB, free: 208.7 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002256/2.185, allocations: 2.443 MB / 1.105 GB, free: 206.2 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.002318/2.187, allocations: 371.1 kB / 1.105 GB, free: 205.9 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002986/2.19, allocations: 2.022 MB / 1.107 GB, free: 203.8 MB / 0.7012 GB Notification: Performance of SimCode: time 1.243e-06/2.19, allocations: 0 / 1.107 GB, free: 203.8 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1923/2.383, allocations: 129.1 MB / 1.233 GB, free: 74.97 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.89/25.27, allocations: 18.44 kB / 1.233 GB, free: 74.96 MB / 0.7012 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_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_ThirdOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe 2>&1)