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.007385/0.007385, allocations: 100.6 kB / 15.73 MB, free: 6.004 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.408/1.408, allocations: 222.9 MB / 239.4 MB, free: 4.434 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.001624/0.001624, allocations: 184.5 kB / 289.7 MB, free: 2.156 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5748/0.5748, allocations: 91.89 MB / 431.8 MB, free: 9.125 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 81.09 kB / 0.5724 GB, free: 33.53 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1565/0.158, allocations: 71.29 MB / 0.642 GB, free: 3.91 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII): time 0.01852/0.1766, allocations: 21.93 MB / 0.6634 GB, free: 13.89 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0126/0.1892, allocations: 4.888 MB / 0.6682 GB, free: 8.984 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005634/0.1949, allocations: 40 kB / 0.6682 GB, free: 8.945 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004068/0.1991, allocations: 0.8828 MB / 0.6691 GB, free: 8.055 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01049/0.2096, allocations: 2.303 MB / 0.6713 GB, free: 5.742 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006423/0.2161, allocations: 2.058 MB / 0.6733 GB, free: 3.715 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.009567/0.2256, allocations: 5.771 MB / 0.679 GB, free: 13.92 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00327/0.229, allocations: 1.32 MB / 0.6803 GB, free: 12.55 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004437/0.2334, allocations: 2.349 MB / 0.6825 GB, free: 10.19 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004791/0.2383, allocations: 2.963 MB / 0.6854 GB, free: 7.215 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002323/0.2406, allocations: 448 kB / 0.6859 GB, free: 6.777 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002765/0.2434, allocations: 0.5898 MB / 0.6864 GB, free: 6.188 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002197/0.2456, allocations: 1.155 MB / 0.6876 GB, free: 5.027 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004826/0.2505, allocations: 2.629 MB / 0.6901 GB, free: 2.383 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009961/0.2605, allocations: 6.267 MB / 0.6963 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.2605, allocations: 0 / 0.6963 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.496e-06/0.2606, allocations: 3.938 kB / 0.6963 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0003135/0.2609, allocations: 0 / 0.6963 GB, free: 12.09 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.03194/0.2928, allocations: 9.221 MB / 0.7053 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.965e-05/0.2929, allocations: 8.031 kB / 0.7053 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007482/0.2937, allocations: 496.8 kB / 0.7057 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02553/0.3192, allocations: 4.005 MB / 0.7097 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00623/0.3255, allocations: 2.674 MB / 0.7123 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009819/0.3265, allocations: 0.9612 MB / 0.7132 GB, free: 10.4 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001406/0.3279, allocations: 352 kB / 0.7135 GB, free: 10.06 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01094/0.3389, allocations: 4.743 MB / 0.7182 GB, free: 5.285 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001159/0.3391, allocations: 0 / 0.7182 GB, free: 5.285 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008628/0.3399, allocations: 152 kB / 0.7183 GB, free: 5.137 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.62e-05/0.34, allocations: 84 kB / 0.7184 GB, free: 5.055 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01059/0.3506, allocations: 4.248 MB / 0.7225 GB, free: 0.8008 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.04008/0.3908, allocations: 18.25 MB / 0.7404 GB, free: 13.37 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01293/0.4037, allocations: 5.009 MB / 0.7453 GB, free: 8.27 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006363/0.4102, allocations: 2.794 MB / 0.748 GB, free: 5.465 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007821/0.411, allocations: 66.94 kB / 0.7481 GB, free: 5.398 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008036/0.4191, allocations: 3.189 MB / 0.7512 GB, free: 2.168 MB / 0.545 GB Notification: Performance of pre-optimization done (n=384): time 1.187e-05/0.4191, allocations: 0 / 0.7512 GB, free: 2.168 MB / 0.545 GB Notification: Performance of matching and sorting (n=384): time 0.6323/1.051, allocations: 67.76 MB / 0.8173 GB, free: 82.85 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.537e-05/1.052, allocations: 141.8 kB / 0.8175 GB, free: 82.68 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004565/1.056, allocations: 3.26 MB / 0.8207 GB, free: 80.29 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001031/1.057, allocations: 95.14 kB / 0.8208 GB, free: 80.24 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001187/1.058, allocations: 1.973 MB / 0.8227 GB, free: 78.99 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001739/1.06, allocations: 1.317 MB / 0.824 GB, free: 77.68 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001316/1.061, allocations: 0.6822 MB / 0.8246 GB, free: 76.99 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.915e-05/1.062, allocations: 301.1 kB / 0.8249 GB, free: 76.69 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004581/1.066, allocations: 2.601 MB / 0.8275 GB, free: 74.08 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004824/1.071, allocations: 3.233 MB / 0.8306 GB, free: 70.62 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06299/1.134, allocations: 19 MB / 0.8492 GB, free: 51.37 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.89e-05/1.134, allocations: 4 kB / 0.8492 GB, free: 51.37 MB / 0.5606 GB Notification: Performance of matching and sorting (n=542) (initialization): time 0.05082/1.185, allocations: 17.29 MB / 0.8661 GB, free: 34.03 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.968e-05/1.185, allocations: 67.41 kB / 0.8661 GB, free: 33.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-05/1.185, allocations: 16 kB / 0.8661 GB, free: 33.93 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02296/1.208, allocations: 7.153 MB / 0.8731 GB, free: 26.77 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003542/1.212, allocations: 0.6826 MB / 0.8738 GB, free: 26.09 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07781/1.289, allocations: 33.3 MB / 0.9063 GB, free: 8.617 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006243/1.296, allocations: 0.6172 MB / 0.9069 GB, free: 7.996 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00119/1.297, allocations: 156 kB / 0.9071 GB, free: 7.844 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.003432/1.3, allocations: 0.6871 MB / 0.9077 GB, free: 7.152 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001976/1.302, allocations: 458.3 kB / 0.9082 GB, free: 6.699 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05688/1.359, allocations: 16.87 MB / 0.9246 GB, free: 5.762 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.427e-05/1.359, allocations: 36 kB / 0.9247 GB, free: 5.727 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001288/1.36, allocations: 31.94 kB / 0.9247 GB, free: 5.695 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001365/1.36, allocations: 23.92 kB / 0.9247 GB, free: 5.672 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.06876/1.429, allocations: 21.87 MB / 0.9461 GB, free: 15.72 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.696e-05/1.429, allocations: 4.031 kB / 0.9461 GB, free: 15.72 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00259/1.431, allocations: 399.5 kB / 0.9465 GB, free: 15.33 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0265/1.458, allocations: 7.365 MB / 0.9537 GB, free: 7.949 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001277/1.459, allocations: 75.92 kB / 0.9537 GB, free: 7.875 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09183/1.551, allocations: 31.78 MB / 0.9848 GB, free: 7.805 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/1.551, allocations: 4 kB / 0.9848 GB, free: 7.801 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06616/1.617, allocations: 20.25 MB / 1.005 GB, free: 3.465 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001801/1.619, allocations: 0.5547 MB / 1.005 GB, free: 2.887 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002008/1.621, allocations: 67.94 kB / 1.005 GB, free: 2.82 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00578/1.627, allocations: 383.5 kB / 1.006 GB, free: 2.445 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004286/1.631, allocations: 0.7882 MB / 1.006 GB, free: 1.656 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001103/1.632, allocations: 91.98 kB / 1.006 GB, free: 1.566 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.005011/1.637, allocations: 2.137 MB / 1.008 GB, free: 15.43 MB / 0.6856 GB Notification: Performance of sort global known variables: time 7.12e-07/1.637, allocations: 4 kB / 1.008 GB, free: 15.42 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.008982/1.646, allocations: 1.804 MB / 1.01 GB, free: 13.62 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.069/1.715, allocations: 20.91 MB / 1.031 GB, free: 8.617 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.3612/2.077, allocations: 9.181 MB / 1.04 GB, free: 241.7 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/2.077, allocations: 0.5938 kB / 1.04 GB, free: 241.7 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.0216/2.098, allocations: 6.195 MB / 1.046 GB, free: 241 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004257/2.103, allocations: 389.1 kB / 1.046 GB, free: 241 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1478/2.251, allocations: 59.05 MB / 1.104 GB, free: 206.9 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002235/2.253, allocations: 2.453 MB / 1.106 GB, free: 204.4 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001645/2.254, allocations: 379.1 kB / 1.106 GB, free: 204 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002353/2.257, allocations: 2.026 MB / 1.108 GB, free: 202 MB / 0.7012 GB Notification: Performance of SimCode: time 1.373e-06/2.257, allocations: 0 / 1.108 GB, free: 202 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1792/2.436, allocations: 126.6 MB / 1.232 GB, free: 75.6 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.21/24.64, allocations: 10.03 kB / 1.232 GB, free: 75.59 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FifthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FifthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe 2>&1)