Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC3ph.Drives.ASM.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,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC3ph.Drives.ASM") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002295/0.002295, allocations: 354.1 kB / 16.57 MB, free: 5.59 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 3.012/3.012, allocations: 388.9 MB / 406.2 MB, free: 6.844 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003178/0.003178, allocations: 234.3 kB / 451.6 MB, free: 0.5742 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.5934/0.5934, allocations: 76.02 MB / 0.5594 GB, free: 14.44 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004844/0.0004846, allocations: 12 kB / 0.6216 GB, free: 14.86 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2597, allocations: 53.22 MB / 0.6736 GB, free: 62.51 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.007031/0.2667, allocations: 7.699 MB / 0.6811 GB, free: 54.79 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.007273/0.274, allocations: 5.152 MB / 0.6862 GB, free: 49.63 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006546/0.2747, allocations: 51.62 kB / 0.6862 GB, free: 49.58 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00862/0.2834, allocations: 5.321 MB / 0.6914 GB, free: 44.25 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002054/0.2855, allocations: 0.6686 MB / 0.6921 GB, free: 43.58 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001246/0.2867, allocations: 411.2 kB / 0.6924 GB, free: 43.18 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002879/0.2896, allocations: 2.92 MB / 0.6953 GB, free: 40.25 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001473/0.2911, allocations: 1.242 MB / 0.6965 GB, free: 38.96 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007205/0.2919, allocations: 0.6148 MB / 0.6971 GB, free: 38.34 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009977/0.2929, allocations: 0.888 MB / 0.698 GB, free: 37.45 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000149/0.2931, allocations: 60 kB / 0.698 GB, free: 37.39 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001065/0.2941, allocations: 0.5771 MB / 0.6986 GB, free: 36.82 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005254/0.2947, allocations: 0.5689 MB / 0.6992 GB, free: 36.25 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002522/0.2949, allocations: 277 kB / 0.6994 GB, free: 35.97 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001449/0.2964, allocations: 1.68 MB / 0.7011 GB, free: 34.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.789e-06/0.2964, allocations: 0 / 0.7011 GB, free: 34.29 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2964, allocations: 0 / 0.7011 GB, free: 34.29 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.568e-05/0.2965, allocations: 0 / 0.7011 GB, free: 34.29 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 293 * Number of variables: 293 Notification: Performance of Generate backend data structure: time 0.003042/0.2995, allocations: 1.712 MB / 0.7027 GB, free: 32.48 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.17e-05/0.2996, allocations: 12.03 kB / 0.7027 GB, free: 32.47 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006336/0.3002, allocations: 186.2 kB / 0.7029 GB, free: 32.29 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00177/0.302, allocations: 0.9758 MB / 0.7039 GB, free: 31.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000155/0.3022, allocations: 187.1 kB / 0.704 GB, free: 31.07 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002162/0.3024, allocations: 111.9 kB / 0.7042 GB, free: 30.96 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003195/0.3056, allocations: 1.879 MB / 0.706 GB, free: 29.01 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.622e-05/0.3057, allocations: 4 kB / 0.706 GB, free: 29.01 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000139/0.3058, allocations: 39.98 kB / 0.706 GB, free: 28.97 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002737/0.3061, allocations: 129.9 kB / 0.7062 GB, free: 28.84 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003022/0.3091, allocations: 1.612 MB / 0.7077 GB, free: 27.23 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008145/0.3173, allocations: 5.755 MB / 0.7134 GB, free: 21.3 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002656/0.32, allocations: 1.255 MB / 0.7146 GB, free: 20.01 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001585/0.3216, allocations: 0.7699 MB / 0.7153 GB, free: 19.23 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.963e-05/0.3217, allocations: 12.94 kB / 0.7153 GB, free: 19.22 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001805/0.3235, allocations: 1.004 MB / 0.7163 GB, free: 18.2 MB / 346.7 MB Notification: Performance of pre-optimization done (n=116): time 4.337e-06/0.3235, allocations: 0 / 0.7163 GB, free: 18.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=120): time 0.01204/0.3355, allocations: 5.812 MB / 0.722 GB, free: 12.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.495e-05/0.3356, allocations: 135.8 kB / 0.7221 GB, free: 12.05 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.3367, allocations: 0.7701 MB / 0.7229 GB, free: 11.28 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.969e-05/0.3368, allocations: 57.69 kB / 0.7229 GB, free: 11.21 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003647/0.3372, allocations: 0.496 MB / 0.7234 GB, free: 10.71 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002831/0.3375, allocations: 410.2 kB / 0.7238 GB, free: 10.3 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.233e-05/0.3376, allocations: 24 kB / 0.7238 GB, free: 10.28 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.3377, allocations: 430.7 kB / 0.7242 GB, free: 9.852 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/0.3388, allocations: 0.6708 MB / 0.7249 GB, free: 9.18 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001215/0.34, allocations: 0.9568 MB / 0.7258 GB, free: 8.121 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001321/0.3414, allocations: 0.8721 MB / 0.7267 GB, free: 7.238 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.826e-06/0.3414, allocations: 0 / 0.7267 GB, free: 7.238 MB / 346.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.004257/0.3456, allocations: 2.323 MB / 0.729 GB, free: 4.867 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.645e-05/0.3457, allocations: 83.39 kB / 0.729 GB, free: 4.773 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.777e-05/0.3458, allocations: 15.98 kB / 0.729 GB, free: 4.758 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001399/0.3472, allocations: 424 kB / 0.7295 GB, free: 4.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009942/0.3482, allocations: 215.6 kB / 0.7297 GB, free: 4.129 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008235/0.3564, allocations: 5.686 MB / 0.7352 GB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001047/0.3575, allocations: 99.81 kB / 0.7353 GB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001933/0.3577, allocations: 87.94 kB / 0.7354 GB, free: 14 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 29 (system.initime,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[6],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.t0[1],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 116 * Array equations: 3 * Algorithm blocks: 8 * 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 {4 21} Notification: Performance of prepare postOptimizeDAE: time 0.0008873/0.3586, allocations: 464.5 kB / 0.7358 GB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002749/0.3589, allocations: 98.78 kB / 0.7359 GB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004953/0.3639, allocations: 2.013 MB / 0.7379 GB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.817e-05/0.364, allocations: 23.98 kB / 0.7379 GB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.048e-06/0.364, allocations: 4 kB / 0.7379 GB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.585e-05/0.364, allocations: 7.938 kB / 0.7379 GB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007625/0.3716, allocations: 3.479 MB / 0.7413 GB, free: 7.754 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/0.3717, allocations: 0 / 0.7413 GB, free: 7.754 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00121/0.3729, allocations: 175.7 kB / 0.7415 GB, free: 7.582 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000638/0.3735, allocations: 162.3 kB / 0.7416 GB, free: 7.414 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001233/0.3737, allocations: 35.97 kB / 0.7417 GB, free: 7.379 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004995/0.3787, allocations: 4.45 MB / 0.746 GB, free: 2.531 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.054e-06/0.3787, allocations: 3.953 kB / 0.746 GB, free: 2.527 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006952/0.3857, allocations: 2.967 MB / 0.7489 GB, free: 15.49 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006228/0.3863, allocations: 303.9 kB / 0.7492 GB, free: 15.17 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003262/0.3867, allocations: 87.94 kB / 0.7493 GB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/0.3878, allocations: 131.8 kB / 0.7494 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000224/0.388, allocations: 88.81 kB / 0.7495 GB, free: 14.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001243/0.3882, allocations: 39.97 kB / 0.7496 GB, free: 14.83 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009796/0.3891, allocations: 0.5224 MB / 0.7501 GB, free: 14.31 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.32e-07/0.3892, allocations: 0 / 0.7501 GB, free: 14.31 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001341/0.3905, allocations: 356.1 kB / 0.7504 GB, free: 13.96 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.motor.i[3],asm.motor.phi_el,asm.motor.w_el,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: 17 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3],system.initime) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 80 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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.001234/0.3918, allocations: 426.3 kB / 0.7508 GB, free: 13.65 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00592/0.3977, allocations: 3.077 MB / 0.7538 GB, free: 10.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.964e-06/0.3977, allocations: 0 / 0.7538 GB, free: 10.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002714/0.4005, allocations: 1.241 MB / 0.755 GB, free: 9.176 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/0.4019, allocations: 222.4 kB / 0.7552 GB, free: 8.961 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007443/0.4093, allocations: 4.107 MB / 0.7592 GB, free: 4.816 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001245/0.4106, allocations: 1.304 MB / 0.7605 GB, free: 3.484 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001203/0.4118, allocations: 300.4 kB / 0.7608 GB, free: 3.188 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003583/0.4122, allocations: 79.42 kB / 0.7609 GB, free: 3.109 MB / 378.7 MB Notification: Performance of SimCode: time 1.566e-06/0.4122, allocations: 0 / 0.7609 GB, free: 3.109 MB / 378.7 MB Notification: Performance of Templates: time 0.2652/0.6774, allocations: 20.06 MB / 0.7805 GB, free: 98 MB / 394.7 MB