Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.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.ASM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009672/0.0009672, allocations: 86.95 kB / 16.65 MB, free: 6.535 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.001287/0.001287, allocations: 177.5 kB / 17.56 MB, free: 6.18 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.513/1.513, allocations: 205.4 MB / 223.7 MB, free: 13.06 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1707/0.1707, allocations: 38.05 MB / 310.1 MB, free: 5.91 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.000566/0.0005662, allocations: 12.47 kB / 377.2 MB, free: 2.715 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.261, allocations: 56.33 MB / 433.5 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.008061/0.2691, allocations: 7.995 MB / 441.5 MB, free: 10.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007224/0.2764, allocations: 5.198 MB / 446.7 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001556/0.278, allocations: 51.69 kB / 446.7 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008419/0.2864, allocations: 4.687 MB / 451.4 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001798/0.2882, allocations: 477.8 kB / 451.9 MB, free: 232 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002022/0.2903, allocations: 457.7 kB / 452.3 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004696/0.295, allocations: 3.018 MB / 455.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002761/0.2978, allocations: 1.152 MB / 456.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001562/0.2994, allocations: 0.5366 MB / 457 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001701/0.3011, allocations: 0.7276 MB / 457.8 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003681/0.3015, allocations: 48 kB / 457.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005343/0.302, allocations: 67.92 kB / 457.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006533/0.3027, allocations: 374.8 kB / 458.2 MB, free: 9.797 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001153/0.3038, allocations: 0.5496 MB / 458.8 MB, free: 9.238 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002527/0.3064, allocations: 1.499 MB / 460.3 MB, free: 7.734 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.3064, allocations: 4 kB / 460.3 MB, free: 7.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.627e-06/0.3064, allocations: 0 / 460.3 MB, free: 7.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001027/0.3065, allocations: 0 / 460.3 MB, free: 7.73 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.004209/0.3107, allocations: 1.23 MB / 461.5 MB, free: 6.449 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.701e-05/0.3108, allocations: 12.03 kB / 461.5 MB, free: 6.438 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008121/0.3116, allocations: 139.4 kB / 461.7 MB, free: 6.301 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002389/0.314, allocations: 0.8873 MB / 462.6 MB, free: 5.371 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.088e-05/0.3141, allocations: 69.98 kB / 462.6 MB, free: 5.301 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003324/0.3145, allocations: 87.98 kB / 462.7 MB, free: 5.215 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00257/0.3171, allocations: 1.234 MB / 464 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.783e-05/0.3171, allocations: 7.906 kB / 464 MB, free: 3.922 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001112/0.3172, allocations: 36 kB / 464 MB, free: 3.887 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002297/0.3175, allocations: 77.94 kB / 464.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001859/0.3193, allocations: 1.011 MB / 465.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006551/0.3259, allocations: 4.441 MB / 469.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001393/0.3273, allocations: 0.9074 MB / 470.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007443/0.3281, allocations: 459.9 kB / 470.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.028e-05/0.3282, allocations: 4.562 kB / 470.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.54e-05/0.3282, allocations: 43.11 kB / 470.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=70): time 3.216e-06/0.3282, allocations: 3.938 kB / 470.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.007486/0.3357, allocations: 3.33 MB / 474.3 MB, free: 9.242 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.286e-05/0.3358, allocations: 137.1 kB / 474.4 MB, free: 9.078 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001012/0.3369, allocations: 0.696 MB / 475.1 MB, free: 8.371 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.255e-05/0.337, allocations: 41.7 kB / 475.1 MB, free: 8.324 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003353/0.3373, allocations: 483.2 kB / 475.6 MB, free: 7.844 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002193/0.3375, allocations: 252.4 kB / 475.8 MB, free: 7.594 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.3376, allocations: 77.67 kB / 475.9 MB, free: 7.512 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.3378, allocations: 334 kB / 476.3 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006212/0.3384, allocations: 381.8 kB / 476.6 MB, free: 6.805 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007802/0.3392, allocations: 0.5978 MB / 477.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008314/0.3475, allocations: 2.418 MB / 479.6 MB, free: 3.586 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.065e-05/0.3476, allocations: 4 kB / 479.6 MB, free: 3.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.006376/0.354, allocations: 2.067 MB / 481.7 MB, free: 1.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002271/0.3542, allocations: 279.9 kB / 482 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.793e-05/0.3542, allocations: 11.94 kB / 482 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004902/0.3592, allocations: 1.024 MB / 483 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006468/0.3598, allocations: 135.8 kB / 483.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01634/0.3762, allocations: 9.26 MB / 492.4 MB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008472/0.3771, allocations: 36.05 kB / 492.4 MB, free: 6.371 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001458/0.3773, allocations: 39.98 kB / 492.5 MB, free: 6.332 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.3773, allocations: 4 kB / 492.5 MB, free: 6.328 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005632/0.3829, allocations: 1.856 MB / 494.3 MB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.784e-05/0.383, allocations: 7.938 kB / 494.4 MB, free: 4.438 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004673/0.3877, allocations: 0.9969 MB / 495.4 MB, free: 3.434 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005728/0.3882, allocations: 131.8 kB / 495.5 MB, free: 3.305 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01414/0.4024, allocations: 8.98 MB / 0.4926 GB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007828/0.4032, allocations: 36.05 kB / 0.4927 GB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001363/0.4034, allocations: 35.98 kB / 0.4927 GB, free: 9.984 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.asm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 63 * 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,35)} Notification: Performance of prepare postOptimizeDAE: time 0.0007476/0.4042, allocations: 424.9 kB / 0.4931 GB, free: 9.559 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002444/0.4044, allocations: 90.81 kB / 0.4932 GB, free: 9.469 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002285/0.4067, allocations: 1.265 MB / 0.4944 GB, free: 8.141 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.177e-05/0.4067, allocations: 12 kB / 0.4944 GB, free: 8.129 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.4067, allocations: 4 kB / 0.4944 GB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/0.4068, allocations: 3.984 kB / 0.4945 GB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004212/0.411, allocations: 2.418 MB / 0.4968 GB, free: 5.578 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.411, allocations: 4 kB / 0.4968 GB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008462/0.4118, allocations: 151.8 kB / 0.497 GB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005038/0.4124, allocations: 159.3 kB / 0.4971 GB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.066e-05/0.4125, allocations: 23.98 kB / 0.4971 GB, free: 5.234 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004226/0.4167, allocations: 5.393 MB / 0.5024 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4167, allocations: 0 / 0.5024 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002711/0.4194, allocations: 1.887 MB / 0.5042 GB, free: 13.35 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003722/0.4198, allocations: 231.9 kB / 0.5045 GB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001593/0.42, allocations: 20 kB / 0.5045 GB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005518/0.4206, allocations: 39.97 kB / 0.5045 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001533/0.4207, allocations: 52.58 kB / 0.5046 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.533e-05/0.4208, allocations: 23.98 kB / 0.5046 GB, free: 12.97 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006792/0.4215, allocations: 487 kB / 0.5051 GB, free: 12.5 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.735e-06/0.4215, allocations: 0 / 0.5051 GB, free: 12.5 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001792/0.4233, allocations: 463.9 kB / 0.5055 GB, free: 12.05 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 (asm_ctrl.motor.i[3],asm_ctrl.motor.psi_s[1],asm_ctrl.motor.psi_s[2],asm_ctrl.motor.psi_rd[1],asm_ctrl.motor.psi_rq[1],asm_ctrl.motor.phiRotorflux,loadInertia.w,frictTorq.phi,PI_i_q.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (79): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (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.0001954/0.4235, allocations: 119.2 kB / 0.5056 GB, free: 11.92 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005169/0.4287, allocations: 2.615 MB / 0.5082 GB, free: 9.254 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.4287, allocations: 0 / 0.5082 GB, free: 9.254 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001257/0.4299, allocations: 0.9169 MB / 0.5091 GB, free: 8.285 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001434/0.4314, allocations: 231.3 kB / 0.5093 GB, free: 8.059 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004339/0.4357, allocations: 2.997 MB / 0.5122 GB, free: 5.027 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/0.4368, allocations: 1.182 MB / 0.5134 GB, free: 3.816 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008287/0.4376, allocations: 203.1 kB / 0.5136 GB, free: 3.613 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002519/0.4379, allocations: 63.42 kB / 0.5136 GB, free: 3.551 MB / 398.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4379, allocations: 0 / 0.5136 GB, free: 3.551 MB / 398.1 MB Notification: Performance of Templates: time 0.2609/0.6988, allocations: 23.11 MB / 0.5362 GB, free: 75.85 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe 2>&1) Environment - environmentSimulation: