Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.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.ASMav,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMav",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMav",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.001661/0.001661, allocations: 109.9 kB / 17.06 MB, free: 5.973 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.001717/0.001717, allocations: 200 kB / 18.01 MB, free: 5.055 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.383/1.383, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1714/0.1714, allocations: 37.98 MB / 309.2 MB, free: 5.953 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.001408/0.001408, allocations: 64.47 kB / 431.4 MB, free: 16.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1051, allocations: 55.25 MB / 486.6 MB, free: 8.852 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.008991/0.1141, allocations: 7.112 MB / 493.7 MB, free: 1.703 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008104/0.1223, allocations: 5.052 MB / 498.8 MB, free: 12.63 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009174/0.1232, allocations: 27.88 kB / 498.8 MB, free: 12.61 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.01149/0.1348, allocations: 5.697 MB / 0.4927 GB, free: 6.898 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.002043/0.1369, allocations: 0.517 MB / 0.4932 GB, free: 6.379 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001995/0.1389, allocations: 483 kB / 0.4936 GB, free: 5.906 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004802/0.1437, allocations: 2.257 MB / 0.4958 GB, free: 3.645 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001242/0.1449, allocations: 0.9235 MB / 0.4967 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001177/0.1461, allocations: 0.6072 MB / 0.4973 GB, free: 2.098 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001569/0.1477, allocations: 0.7201 MB / 0.498 GB, free: 1.375 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000228/0.148, allocations: 100 kB / 0.4981 GB, free: 1.277 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007845/0.1488, allocations: 263.7 kB / 0.4984 GB, free: 1.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004863/0.1493, allocations: 494.8 kB / 0.4989 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006617/0.1499, allocations: 0.5793 MB / 0.4994 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002055/0.152, allocations: 1.554 MB / 0.5009 GB, free: 14.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.152, allocations: 0 / 0.5009 GB, free: 14.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.152, allocations: 0 / 0.5009 GB, free: 14.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.838e-05/0.152, allocations: 0 / 0.5009 GB, free: 14.39 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.003184/0.1552, allocations: 1.46 MB / 0.5024 GB, free: 12.88 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/0.1553, allocations: 11.89 kB / 0.5024 GB, free: 12.87 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001789/0.1555, allocations: 135.6 kB / 0.5025 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00066/0.1562, allocations: 147.5 kB / 0.5026 GB, free: 12.58 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001829/0.158, allocations: 0.9169 MB / 0.5035 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.203e-05/0.1581, allocations: 58 kB / 0.5036 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001579/0.1582, allocations: 87.98 kB / 0.5037 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001825/0.1601, allocations: 1.235 MB / 0.5049 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.125e-05/0.1601, allocations: 0 / 0.5049 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.126e-05/0.1602, allocations: 32 kB / 0.5049 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002381/0.1604, allocations: 97.81 kB / 0.505 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001563/0.162, allocations: 1.003 MB / 0.506 GB, free: 9.043 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007049/0.1691, allocations: 4.893 MB / 0.5108 GB, free: 3.938 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001008/0.1701, allocations: 0.6451 MB / 0.5114 GB, free: 3.258 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000588/0.1707, allocations: 367.2 kB / 0.5118 GB, free: 2.895 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.827e-05/0.1708, allocations: 8.562 kB / 0.5118 GB, free: 2.887 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007057/0.1715, allocations: 449.7 kB / 0.5122 GB, free: 2.426 MB / 398.1 MB Notification: Performance of pre-optimization done (n=62): time 2.444e-06/0.1715, allocations: 0 / 0.5122 GB, free: 2.426 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.004934/0.1765, allocations: 2.719 MB / 0.5148 GB, free: 15.57 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.138e-05/0.1766, allocations: 111.4 kB / 0.515 GB, free: 15.44 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009467/0.1775, allocations: 0.7506 MB / 0.5157 GB, free: 14.68 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.277e-05/0.1776, allocations: 33.7 kB / 0.5157 GB, free: 14.64 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003525/0.178, allocations: 0.4909 MB / 0.5162 GB, free: 14.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001967/0.1782, allocations: 240.6 kB / 0.5164 GB, free: 13.9 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002764/0.1785, allocations: 182.5 kB / 0.5166 GB, free: 13.71 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002267/0.1787, allocations: 398.7 kB / 0.517 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005865/0.1793, allocations: 385.7 kB / 0.5173 GB, free: 12.94 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000764/0.1801, allocations: 0.65 MB / 0.518 GB, free: 12.16 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001372/0.1814, allocations: 1.053 MB / 0.519 GB, free: 10.99 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.1815, allocations: 0 / 0.519 GB, free: 10.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002937/0.1844, allocations: 1.627 MB / 0.5206 GB, free: 9.328 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.1844, allocations: 8 kB / 0.5206 GB, free: 9.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.494e-05/0.1845, allocations: 12 kB / 0.5206 GB, free: 9.309 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001481/0.186, allocations: 489.3 kB / 0.5211 GB, free: 8.824 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006067/0.1866, allocations: 163.7 kB / 0.5212 GB, free: 8.664 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009755/0.1963, allocations: 7.098 MB / 0.5282 GB, free: 1.273 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008263/0.1972, allocations: 48.03 kB / 0.5282 GB, free: 1.227 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.182e-05/0.1973, allocations: 47.92 kB / 0.5283 GB, free: 1.18 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0005878/0.1979, allocations: 353.4 kB / 0.5286 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001374/0.198, allocations: 86.88 kB / 0.5287 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2372/0.4352, allocations: 1.111 MB / 0.5298 GB, free: 51.68 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-05/0.4353, allocations: 7.656 kB / 0.5298 GB, free: 51.68 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.4353, allocations: 2.656 kB / 0.5298 GB, free: 51.68 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-05/0.4353, allocations: 3.281 kB / 0.5298 GB, free: 51.68 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004022/0.4393, allocations: 2.109 MB / 0.5318 GB, free: 51.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.4394, allocations: 2.172 kB / 0.5318 GB, free: 51.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007277/0.4401, allocations: 123 kB / 0.532 GB, free: 51.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005179/0.4406, allocations: 162.5 kB / 0.5321 GB, free: 51.12 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-05/0.4407, allocations: 23.61 kB / 0.5321 GB, free: 51.12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003243/0.444, allocations: 4.804 MB / 0.5368 GB, free: 47.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.444, allocations: 5.344 kB / 0.5368 GB, free: 47.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002197/0.4462, allocations: 1.525 MB / 0.5383 GB, free: 46.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003869/0.4466, allocations: 218.7 kB / 0.5385 GB, free: 46.19 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.4467, allocations: 22.98 kB / 0.5386 GB, free: 46.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004312/0.4472, allocations: 30.36 kB / 0.5386 GB, free: 46.17 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001828/0.4473, allocations: 53.61 kB / 0.5386 GB, free: 46.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.852e-05/0.4474, allocations: 23.03 kB / 0.5387 GB, free: 46.16 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007366/0.4482, allocations: 0.5102 MB / 0.5392 GB, free: 45.95 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4482, allocations: 0 / 0.5392 GB, free: 45.95 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001074/0.4492, allocations: 261 kB / 0.5394 GB, free: 45.92 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.rotor.phi,asm.rotor.w,asm.motor.i[3],asm.motor.psi_s[1],asm.motor.psi_s[2],asm.motor.psi_rd[1],asm.motor.psi_rd[2],asm.motor.psi_rq[1],asm.motor.psi_rq[2],tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * 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,3,100.0%), (2,1,100.0%), (2,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.003799/0.453, allocations: 2.395 MB / 0.5417 GB, free: 44.42 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002849/0.4559, allocations: 1.329 MB / 0.543 GB, free: 43.82 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.4559, allocations: 1.625 kB / 0.543 GB, free: 43.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001192/0.4571, allocations: 0.7825 MB / 0.5438 GB, free: 43.35 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/0.4583, allocations: 224.5 kB / 0.544 GB, free: 43.26 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01577/0.4741, allocations: 9.814 MB / 0.5536 GB, free: 38.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008463/0.475, allocations: 1.147 MB / 0.5547 GB, free: 37.26 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000882/0.4759, allocations: 233.1 kB / 0.5549 GB, free: 37.21 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005057/0.4764, allocations: 366.2 kB / 0.5553 GB, free: 36.94 MB / 414.1 MB Notification: Performance of SimCode: time 1.222e-06/0.4764, allocations: 0 / 0.5553 GB, free: 36.94 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05252/0.5289, allocations: 24.28 MB / 0.579 GB, free: 16.74 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.83/16.36, allocations: 3.859 kB / 0.579 GB, free: 16.73 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMav_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMav.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1)