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: translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 94.86 kB / 16.3 MB, free: 5.992 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.0009383/0.0009384, allocations: 183.6 kB / 17.2 MB, free: 5.914 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.662/1.662, allocations: 205.4 MB / 223.4 MB, free: 5.777 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3333/0.3333, allocations: 38.05 MB / 309.7 MB, free: 8.844 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.0005912/0.0005914, allocations: 19.98 kB / 376.5 MB, free: 15.28 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1263, allocations: 56.33 MB / 432.8 MB, free: 6.848 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.006827/0.1331, allocations: 5.735 MB / 438.6 MB, free: 1.086 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006422/0.1396, allocations: 4.441 MB / 443 MB, free: 12.63 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006088/0.1402, allocations: 39.75 kB / 443 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004233/0.1445, allocations: 1.684 MB / 444.7 MB, free: 10.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009928/0.1455, allocations: 362.9 kB / 445.1 MB, free: 10.55 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006852/0.1462, allocations: 235.6 kB / 445.3 MB, free: 10.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006492/0.1468, allocations: 0.5461 MB / 445.8 MB, free: 9.773 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001122/0.148, allocations: 0.7982 MB / 446.6 MB, free: 8.934 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004321/0.1484, allocations: 326.9 kB / 447 MB, free: 8.613 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004287/0.1489, allocations: 330.8 kB / 447.3 MB, free: 8.289 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.053e-05/0.1489, allocations: 32 kB / 447.3 MB, free: 8.258 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001823/0.1491, allocations: 71.89 kB / 447.4 MB, free: 8.188 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002458/0.1494, allocations: 259.3 kB / 447.6 MB, free: 7.934 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001647/0.1495, allocations: 161.4 kB / 447.8 MB, free: 7.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007681/0.1503, allocations: 0.8065 MB / 448.6 MB, free: 6.961 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.1503, allocations: 0 / 448.6 MB, free: 6.961 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.607e-06/0.1503, allocations: 0 / 448.6 MB, free: 6.961 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.1504, allocations: 3.938 kB / 448.6 MB, free: 6.957 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.001656/0.152, allocations: 0.8842 MB / 449.5 MB, free: 6.012 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.1521, allocations: 12.03 kB / 449.5 MB, free: 6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004181/0.1525, allocations: 103 kB / 449.6 MB, free: 5.898 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001097/0.1536, allocations: 0.5876 MB / 450.2 MB, free: 5.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.307e-05/0.1537, allocations: 79 kB / 450.3 MB, free: 5.188 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001173/0.1538, allocations: 59.91 kB / 450.3 MB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001206/0.155, allocations: 0.8059 MB / 451.1 MB, free: 4.285 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.689e-05/0.1551, allocations: 3.953 kB / 451.1 MB, free: 4.281 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.217e-05/0.1552, allocations: 24 kB / 451.2 MB, free: 4.258 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000138/0.1553, allocations: 53.28 kB / 451.2 MB, free: 4.203 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008828/0.1562, allocations: 0.575 MB / 451.8 MB, free: 3.629 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003868/0.1601, allocations: 2.939 MB / 454.7 MB, free: 0.582 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007818/0.1609, allocations: 434.1 kB / 455.2 MB, free: 144 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.274e-05/0.1609, allocations: 4.391 kB / 455.2 MB, free: 140 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2082/0.3692, allocations: 338.2 kB / 455.5 MB, free: 51.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=42): time 2.805e-06/0.3692, allocations: 1.25 kB / 455.5 MB, free: 51.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.002717/0.3719, allocations: 2.118 MB / 457.6 MB, free: 51.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.435e-05/0.372, allocations: 136 kB / 457.7 MB, free: 50.87 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004369/0.3724, allocations: 448.1 kB / 458.2 MB, free: 50.76 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.495e-05/0.3725, allocations: 35.42 kB / 458.2 MB, free: 50.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001744/0.3727, allocations: 333.1 kB / 458.5 MB, free: 50.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.24e-05/0.3728, allocations: 163.3 kB / 458.7 MB, free: 50.45 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.491e-05/0.3728, allocations: 9.969 kB / 458.7 MB, free: 50.45 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.221e-05/0.3729, allocations: 361.1 kB / 459.1 MB, free: 50.14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002877/0.3732, allocations: 236.5 kB / 459.3 MB, free: 50.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003258/0.3735, allocations: 392.6 kB / 459.7 MB, free: 49.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001738/0.3752, allocations: 0.7559 MB / 460.4 MB, free: 49.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3753, allocations: 0 / 460.4 MB, free: 49.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001555/0.3768, allocations: 0.9616 MB / 461.4 MB, free: 49.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.547e-05/0.3769, allocations: 41.39 kB / 461.4 MB, free: 49.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.3769, allocations: 10 kB / 461.4 MB, free: 49.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008032/0.3777, allocations: 307 kB / 461.7 MB, free: 49.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008835/0.3786, allocations: 178.3 kB / 461.9 MB, free: 49.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00517/0.3838, allocations: 4.962 MB / 466.9 MB, free: 46.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003691/0.3842, allocations: 28.83 kB / 466.9 MB, free: 46.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.939e-05/0.3842, allocations: 30.98 kB / 466.9 MB, free: 46.57 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_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,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$PRE.relay1.y,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 (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%) 4} * Non-linear torn systems: 1 {3 15} Notification: Performance of prepare postOptimizeDAE: time 0.0003642/0.3846, allocations: 298.4 kB / 467.2 MB, free: 46.36 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.003e-05/0.3846, allocations: 51.42 kB / 467.3 MB, free: 46.33 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009451/0.3856, allocations: 0.8213 MB / 468.1 MB, free: 45.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.3856, allocations: 9.875 kB / 468.1 MB, free: 45.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.3856, allocations: 0 / 468.1 MB, free: 45.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.3856, allocations: 10.52 kB / 468.1 MB, free: 45.82 MB / 382.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.001942/0.3876, allocations: 1.66 MB / 469.8 MB, free: 44.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.3876, allocations: 3.188 kB / 469.8 MB, free: 44.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/0.3888, allocations: 191.3 kB / 470 MB, free: 44.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002053/0.389, allocations: 80.39 kB / 470 MB, free: 44.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.624e-05/0.389, allocations: 18.19 kB / 470.1 MB, free: 44.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001912/0.391, allocations: 3.968 MB / 474 MB, free: 40.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.391, allocations: 3.938 kB / 474 MB, free: 40.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001242/0.3922, allocations: 1.172 MB / 475.2 MB, free: 39.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002175/0.3925, allocations: 168.4 kB / 475.4 MB, free: 39.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.606e-05/0.3925, allocations: 16.16 kB / 475.4 MB, free: 39.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002436/0.3928, allocations: 16.94 kB / 475.4 MB, free: 39.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.15e-05/0.3929, allocations: 37.8 kB / 475.4 MB, free: 39.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.922e-05/0.3929, allocations: 13.5 kB / 475.5 MB, free: 39.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000276/0.3932, allocations: 319 kB / 475.8 MB, free: 39.63 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3932, allocations: 0 / 475.8 MB, free: 39.63 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006542/0.3939, allocations: 160.5 kB / 475.9 MB, free: 39.62 MB / 382.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 (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%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000124/0.394, allocations: 120 kB / 476 MB, free: 39.51 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001442/0.3954, allocations: 0.9708 MB / 477 MB, free: 38.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3955, allocations: 0 / 477 MB, free: 38.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006001/0.3961, allocations: 0.6434 MB / 477.7 MB, free: 38.49 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005239/0.3966, allocations: 115.7 kB / 477.8 MB, free: 38.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002018/0.3986, allocations: 2.04 MB / 479.8 MB, free: 37.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000363/0.399, allocations: 0.994 MB / 480.8 MB, free: 36.49 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003134/0.3993, allocations: 112.7 kB / 480.9 MB, free: 36.47 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.3994, allocations: 38.44 kB / 480.9 MB, free: 36.47 MB / 382.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3994, allocations: 4 kB / 481 MB, free: 36.46 MB / 382.1 MB Notification: Performance of Templates: time 0.01213/0.4116, allocations: 7.666 MB / 488.6 MB, free: 35.94 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.makefile Environment - environmentSimulation: (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 & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1) Environment - environmentSimulation: