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: translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000818/0.000818, allocations: 94.72 kB / 16.32 MB, free: 5.602 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.0008996/0.0008997, allocations: 184.5 kB / 17.21 MB, free: 5.52 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.398/1.398, allocations: 205.4 MB / 223.4 MB, free: 5.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3232/0.3232, allocations: 38.04 MB / 309.7 MB, free: 8.812 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.0005059/0.000506, allocations: 12 kB / 376.5 MB, free: 15.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1156, allocations: 56.33 MB / 432.9 MB, free: 6.688 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.007679/0.1234, allocations: 7.452 MB / 440.3 MB, free: 15.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007584/0.131, allocations: 5.068 MB / 445.4 MB, free: 10.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008355/0.1319, allocations: 55.62 kB / 445.4 MB, free: 10.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009692/0.1416, allocations: 5.366 MB / 450.8 MB, free: 4.695 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001771/0.1434, allocations: 0.552 MB / 451.4 MB, free: 4.141 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001289/0.1447, allocations: 435.2 kB / 451.8 MB, free: 3.715 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003051/0.1477, allocations: 2.542 MB / 454.3 MB, free: 1.168 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001413/0.1492, allocations: 0.9675 MB / 455.3 MB, free: 152 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1911/0.3402, allocations: 0.5018 MB / 455.8 MB, free: 38.87 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000967/0.3412, allocations: 0.7015 MB / 456.5 MB, free: 38.87 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001346/0.3414, allocations: 44.31 kB / 456.5 MB, free: 38.87 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005391/0.3419, allocations: 163.8 kB / 456.7 MB, free: 38.87 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004184/0.3424, allocations: 446.9 kB / 457.1 MB, free: 38.87 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002949/0.3427, allocations: 225 kB / 457.3 MB, free: 38.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001224/0.3439, allocations: 1.188 MB / 458.5 MB, free: 38.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.094e-06/0.3439, allocations: 5.438 kB / 458.5 MB, free: 38.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3439, allocations: 0 / 458.5 MB, free: 38.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.316e-05/0.344, allocations: 0 / 458.5 MB, free: 38.8 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: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.002455/0.3464, allocations: 1.259 MB / 459.8 MB, free: 38.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.3465, allocations: 10.06 kB / 459.8 MB, free: 38.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006072/0.3471, allocations: 151 kB / 460 MB, free: 38.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001324/0.3484, allocations: 0.851 MB / 460.8 MB, free: 37.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.292e-05/0.3485, allocations: 61.19 kB / 460.9 MB, free: 37.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001249/0.3486, allocations: 89.95 kB / 461 MB, free: 37.74 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001471/0.3501, allocations: 1.233 MB / 462.2 MB, free: 37.51 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.929e-05/0.3501, allocations: 7.438 kB / 462.2 MB, free: 37.51 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.345e-05/0.3502, allocations: 36.06 kB / 462.2 MB, free: 37.51 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001784/0.3504, allocations: 86.17 kB / 462.3 MB, free: 37.51 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001333/0.3517, allocations: 0.9946 MB / 463.3 MB, free: 37.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005035/0.3568, allocations: 4.935 MB / 468.2 MB, free: 35.11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007415/0.3576, allocations: 0.654 MB / 468.9 MB, free: 34.96 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004352/0.358, allocations: 355.5 kB / 469.2 MB, free: 34.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.452e-05/0.3581, allocations: 16.23 kB / 469.3 MB, free: 34.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005436/0.3586, allocations: 447.2 kB / 469.7 MB, free: 34.87 MB / 382.1 MB Notification: Performance of pre-optimization done (n=62): time 3.246e-06/0.3586, allocations: 0 / 469.7 MB, free: 34.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=65): time 0.00419/0.3628, allocations: 2.74 MB / 472.4 MB, free: 33.88 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.732e-05/0.3629, allocations: 114.8 kB / 472.5 MB, free: 33.76 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007817/0.3637, allocations: 0.7439 MB / 473.3 MB, free: 33.62 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.962e-05/0.3638, allocations: 43.56 kB / 473.3 MB, free: 33.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002505/0.364, allocations: 0.4924 MB / 473.8 MB, free: 33.33 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001487/0.3642, allocations: 237.3 kB / 474.1 MB, free: 33.19 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.577e-05/0.3642, allocations: 23.16 kB / 474.1 MB, free: 33.19 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.3644, allocations: 394.7 kB / 474.5 MB, free: 32.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005416/0.3649, allocations: 372.6 kB / 474.8 MB, free: 32.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005947/0.3655, allocations: 0.6505 MB / 475.5 MB, free: 32.53 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005969/0.3661, allocations: 481 kB / 476 MB, free: 32.51 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.9e-06/0.3661, allocations: 5.203 kB / 476 MB, free: 32.51 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002619/0.3688, allocations: 1.616 MB / 477.6 MB, free: 32.28 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.119e-05/0.3688, allocations: 9.906 kB / 477.6 MB, free: 32.28 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.186e-05/0.3688, allocations: 13.83 kB / 477.6 MB, free: 32.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001351/0.3702, allocations: 487.9 kB / 478.1 MB, free: 32.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005623/0.3708, allocations: 170.7 kB / 478.2 MB, free: 32.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007459/0.3783, allocations: 6.493 MB / 484.7 MB, free: 29.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007748/0.3791, allocations: 51.58 kB / 484.8 MB, free: 29.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.242e-05/0.3792, allocations: 47.02 kB / 484.8 MB, free: 29.29 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {6 23} Notification: Performance of prepare postOptimizeDAE: time 0.0005305/0.3797, allocations: 359.9 kB / 485.2 MB, free: 29.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/0.3798, allocations: 82.09 kB / 485.3 MB, free: 29.03 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001574/0.3814, allocations: 1.113 MB / 486.4 MB, free: 28.44 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.605e-06/0.3814, allocations: 7.75 kB / 486.4 MB, free: 28.44 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3814, allocations: 0 / 486.4 MB, free: 28.44 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.3815, allocations: 6.5 kB / 486.4 MB, free: 28.44 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002978/0.3844, allocations: 2.111 MB / 488.5 MB, free: 27.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.3845, allocations: 2.969 kB / 488.5 MB, free: 27.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006801/0.3852, allocations: 129.5 kB / 488.6 MB, free: 27.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004448/0.3856, allocations: 159.4 kB / 488.8 MB, free: 27.28 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.235e-05/0.3857, allocations: 20.47 kB / 488.8 MB, free: 27.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002689/0.3884, allocations: 4.447 MB / 493.3 MB, free: 23.13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3884, allocations: 3 kB / 493.3 MB, free: 23.13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002014/0.3904, allocations: 1.535 MB / 494.8 MB, free: 22.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004038/0.3909, allocations: 213 kB / 495 MB, free: 22.13 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001355/0.391, allocations: 21.38 kB / 495 MB, free: 22.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000403/0.3914, allocations: 29.47 kB / 495 MB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.3916, allocations: 60.97 kB / 495.1 MB, free: 22.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.936e-05/0.3916, allocations: 23.31 kB / 495.1 MB, free: 22.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007303/0.3924, allocations: 0.5046 MB / 495.6 MB, free: 21.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.3924, allocations: 1.125 kB / 495.6 MB, free: 21.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001408/0.3938, allocations: 260.9 kB / 495.9 MB, free: 21.84 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009484/0.3948, allocations: 436.1 kB / 496.3 MB, free: 21.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002751/0.3975, allocations: 1.331 MB / 497.6 MB, free: 20.97 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.387e-06/0.3976, allocations: 1.094 kB / 497.6 MB, free: 20.97 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001184/0.3988, allocations: 0.7746 MB / 498.4 MB, free: 20.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001182/0.3999, allocations: 202.4 kB / 498.6 MB, free: 20.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004709/0.4047, allocations: 3.251 MB / 0.4901 GB, free: 18.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009704/0.4057, allocations: 1.141 MB / 0.4912 GB, free: 17.76 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001021/0.4067, allocations: 228.8 kB / 0.4914 GB, free: 17.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002964/0.407, allocations: 78.56 kB / 0.4915 GB, free: 17.7 MB / 382.1 MB Notification: Performance of SimCode: time 2.235e-06/0.407, allocations: 0 / 0.4915 GB, free: 17.7 MB / 382.1 MB Notification: Performance of Templates: time 0.02842/0.4355, allocations: 13.46 MB / 0.5047 GB, free: 14.83 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.makefile Environment - environmentSimulation: (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 & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1) Environment - environmentSimulation: