Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.conf.json Using package PowerSystems with version 1.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001441/0.001445, allocations: 185.8 kB / 16.38 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.65/1.65, allocations: 194.5 MB / 211.6 MB, free: 7.523 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001812/0.001812, allocations: 128.6 kB / 256.9 MB, free: 10.14 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.2128/0.2128, allocations: 38.02 MB / 340.1 MB, free: 13.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004304/0.0004305, allocations: 24.38 kB / 403.8 MB, free: 55.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06714/0.06759, allocations: 53.22 MB / 457 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.005865/0.0735, allocations: 5.716 MB / 462.7 MB, free: 4.609 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006015/0.07956, allocations: 4.44 MB / 467.2 MB, free: 164 kB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005631/0.08016, allocations: 35.75 kB / 467.2 MB, free: 128 kB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004519/0.08469, allocations: 1.686 MB / 468.9 MB, free: 14.43 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009201/0.08563, allocations: 358.9 kB / 469.2 MB, free: 14.08 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006663/0.08632, allocations: 247.5 kB / 469.5 MB, free: 13.84 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006904/0.08702, allocations: 0.5384 MB / 470 MB, free: 13.3 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001247/0.08828, allocations: 0.7827 MB / 470.8 MB, free: 12.48 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004653/0.08877, allocations: 338.8 kB / 471.1 MB, free: 12.15 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005467/0.08933, allocations: 318.9 kB / 471.4 MB, free: 11.84 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.144e-05/0.08943, allocations: 31.94 kB / 471.5 MB, free: 11.8 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002161/0.08965, allocations: 75.94 kB / 471.5 MB, free: 11.73 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002976/0.08997, allocations: 255.3 kB / 471.8 MB, free: 11.48 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001934/0.09017, allocations: 165.3 kB / 472 MB, free: 11.31 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009102/0.09109, allocations: 0.8026 MB / 472.8 MB, free: 10.51 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.576e-06/0.09111, allocations: 7.938 kB / 472.8 MB, free: 10.5 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.09112, allocations: 0 / 472.8 MB, free: 10.5 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.09115, allocations: 0 / 472.8 MB, free: 10.5 MB / 314.7 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.001823/0.09298, allocations: 0.8997 MB / 473.7 MB, free: 9.547 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.09303, allocations: 12.02 kB / 473.7 MB, free: 9.535 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005203/0.09356, allocations: 103 kB / 473.8 MB, free: 9.434 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001236/0.09482, allocations: 0.5915 MB / 474.4 MB, free: 8.801 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001085/0.09494, allocations: 79 kB / 474.5 MB, free: 8.715 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001402/0.09509, allocations: 67.89 kB / 474.5 MB, free: 8.648 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001579/0.09668, allocations: 0.7904 MB / 475.3 MB, free: 7.82 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.172e-05/0.09673, allocations: 3.984 kB / 475.3 MB, free: 7.816 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.724e-05/0.09683, allocations: 31.94 kB / 475.3 MB, free: 7.785 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000157/0.09701, allocations: 53.28 kB / 475.4 MB, free: 7.734 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001211/0.09823, allocations: 0.575 MB / 476 MB, free: 7.156 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004852/0.1031, allocations: 2.939 MB / 478.9 MB, free: 4.105 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009344/0.1041, allocations: 436.1 kB / 479.3 MB, free: 3.668 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.904e-05/0.1041, allocations: 12.33 kB / 479.3 MB, free: 3.656 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005829/0.1047, allocations: 344.3 kB / 479.7 MB, free: 3.297 MB / 314.7 MB Notification: Performance of pre-optimization done (n=42): time 2.966e-06/0.1047, allocations: 0 / 479.7 MB, free: 3.297 MB / 314.7 MB Notification: Performance of matching and sorting (n=46): time 0.004752/0.1095, allocations: 2.564 MB / 482.2 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.818e-05/0.1096, allocations: 132.5 kB / 482.4 MB, free: 364 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006129/0.1102, allocations: 449.9 kB / 482.8 MB, free: 15.9 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.281e-05/0.1103, allocations: 33.7 kB / 482.8 MB, free: 15.86 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002841/0.1106, allocations: 327.9 kB / 483.2 MB, free: 15.54 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002075/0.1108, allocations: 161.6 kB / 483.3 MB, free: 15.38 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.51e-05/0.1109, allocations: 16 kB / 483.3 MB, free: 15.36 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000226/0.1111, allocations: 358.8 kB / 483.7 MB, free: 15 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004653/0.1116, allocations: 237.2 kB / 483.9 MB, free: 14.77 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000593/0.1122, allocations: 390.2 kB / 484.3 MB, free: 14.32 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002606/0.1148, allocations: 0.7502 MB / 485.1 MB, free: 13.55 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.892e-06/0.1148, allocations: 8 kB / 485.1 MB, free: 13.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00222/0.1171, allocations: 0.9669 MB / 486 MB, free: 12.55 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.629e-05/0.1171, allocations: 33.7 kB / 486.1 MB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.1171, allocations: 4 kB / 486.1 MB, free: 12.51 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001091/0.1182, allocations: 309.7 kB / 486.4 MB, free: 12.2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001053/0.1193, allocations: 179.7 kB / 486.5 MB, free: 12.03 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008096/0.1274, allocations: 4.981 MB / 491.5 MB, free: 6.785 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004008/0.1279, allocations: 31.92 kB / 491.6 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.359e-05/0.1279, allocations: 27.98 kB / 491.6 MB, free: 6.727 MB / 330.7 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 (53): * Single equations (assignments): 50 * 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.0004875/0.1284, allocations: 303.2 kB / 491.9 MB, free: 6.414 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.352e-05/0.1285, allocations: 51.34 kB / 491.9 MB, free: 6.363 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001526/0.1301, allocations: 0.8215 MB / 492.8 MB, free: 5.484 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.523e-06/0.1301, allocations: 4 kB / 492.8 MB, free: 5.48 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.631e-06/0.1301, allocations: 0 / 492.8 MB, free: 5.48 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.928e-06/0.1301, allocations: 0 / 492.8 MB, free: 5.48 MB / 330.7 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.003009/0.1331, allocations: 1.688 MB / 494.4 MB, free: 3.664 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.747e-06/0.1332, allocations: 4 kB / 494.4 MB, free: 3.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001336/0.1345, allocations: 195.8 kB / 494.6 MB, free: 3.469 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002752/0.1348, allocations: 78.52 kB / 494.7 MB, free: 3.383 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.734e-05/0.1349, allocations: 12 kB / 494.7 MB, free: 3.371 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003744/0.1386, allocations: 3.981 MB / 498.7 MB, free: 14.99 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.453e-06/0.1386, allocations: 0 / 498.7 MB, free: 14.99 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001841/0.1405, allocations: 1.146 MB / 499.9 MB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002632/0.1408, allocations: 168.4 kB / 0.4883 GB, free: 13.56 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000116/0.1409, allocations: 19.98 kB / 0.4883 GB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003606/0.1413, allocations: 19.98 kB / 0.4883 GB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.494e-05/0.1414, allocations: 35.84 kB / 0.4884 GB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.356e-05/0.1414, allocations: 16 kB / 0.4884 GB, free: 13.47 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004428/0.1419, allocations: 311.1 kB / 0.4887 GB, free: 13.17 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.88e-07/0.1419, allocations: 0 / 0.4887 GB, free: 13.17 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008587/0.1428, allocations: 168 kB / 0.4888 GB, free: 13.01 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.phi_el,asm_Y_D.motor.w_el,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]) * 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 (41): * Single equations (assignments): 36 * 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.0001629/0.143, allocations: 120.4 kB / 0.489 GB, free: 12.88 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002007/0.145, allocations: 0.9803 MB / 0.4899 GB, free: 11.86 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.215e-06/0.145, allocations: 0 / 0.4899 GB, free: 11.86 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001002/0.146, allocations: 0.6515 MB / 0.4906 GB, free: 11.16 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006682/0.1467, allocations: 118 kB / 0.4907 GB, free: 11.05 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003334/0.15, allocations: 2.02 MB / 0.4926 GB, free: 8.988 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007659/0.1508, allocations: 0.9916 MB / 0.4936 GB, free: 7.969 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0004699/0.1513, allocations: 116.8 kB / 0.4937 GB, free: 7.852 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000143/0.1515, allocations: 47.42 kB / 0.4938 GB, free: 7.805 MB / 346.7 MB Notification: Performance of SimCode: time 1.281e-06/0.1515, allocations: 0 / 0.4938 GB, free: 7.805 MB / 346.7 MB Notification: Performance of Templates: time 0.01886/0.1704, allocations: 7.682 MB / 0.5013 GB, free: 148 kB / 346.7 MB