Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",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.004786/0.004786, allocations: 101.7 kB / 15.73 MB, free: 6.031 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.26/1.26, allocations: 222.9 MB / 239.4 MB, free: 4.559 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.00123/0.00123, allocations: 188.5 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4666/0.4666, allocations: 91.89 MB / 431.8 MB, free: 9.203 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 79 kB / 0.5723 GB, free: 33.7 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1126, allocations: 71.28 MB / 0.6419 GB, free: 4.098 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.0066/0.1192, allocations: 6.216 MB / 0.6479 GB, free: 13.86 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003425/0.1227, allocations: 1.857 MB / 0.6498 GB, free: 11.99 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007136/0.1234, allocations: 8 kB / 0.6498 GB, free: 11.98 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006041/0.124, allocations: 214.1 kB / 0.65 GB, free: 11.77 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002036/0.1261, allocations: 0.8046 MB / 0.6508 GB, free: 10.97 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001264/0.1274, allocations: 0.5916 MB / 0.6513 GB, free: 10.38 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001386/0.1288, allocations: 1.37 MB / 0.6527 GB, free: 9.008 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003669/0.1291, allocations: 287.9 kB / 0.6529 GB, free: 8.711 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005875/0.1297, allocations: 0.5873 MB / 0.6535 GB, free: 8.121 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006863/0.1304, allocations: 0.7506 MB / 0.6543 GB, free: 7.367 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001446/0.1306, allocations: 111.9 kB / 0.6544 GB, free: 7.258 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003967/0.131, allocations: 251.8 kB / 0.6546 GB, free: 7.012 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002124/0.1312, allocations: 294.7 kB / 0.6549 GB, free: 6.723 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004312/0.1316, allocations: 0.6097 MB / 0.6555 GB, free: 6.109 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001243/0.1329, allocations: 1.486 MB / 0.6569 GB, free: 4.621 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1329, allocations: 0 / 0.6569 GB, free: 4.621 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.1329, allocations: 3.984 kB / 0.6569 GB, free: 4.617 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.1329, allocations: 0 / 0.6569 GB, free: 4.617 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.00712/0.1401, allocations: 2.491 MB / 0.6594 GB, free: 2.074 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.1401, allocations: 12.03 kB / 0.6594 GB, free: 2.062 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001295/0.1402, allocations: 118.5 kB / 0.6595 GB, free: 1.938 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004734/0.145, allocations: 0.7594 MB / 0.6602 GB, free: 1.176 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00116/0.1462, allocations: 0.7968 MB / 0.661 GB, free: 328 kB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002496/0.1464, allocations: 256.2 kB / 0.6613 GB, free: 36 kB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000159/0.1466, allocations: 80.05 kB / 0.6613 GB, free: 15.95 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00209/0.1487, allocations: 1.17 MB / 0.6625 GB, free: 14.76 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.792e-05/0.1487, allocations: 3.984 kB / 0.6625 GB, free: 14.76 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.861e-05/0.1488, allocations: 28 kB / 0.6625 GB, free: 14.73 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.644e-05/0.1488, allocations: 20 kB / 0.6625 GB, free: 14.71 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001779/0.1506, allocations: 0.9459 MB / 0.6634 GB, free: 13.77 MB / 478.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.005401/0.156, allocations: 3.562 MB / 0.6669 GB, free: 10.01 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006654/0.1627, allocations: 2.301 MB / 0.6692 GB, free: 7.621 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001222/0.1639, allocations: 0.6595 MB / 0.6698 GB, free: 6.957 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001056/0.164, allocations: 16.62 kB / 0.6698 GB, free: 6.941 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.1641, allocations: 47.22 kB / 0.6699 GB, free: 6.887 MB / 478.1 MB Notification: Performance of pre-optimization done (n=92): time 2.304e-06/0.1641, allocations: 0 / 0.6699 GB, free: 6.887 MB / 478.1 MB Notification: Performance of matching and sorting (n=92): time 0.02474/0.1888, allocations: 6.858 MB / 0.6766 GB, free: 15.96 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.668e-05/0.1889, allocations: 101.7 kB / 0.6767 GB, free: 15.85 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00115/0.1901, allocations: 0.9656 MB / 0.6776 GB, free: 14.87 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001167/0.1902, allocations: 45.64 kB / 0.6777 GB, free: 14.82 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003002/0.1905, allocations: 460.8 kB / 0.6781 GB, free: 14.36 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002738/0.1908, allocations: 315.6 kB / 0.6784 GB, free: 14.05 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004191/0.1912, allocations: 259.5 kB / 0.6786 GB, free: 13.79 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.674e-05/0.1913, allocations: 301.1 kB / 0.6789 GB, free: 13.49 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001311/0.1926, allocations: 0.691 MB / 0.6796 GB, free: 12.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00143/0.1941, allocations: 0.9185 MB / 0.6805 GB, free: 11.81 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02024/0.2143, allocations: 5.057 MB / 0.6854 GB, free: 6.676 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.168e-05/0.2144, allocations: 4 kB / 0.6854 GB, free: 6.672 MB / 494.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01176/0.2261, allocations: 4.141 MB / 0.6895 GB, free: 2.516 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.026e-05/0.2262, allocations: 8 kB / 0.6895 GB, free: 2.508 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.2262, allocations: 4 kB / 0.6895 GB, free: 2.504 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004959/0.2312, allocations: 1.52 MB / 0.691 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/0.2324, allocations: 255.6 kB / 0.6912 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0179/0.2504, allocations: 8.272 MB / 0.6993 GB, free: 8.309 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001457/0.2519, allocations: 174.9 kB / 0.6995 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001813/0.2521, allocations: 55.97 kB / 0.6995 GB, free: 8.082 MB / 0.4981 GB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" 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: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * Top-level inputs: 0 Notification: Strong component statistics for initialization (151): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * 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 {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005721/0.2526, allocations: 269.1 kB / 0.6998 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009888/0.2536, allocations: 344.7 kB / 0.7001 GB, free: 7.465 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01064/0.2643, allocations: 3.58 MB / 0.7036 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.2643, allocations: 8 kB / 0.7036 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/0.2643, allocations: 8 kB / 0.7036 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.2644, allocations: 7.984 kB / 0.7036 GB, free: 3.844 MB / 0.4981 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.01286/0.2772, allocations: 5.135 MB / 0.7086 GB, free: 14.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.2772, allocations: 0 / 0.7086 GB, free: 14.6 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005335/0.2778, allocations: 107.9 kB / 0.7088 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004962/0.2828, allocations: 1.579 MB / 0.7103 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/0.2829, allocations: 16 kB / 0.7103 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01788/0.3008, allocations: 10.76 MB / 0.7208 GB, free: 1.789 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.3008, allocations: 7.938 kB / 0.7208 GB, free: 1.781 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01305/0.3139, allocations: 4.605 MB / 0.7253 GB, free: 13.15 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003555/0.3143, allocations: 207.4 kB / 0.7255 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002358/0.3145, allocations: 20 kB / 0.7255 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/0.3155, allocations: 87.91 kB / 0.7256 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005155/0.3161, allocations: 168.8 kB / 0.7258 GB, free: 12.65 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.403e-05/0.3162, allocations: 31.98 kB / 0.7258 GB, free: 12.62 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0008326/0.317, allocations: 0.6395 MB / 0.7264 GB, free: 11.97 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.11e-07/0.317, allocations: 0 / 0.7264 GB, free: 11.97 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001307/0.3183, allocations: 443.6 kB / 0.7269 GB, free: 11.54 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vm,aVRTypeII.vr1,aVRTypeII.vr2,aVRTypeII.vf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01337/0.3317, allocations: 5.206 MB / 0.7319 GB, free: 6.297 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.005511/0.3372, allocations: 2.277 MB / 0.7342 GB, free: 4.004 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.3373, allocations: 0 / 0.7342 GB, free: 4.004 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003549/0.3408, allocations: 1.333 MB / 0.7355 GB, free: 2.652 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001464/0.3423, allocations: 339 kB / 0.7358 GB, free: 2.305 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03348/0.3758, allocations: 15.01 MB / 0.7504 GB, free: 3.016 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005991/0.3765, allocations: 1.073 MB / 0.7515 GB, free: 1.914 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003375/0.3768, allocations: 99.33 kB / 0.7516 GB, free: 1.812 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005587/0.3774, allocations: 439.3 kB / 0.752 GB, free: 1.383 MB / 0.545 GB Notification: Performance of SimCode: time 5.41e-07/0.3774, allocations: 0 / 0.752 GB, free: 1.383 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2966/0.6739, allocations: 31.33 MB / 0.7826 GB, free: 117.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.59/16.26, allocations: 6.5 kB / 0.7826 GB, free: 117.2 MB / 0.5606 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=0.001 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)