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.001996/0.001996, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.431/1.431, allocations: 222.9 MB / 238.9 MB, free: 4.762 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.00142/0.00142, allocations: 192.4 kB / 289.1 MB, free: 2.504 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5472/0.5472, allocations: 91.9 MB / 431.2 MB, free: 9.492 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001703/0.001703, allocations: 79.86 kB / 0.5013 GB, free: 8.105 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4182/0.4199, allocations: 71.27 MB / 0.5709 GB, free: 36.55 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.005742/0.4257, allocations: 6.531 MB / 0.5773 GB, free: 32.79 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003745/0.4295, allocations: 1.903 MB / 0.5791 GB, free: 31.6 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007556/0.4302, allocations: 10.72 kB / 0.5792 GB, free: 31.6 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005103/0.4308, allocations: 165.4 kB / 0.5793 GB, free: 31.53 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00171/0.4325, allocations: 0.6766 MB / 0.58 GB, free: 31.09 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001172/0.4337, allocations: 0.549 MB / 0.5805 GB, free: 30.81 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0014/0.4351, allocations: 1.312 MB / 0.5818 GB, free: 30.18 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003715/0.4355, allocations: 255.5 kB / 0.582 GB, free: 30.07 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005794/0.4361, allocations: 0.5301 MB / 0.5826 GB, free: 29.82 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005968/0.4367, allocations: 0.7198 MB / 0.5833 GB, free: 29.49 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001276/0.4368, allocations: 66.38 kB / 0.5833 GB, free: 29.49 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004673/0.4373, allocations: 188.7 kB / 0.5835 GB, free: 29.46 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000193/0.4375, allocations: 257.8 kB / 0.5837 GB, free: 29.3 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004013/0.4379, allocations: 0.5811 MB / 0.5843 GB, free: 28.93 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001145/0.4391, allocations: 1.437 MB / 0.5857 GB, free: 28.28 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.4391, allocations: 0 / 0.5857 GB, free: 28.28 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.4391, allocations: 0 / 0.5857 GB, free: 28.28 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.333e-05/0.4391, allocations: 0 / 0.5857 GB, free: 28.28 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.008168/0.4473, allocations: 2.478 MB / 0.5881 GB, free: 27.14 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.452e-05/0.4474, allocations: 10.03 kB / 0.5881 GB, free: 27.14 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001403/0.4475, allocations: 117.1 kB / 0.5883 GB, free: 27.05 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004974/0.4525, allocations: 0.7681 MB / 0.589 GB, free: 26.89 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001309/0.4538, allocations: 0.8008 MB / 0.5898 GB, free: 26.32 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002688/0.4541, allocations: 253.2 kB / 0.59 GB, free: 26.11 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001594/0.4543, allocations: 74.72 kB / 0.5901 GB, free: 26.09 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002341/0.4566, allocations: 1.179 MB / 0.5913 GB, free: 25.61 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.4567, allocations: 1.125 kB / 0.5913 GB, free: 25.61 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.815e-05/0.4568, allocations: 30.17 kB / 0.5913 GB, free: 25.59 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.163e-05/0.4568, allocations: 17.59 kB / 0.5913 GB, free: 25.59 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001919/0.4587, allocations: 0.9542 MB / 0.5922 GB, free: 25.28 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.006147/0.4649, allocations: 3.576 MB / 0.5957 GB, free: 23.11 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007452/0.4723, allocations: 2.304 MB / 0.598 GB, free: 22.32 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001713/0.4741, allocations: 0.6582 MB / 0.5986 GB, free: 22.07 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001745/0.4743, allocations: 17.81 kB / 0.5986 GB, free: 22.06 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/0.4744, allocations: 38.34 kB / 0.5987 GB, free: 22.02 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 3.416e-06/0.4744, allocations: 4 kB / 0.5987 GB, free: 22.01 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.0319/0.5063, allocations: 6.877 MB / 0.6054 GB, free: 20.7 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001429/0.5065, allocations: 95.34 kB / 0.6055 GB, free: 20.61 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002569/0.5091, allocations: 0.967 MB / 0.6064 GB, free: 20.19 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003371/0.5094, allocations: 45.88 kB / 0.6065 GB, free: 20.14 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005299/0.51, allocations: 456.3 kB / 0.6069 GB, free: 19.78 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005943/0.5106, allocations: 309.8 kB / 0.6072 GB, free: 19.54 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009273/0.5115, allocations: 256.5 kB / 0.6074 GB, free: 19.43 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.726e-05/0.5116, allocations: 301.8 kB / 0.6077 GB, free: 19.13 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001867/0.5135, allocations: 0.6988 MB / 0.6084 GB, free: 18.87 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00203/0.5155, allocations: 0.9152 MB / 0.6093 GB, free: 18.39 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0246/0.5401, allocations: 5.061 MB / 0.6143 GB, free: 16.55 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-05/0.5402, allocations: 1.25 kB / 0.6143 GB, free: 16.55 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01444/0.5547, allocations: 4.13 MB / 0.6183 GB, free: 13.71 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.953e-05/0.5548, allocations: 8 kB / 0.6183 GB, free: 13.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.415e-05/0.5548, allocations: 11.94 kB / 0.6183 GB, free: 13.69 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004855/0.5597, allocations: 1.512 MB / 0.6198 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001317/0.561, allocations: 259.6 kB / 0.62 GB, free: 11.92 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01621/0.5772, allocations: 7.623 MB / 0.6275 GB, free: 4.148 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002078/0.5794, allocations: 174.9 kB / 0.6276 GB, free: 3.977 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003043/0.5797, allocations: 55.97 kB / 0.6277 GB, free: 3.922 MB / 430.1 MB 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.0009826/0.5807, allocations: 267.5 kB / 0.628 GB, free: 3.656 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001277/0.582, allocations: 336.8 kB / 0.6283 GB, free: 3.316 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01069/0.5927, allocations: 3.596 MB / 0.6318 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-05/0.5928, allocations: 11.94 kB / 0.6318 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.502e-05/0.5928, allocations: 8 kB / 0.6318 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-05/0.5928, allocations: 3.984 kB / 0.6318 GB, free: 15.68 MB / 446.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 postOpt removeSimpleEquations (simulation): time 0.01595/0.6088, allocations: 5.136 MB / 0.6368 GB, free: 10.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.434e-05/0.6089, allocations: 4 kB / 0.6368 GB, free: 10.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006947/0.6096, allocations: 111.8 kB / 0.6369 GB, free: 10.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005634/0.6152, allocations: 1.578 MB / 0.6385 GB, free: 8.75 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002111/0.6155, allocations: 23.94 kB / 0.6385 GB, free: 8.727 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01919/0.6347, allocations: 9.897 MB / 0.6482 GB, free: 14.49 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.6347, allocations: 0 / 0.6482 GB, free: 14.49 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01455/0.6493, allocations: 4.601 MB / 0.6527 GB, free: 9.859 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005369/0.6498, allocations: 207.5 kB / 0.6529 GB, free: 9.637 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004209/0.6503, allocations: 20 kB / 0.6529 GB, free: 9.617 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001238/0.6515, allocations: 83.91 kB / 0.653 GB, free: 9.535 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006666/0.6522, allocations: 184.6 kB / 0.6531 GB, free: 9.355 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001316/0.6524, allocations: 20 kB / 0.6531 GB, free: 9.336 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001074/0.6535, allocations: 0.6434 MB / 0.6538 GB, free: 8.684 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.6535, allocations: 0 / 0.6538 GB, free: 8.684 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001783/0.6553, allocations: 435.6 kB / 0.6542 GB, free: 8.258 MB / 462.1 MB 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.01506/0.6703, allocations: 5.188 MB / 0.6593 GB, free: 3.023 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006586/0.677, allocations: 2.303 MB / 0.6615 GB, free: 0.707 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.677, allocations: 0 / 0.6615 GB, free: 0.707 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004222/0.6812, allocations: 1.314 MB / 0.6628 GB, free: 15.38 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002048/0.6833, allocations: 345.5 kB / 0.6631 GB, free: 15.02 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04248/0.7258, allocations: 16.01 MB / 0.6788 GB, free: 14.52 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001127/0.727, allocations: 1.073 MB / 0.6798 GB, free: 13.42 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0006973/0.7277, allocations: 99.33 kB / 0.6799 GB, free: 13.32 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009165/0.7287, allocations: 439.3 kB / 0.6803 GB, free: 12.89 MB / 494.1 MB Notification: Performance of SimCode: time 1.633e-06/0.7287, allocations: 4 kB / 0.6803 GB, free: 12.89 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1093/0.838, allocations: 29.02 MB / 0.7087 GB, free: 104 kB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003411/0.8384, allocations: 262.7 kB / 0.7089 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.355/4.193, allocations: 1.719 kB / 0.7089 GB, free: 15.8 MB / 0.5137 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)