Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",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.001159/0.001159, allocations: 106.2 kB / 17.06 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 195 kB / 18 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.367/1.367, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1731/0.1731, allocations: 37.98 MB / 309.2 MB, free: 5.969 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 67.89 kB / 431.4 MB, free: 16.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09869/0.1002, allocations: 55.24 MB / 486.6 MB, free: 8.859 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.007873/0.1082, allocations: 5.71 MB / 492.3 MB, free: 3.117 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006401/0.1146, allocations: 4.491 MB / 496.8 MB, free: 14.61 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005123/0.1151, allocations: 19.88 kB / 496.8 MB, free: 14.59 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeComponents: time 0.009308/0.1245, allocations: 4.886 MB / 0.49 GB, free: 9.695 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001368/0.1259, allocations: 426 kB / 0.4904 GB, free: 9.277 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006787/0.1266, allocations: 283.5 kB / 0.4906 GB, free: 9 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002155/0.1287, allocations: 1.719 MB / 0.4923 GB, free: 7.277 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008722/0.1296, allocations: 0.7312 MB / 0.493 GB, free: 6.547 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006204/0.1302, allocations: 482.5 kB / 0.4935 GB, free: 6.074 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006241/0.1309, allocations: 0.4982 MB / 0.494 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001009/0.131, allocations: 72 kB / 0.494 GB, free: 5.504 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002702/0.1313, allocations: 143.8 kB / 0.4942 GB, free: 5.363 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002852/0.1316, allocations: 327.2 kB / 0.4945 GB, free: 5.043 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003437/0.1319, allocations: 394.2 kB / 0.4949 GB, free: 4.656 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009734/0.1329, allocations: 1.036 MB / 0.4959 GB, free: 3.617 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1329, allocations: 4 kB / 0.4959 GB, free: 3.613 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1329, allocations: 3.938 kB / 0.4959 GB, free: 3.609 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.1329, allocations: 0 / 0.4959 GB, free: 3.609 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001853/0.1348, allocations: 1.028 MB / 0.4969 GB, free: 2.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.1348, allocations: 15.89 kB / 0.4969 GB, free: 2.504 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001126/0.135, allocations: 102.7 kB / 0.497 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003908/0.1354, allocations: 104 kB / 0.4971 GB, free: 2.293 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001138/0.1365, allocations: 0.6153 MB / 0.4977 GB, free: 1.637 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.068e-05/0.1366, allocations: 94.92 kB / 0.4978 GB, free: 1.539 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.1367, allocations: 56 kB / 0.4978 GB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001155/0.1379, allocations: 0.8021 MB / 0.4986 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.788e-05/0.1379, allocations: 15.83 kB / 0.4986 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.454e-05/0.138, allocations: 24 kB / 0.4987 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001223/0.1381, allocations: 53.28 kB / 0.4987 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008923/0.139, allocations: 0.5828 MB / 0.4993 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003895/0.1429, allocations: 2.919 MB / 0.5021 GB, free: 12.94 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007697/0.1437, allocations: 430.1 kB / 0.5025 GB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000323/0.144, allocations: 226.3 kB / 0.5028 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.336e-05/0.1441, allocations: 4.328 kB / 0.5028 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004587/0.1445, allocations: 347.6 kB / 0.5031 GB, free: 11.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 3.256e-06/0.1446, allocations: 3.984 kB / 0.5031 GB, free: 11.9 MB / 398.1 MB Notification: Performance of matching and sorting (n=45): time 0.003041/0.1476, allocations: 2.037 MB / 0.5051 GB, free: 9.711 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.58e-05/0.1477, allocations: 140.5 kB / 0.5052 GB, free: 9.543 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004713/0.1482, allocations: 449.8 kB / 0.5057 GB, free: 9.098 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.538e-05/0.1482, allocations: 37.7 kB / 0.5057 GB, free: 9.055 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000229/0.1485, allocations: 331.9 kB / 0.506 GB, free: 8.723 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/0.1486, allocations: 161.7 kB / 0.5062 GB, free: 8.562 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001656/0.1488, allocations: 114.2 kB / 0.5063 GB, free: 8.445 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.149, allocations: 358.8 kB / 0.5066 GB, free: 8.086 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003533/0.1493, allocations: 237.2 kB / 0.5068 GB, free: 7.855 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004584/0.1498, allocations: 393.7 kB / 0.5072 GB, free: 7.398 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002708/0.1525, allocations: 1.324 MB / 0.5085 GB, free: 5.977 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1525, allocations: 0 / 0.5085 GB, free: 5.977 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001698/0.1542, allocations: 0.9747 MB / 0.5095 GB, free: 4.984 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.263e-05/0.1543, allocations: 37.61 kB / 0.5095 GB, free: 4.941 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.1543, allocations: 4 kB / 0.5095 GB, free: 4.938 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008657/0.1552, allocations: 309.6 kB / 0.5098 GB, free: 4.629 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009875/0.1562, allocations: 179.7 kB / 0.51 GB, free: 4.453 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006683/0.1629, allocations: 5.287 MB / 0.5151 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004522/0.1633, allocations: 23.98 kB / 0.5151 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.175e-05/0.1634, allocations: 32 kB / 0.5152 GB, free: 14.83 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.asm_Y_D.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay1.y,$PRE.relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 49 * 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 {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0004931/0.1639, allocations: 299.5 kB / 0.5155 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.95e-05/0.164, allocations: 51.44 kB / 0.5155 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001241/0.1653, allocations: 0.818 MB / 0.5163 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.1653, allocations: 4 kB / 0.5163 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.1653, allocations: 4 kB / 0.5163 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.1653, allocations: 4.078 kB / 0.5163 GB, free: 13.58 MB / 414.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.002491/0.1678, allocations: 1.666 MB / 0.5179 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.1678, allocations: 4 kB / 0.518 GB, free: 11.78 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001348/0.1692, allocations: 195.9 kB / 0.5181 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002552/0.1695, allocations: 78.47 kB / 0.5182 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-05/0.1695, allocations: 19.98 kB / 0.5182 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003364/0.1729, allocations: 4.249 MB / 0.5224 GB, free: 6.812 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.1729, allocations: 3.938 kB / 0.5224 GB, free: 6.809 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00144/0.1744, allocations: 1.12 MB / 0.5235 GB, free: 5.605 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000297/0.1747, allocations: 180.3 kB / 0.5237 GB, free: 5.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.184e-05/0.1748, allocations: 11.98 kB / 0.5237 GB, free: 5.398 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002735/0.1751, allocations: 23.98 kB / 0.5237 GB, free: 5.375 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.566e-05/0.1752, allocations: 31.95 kB / 0.5237 GB, free: 5.344 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.596e-05/0.1752, allocations: 16 kB / 0.5237 GB, free: 5.328 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003948/0.1756, allocations: 311.1 kB / 0.524 GB, free: 5.023 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1756, allocations: 3.938 kB / 0.524 GB, free: 5.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000741/0.1764, allocations: 171.9 kB / 0.5242 GB, free: 4.852 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1],loadInertia.w,frictTorq.phi) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001912/0.1783, allocations: 1.672 MB / 0.5258 GB, free: 3.082 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002251/0.1806, allocations: 0.9877 MB / 0.5268 GB, free: 2.055 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.1806, allocations: 0 / 0.5268 GB, free: 2.055 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000951/0.1815, allocations: 0.6476 MB / 0.5274 GB, free: 1.355 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009923/0.1826, allocations: 130.3 kB / 0.5276 GB, free: 1.23 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2265/0.409, allocations: 6.136 MB / 0.5335 GB, free: 49.66 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006214/0.4097, allocations: 0.9855 MB / 0.5345 GB, free: 48.96 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004077/0.4101, allocations: 119.2 kB / 0.5346 GB, free: 48.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002755/0.4104, allocations: 217 kB / 0.5348 GB, free: 48.96 MB / 414.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4104, allocations: 0 / 0.5348 GB, free: 48.96 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06333/0.4737, allocations: 14.44 MB / 0.5489 GB, free: 44.74 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.27/12.74, allocations: 5.25 kB / 0.5489 GB, free: 44.74 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1)