Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.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_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001329/0.001329, allocations: 186.1 kB / 16.38 MB, free: 5.598 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.694/1.694, allocations: 194.5 MB / 211.6 MB, free: 7.805 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.001783/0.001783, allocations: 112.7 kB / 256.9 MB, free: 10.43 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.2264/0.2264, allocations: 38.01 MB / 340.1 MB, free: 13.43 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004339/0.0004341, allocations: 14.91 kB / 403.8 MB, free: 55.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07247/0.07293, allocations: 53.23 MB / 457 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.007401/0.08037, allocations: 7.086 MB / 464.1 MB, free: 3.289 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007312/0.0877, allocations: 4.743 MB / 468.9 MB, free: 14.54 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005923/0.08832, allocations: 51.69 kB / 468.9 MB, free: 14.49 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004797/0.09313, allocations: 1.764 MB / 470.7 MB, free: 12.72 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009794/0.09413, allocations: 426.6 kB / 471.1 MB, free: 12.3 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001163/0.09531, allocations: 402.3 kB / 471.5 MB, free: 11.91 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001185/0.09651, allocations: 0.8822 MB / 472.4 MB, free: 11.03 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001545/0.09807, allocations: 1.007 MB / 473.4 MB, free: 9.98 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006974/0.09879, allocations: 478.2 kB / 473.8 MB, free: 9.512 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008257/0.09963, allocations: 0.5176 MB / 474.4 MB, free: 8.992 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001371/0.09978, allocations: 55.98 kB / 474.4 MB, free: 8.938 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002182/0.1, allocations: 55.98 kB / 474.5 MB, free: 8.883 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004312/0.1005, allocations: 339.1 kB / 474.8 MB, free: 8.551 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002688/0.1007, allocations: 229.1 kB / 475 MB, free: 8.32 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001411/0.1022, allocations: 1.227 MB / 476.2 MB, free: 7.09 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.28e-06/0.1022, allocations: 0 / 476.2 MB, free: 7.09 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.067e-06/0.1022, allocations: 0 / 476.2 MB, free: 7.09 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.756e-05/0.1022, allocations: 4 kB / 476.2 MB, free: 7.086 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: 219 * Number of variables: 219 Notification: Performance of Generate backend data structure: time 0.002893/0.1052, allocations: 1.214 MB / 477.5 MB, free: 5.816 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.1052, allocations: 15.95 kB / 477.5 MB, free: 5.801 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004587/0.1057, allocations: 134.5 kB / 477.6 MB, free: 5.668 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002048/0.1077, allocations: 0.8239 MB / 478.4 MB, free: 4.801 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.267e-05/0.1078, allocations: 61.98 kB / 478.5 MB, free: 4.738 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002151/0.1081, allocations: 92 kB / 478.6 MB, free: 4.648 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002578/0.1106, allocations: 1.182 MB / 479.8 MB, free: 3.422 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.776e-05/0.1107, allocations: 4 kB / 479.8 MB, free: 3.418 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001355/0.1109, allocations: 32 kB / 479.8 MB, free: 3.387 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002607/0.1111, allocations: 73.95 kB / 479.9 MB, free: 3.312 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002269/0.1134, allocations: 0.9953 MB / 480.9 MB, free: 2.316 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007959/0.1214, allocations: 4.222 MB / 485.1 MB, free: 13.95 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001871/0.1233, allocations: 0.8831 MB / 486 MB, free: 13.02 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.496e-05/0.1234, allocations: 8.609 kB / 486 MB, free: 13.02 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.733e-05/0.1234, allocations: 47.12 kB / 486 MB, free: 12.96 MB / 330.7 MB Notification: Performance of pre-optimization done (n=69): time 3.27e-06/0.1234, allocations: 3.938 kB / 486 MB, free: 12.96 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.008262/0.1317, allocations: 3.882 MB / 489.9 MB, free: 8.828 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.346e-05/0.1318, allocations: 141 kB / 490 MB, free: 8.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001032/0.1329, allocations: 0.6489 MB / 490.7 MB, free: 8.008 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.556e-05/0.133, allocations: 37.7 kB / 490.7 MB, free: 7.965 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004352/0.1334, allocations: 463.4 kB / 491.2 MB, free: 7.504 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002868/0.1337, allocations: 260.3 kB / 491.4 MB, free: 7.246 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.174e-05/0.1338, allocations: 12 kB / 491.5 MB, free: 7.234 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000251/0.134, allocations: 394.8 kB / 491.8 MB, free: 6.84 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009061/0.135, allocations: 373.8 kB / 492.2 MB, free: 6.473 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/0.136, allocations: 0.5688 MB / 492.8 MB, free: 5.816 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007913/0.1439, allocations: 1.515 MB / 494.3 MB, free: 4.285 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.898e-06/0.144, allocations: 7.938 kB / 494.3 MB, free: 4.277 MB / 330.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.007223/0.1512, allocations: 2.124 MB / 496.4 MB, free: 2.098 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001223/0.1524, allocations: 2.353 MB / 498.8 MB, free: 15.56 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/0.1525, allocations: 8 kB / 498.8 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005843/0.1583, allocations: 1.071 MB / 499.9 MB, free: 14.47 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006078/0.159, allocations: 123.8 kB / 500 MB, free: 14.35 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02183/0.1808, allocations: 10.89 MB / 0.4989 GB, free: 3.051 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000686/0.1815, allocations: 47.89 kB / 0.4989 GB, free: 3.004 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.324e-05/0.1816, allocations: 31.98 kB / 0.499 GB, free: 2.973 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/0.1816, allocations: 4 kB / 0.499 GB, free: 2.969 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006608/0.1883, allocations: 1.928 MB / 0.5009 GB, free: 0.9922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.1883, allocations: 8 kB / 0.5009 GB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005607/0.1939, allocations: 1.025 MB / 0.5019 GB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006221/0.1946, allocations: 115.8 kB / 0.502 GB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02043/0.215, allocations: 10.65 MB / 0.5124 GB, free: 4.785 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006963/0.2157, allocations: 35.98 kB / 0.5124 GB, free: 4.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.96e-05/0.2158, allocations: 35.98 kB / 0.5124 GB, free: 4.715 MB / 362.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_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * 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 initialization (62): * Single equations (assignments): 59 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {6 35} Notification: Performance of prepare postOptimizeDAE: time 0.0007096/0.2166, allocations: 405 kB / 0.5128 GB, free: 4.309 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002032/0.2168, allocations: 90.86 kB / 0.5129 GB, free: 4.219 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002949/0.2197, allocations: 1.36 MB / 0.5142 GB, free: 2.773 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/0.2198, allocations: 8 kB / 0.5142 GB, free: 2.766 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.2198, allocations: 4 kB / 0.5143 GB, free: 2.762 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.241e-05/0.2198, allocations: 3.984 kB / 0.5143 GB, free: 2.758 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005122/0.2249, allocations: 2.479 MB / 0.5167 GB, free: 136 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.637e-06/0.2249, allocations: 0 / 0.5167 GB, free: 136 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/0.226, allocations: 159.8 kB / 0.5168 GB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007041/0.2267, allocations: 172.1 kB / 0.517 GB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.903e-05/0.2268, allocations: 27.98 kB / 0.517 GB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006851/0.2337, allocations: 6.822 MB / 0.5237 GB, free: 8.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.529e-06/0.2337, allocations: 0 / 0.5237 GB, free: 8.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003771/0.2375, allocations: 1.991 MB / 0.5256 GB, free: 6.164 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004187/0.2379, allocations: 228 kB / 0.5258 GB, free: 5.922 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001604/0.2381, allocations: 20 kB / 0.5259 GB, free: 5.902 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006355/0.2388, allocations: 35.97 kB / 0.5259 GB, free: 5.867 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001476/0.2389, allocations: 56.8 kB / 0.526 GB, free: 5.812 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.873e-05/0.239, allocations: 31.98 kB / 0.526 GB, free: 5.781 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007178/0.2398, allocations: 459 kB / 0.5264 GB, free: 5.336 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.71e-07/0.2398, allocations: 3.938 kB / 0.5264 GB, free: 5.332 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001986/0.2418, allocations: 456 kB / 0.5269 GB, free: 4.887 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 9 (asm_ctrl.motor.i[3],asm_ctrl.motor.phi_el,asm_ctrl.motor.w_el,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,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 (78): * Single equations (assignments): 72 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(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.0001983/0.242, allocations: 127.1 kB / 0.527 GB, free: 4.754 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006124/0.2481, allocations: 2.745 MB / 0.5297 GB, free: 1.938 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.648e-06/0.2481, allocations: 4.062 kB / 0.5297 GB, free: 1.934 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00175/0.2499, allocations: 1.028 MB / 0.5307 GB, free: 0.8438 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.251, allocations: 198.8 kB / 0.5309 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2291/0.4801, allocations: 2.87 MB / 0.5337 GB, free: 76.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009585/0.4811, allocations: 1.201 MB / 0.5348 GB, free: 75.95 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001048/0.4822, allocations: 191.2 kB / 0.535 GB, free: 75.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003014/0.4825, allocations: 66.19 kB / 0.5351 GB, free: 75.91 MB / 378.7 MB Notification: Performance of SimCode: time 1.519e-06/0.4825, allocations: 0 / 0.5351 GB, free: 75.91 MB / 378.7 MB Notification: Performance of Templates: time 0.04327/0.5258, allocations: 22.56 MB / 0.5571 GB, free: 63.79 MB / 378.7 MB