Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASM,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000979/0.000979, allocations: 172.8 kB / 16.07 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.2/1.2, allocations: 205.4 MB / 222.2 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006509/0.0006509, allocations: 86.31 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.166/0.166, allocations: 38.07 MB / 356.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003512/0.0003513, allocations: 12 kB / 423.3 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2255/0.2259, allocations: 56.32 MB / 479.6 MB, free: 9.242 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.006417/0.2323, allocations: 7.783 MB / 487.4 MB, free: 3.961 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006516/0.2389, allocations: 5.209 MB / 492.6 MB, free: 344 kB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006582/0.2396, allocations: 53.16 kB / 492.7 MB, free: 320 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009514/0.2491, allocations: 5.498 MB / 498.2 MB, free: 15.03 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00208/0.2512, allocations: 0.7151 MB / 498.9 MB, free: 14.6 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001294/0.2525, allocations: 465.2 kB / 499.3 MB, free: 14.27 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003196/0.2557, allocations: 2.939 MB / 0.4905 GB, free: 12.67 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001715/0.2574, allocations: 1.349 MB / 0.4918 GB, free: 11.75 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001005/0.2585, allocations: 0.6362 MB / 0.4924 GB, free: 11.43 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001082/0.2596, allocations: 0.8799 MB / 0.4933 GB, free: 10.97 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001572/0.2597, allocations: 60.38 kB / 0.4934 GB, free: 10.97 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001146/0.2609, allocations: 0.6339 MB / 0.494 GB, free: 10.67 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005384/0.2614, allocations: 0.5693 MB / 0.4945 GB, free: 10.33 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006723/0.2621, allocations: 0.6536 MB / 0.4952 GB, free: 9.895 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001588/0.2637, allocations: 1.688 MB / 0.4968 GB, free: 8.738 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.2637, allocations: 1.188 kB / 0.4968 GB, free: 8.738 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2637, allocations: 0 / 0.4968 GB, free: 8.738 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.26e-05/0.2638, allocations: 0 / 0.4968 GB, free: 8.738 MB / 330.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.003293/0.2671, allocations: 1.686 MB / 0.4985 GB, free: 7.449 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.2671, allocations: 8.031 kB / 0.4985 GB, free: 7.441 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006154/0.2677, allocations: 187.1 kB / 0.4987 GB, free: 7.258 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001676/0.2694, allocations: 1.003 MB / 0.4996 GB, free: 6.215 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001641/0.2696, allocations: 191.1 kB / 0.4998 GB, free: 6.008 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001975/0.2698, allocations: 111.9 kB / 0.4999 GB, free: 5.898 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003035/0.2728, allocations: 1.877 MB / 0.5018 GB, free: 3.949 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.003e-05/0.2729, allocations: 3.938 kB / 0.5018 GB, free: 3.945 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001264/0.273, allocations: 43.98 kB / 0.5018 GB, free: 3.902 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002685/0.2733, allocations: 133.8 kB / 0.5019 GB, free: 3.773 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002627/0.2759, allocations: 1.612 MB / 0.5035 GB, free: 2.16 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007781/0.2837, allocations: 5.786 MB / 0.5092 GB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002373/0.2861, allocations: 1.238 MB / 0.5104 GB, free: 10.93 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001454/0.2876, allocations: 0.7621 MB / 0.5111 GB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.195e-05/0.2877, allocations: 13.14 kB / 0.5111 GB, free: 10.14 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001726/0.2894, allocations: 1.007 MB / 0.5121 GB, free: 9.121 MB / 346.7 MB Notification: Performance of pre-optimization done (n=116): time 3.426e-06/0.2894, allocations: 3.938 kB / 0.5121 GB, free: 9.117 MB / 346.7 MB Notification: Performance of matching and sorting (n=119): time 0.00935/0.2988, allocations: 4.777 MB / 0.5168 GB, free: 4.211 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.366e-05/0.2989, allocations: 127.8 kB / 0.5169 GB, free: 4.062 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009688/0.2999, allocations: 0.778 MB / 0.5177 GB, free: 3.273 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001011/0.3, allocations: 61.67 kB / 0.5177 GB, free: 3.207 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003736/0.3004, allocations: 0.5037 MB / 0.5182 GB, free: 2.695 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003198/0.3007, allocations: 398.3 kB / 0.5186 GB, free: 2.301 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.367e-05/0.3008, allocations: 28 kB / 0.5186 GB, free: 2.273 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001893/0.301, allocations: 418.7 kB / 0.519 GB, free: 1.855 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009921/0.302, allocations: 0.6904 MB / 0.5197 GB, free: 1.164 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001134/0.3031, allocations: 0.9646 MB / 0.5206 GB, free: 104 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002128/0.3053, allocations: 1.662 MB / 0.5223 GB, free: 14.33 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.012e-06/0.3053, allocations: 4 kB / 0.5223 GB, free: 14.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.003782/0.3091, allocations: 2.317 MB / 0.5245 GB, free: 11.97 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.78e-05/0.3091, allocations: 57.69 kB / 0.5246 GB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.576e-05/0.3092, allocations: 8 kB / 0.5246 GB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001261/0.3104, allocations: 421.6 kB / 0.525 GB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008156/0.3113, allocations: 215.6 kB / 0.5252 GB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007247/0.3185, allocations: 5.684 MB / 0.5307 GB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001065/0.3196, allocations: 103.9 kB / 0.5308 GB, free: 5.215 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002049/0.3198, allocations: 91.86 kB / 0.5309 GB, free: 5.125 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 (121): * Single equations (assignments): 115 * Array equations: 3 * 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%) 3} * Non-linear torn systems: 1 {4 21} Notification: Performance of prepare postOptimizeDAE: time 0.0008784/0.3207, allocations: 457.4 kB / 0.5314 GB, free: 4.668 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000275/0.321, allocations: 110.7 kB / 0.5315 GB, free: 4.559 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004149/0.3252, allocations: 2.005 MB / 0.5334 GB, free: 2.492 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.885e-05/0.3252, allocations: 20 kB / 0.5334 GB, free: 2.473 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.219e-05/0.3252, allocations: 4 kB / 0.5334 GB, free: 2.469 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.577e-05/0.3253, allocations: 7.969 kB / 0.5335 GB, free: 2.461 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006354/0.3316, allocations: 3.463 MB / 0.5368 GB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.3316, allocations: 0 / 0.5368 GB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009049/0.3326, allocations: 175.7 kB / 0.537 GB, free: 14.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005141/0.3331, allocations: 170.3 kB / 0.5372 GB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001118/0.3332, allocations: 31.97 kB / 0.5372 GB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003663/0.3369, allocations: 4.458 MB / 0.5415 GB, free: 9.656 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.3369, allocations: 7.938 kB / 0.5416 GB, free: 9.648 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005472/0.3424, allocations: 2.952 MB / 0.5444 GB, free: 6.625 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006478/0.3431, allocations: 315.6 kB / 0.5447 GB, free: 6.297 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003805/0.3435, allocations: 91.86 kB / 0.5448 GB, free: 6.207 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.3445, allocations: 127.8 kB / 0.545 GB, free: 6.082 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002088/0.3447, allocations: 72.89 kB / 0.545 GB, free: 6.012 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001095/0.3448, allocations: 39.97 kB / 0.5451 GB, free: 5.973 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008407/0.3457, allocations: 0.5302 MB / 0.5456 GB, free: 5.445 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3457, allocations: 3.938 kB / 0.5456 GB, free: 5.441 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001433/0.3471, allocations: 364.1 kB / 0.5459 GB, free: 5.086 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.rotor.phi,asm.rotor.w,asm.motor.i[3],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 (98): * Single equations (assignments): 79 * 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.001088/0.3482, allocations: 0.4927 MB / 0.5464 GB, free: 4.641 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003881/0.3521, allocations: 2.317 MB / 0.5487 GB, free: 2.285 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3521, allocations: 0 / 0.5487 GB, free: 2.285 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002145/0.3543, allocations: 1.248 MB / 0.5499 GB, free: 1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001331/0.3556, allocations: 227.5 kB / 0.5501 GB, free: 0.7773 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006187/0.3618, allocations: 4.203 MB / 0.5542 GB, free: 12.54 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001081/0.3629, allocations: 1.281 MB / 0.5555 GB, free: 11.22 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004187/0.3634, allocations: 83.42 kB / 0.5555 GB, free: 11.14 MB / 394.7 MB Notification: Performance of SimCode: time 5.81e-07/0.3634, allocations: 4 kB / 0.5555 GB, free: 11.14 MB / 394.7 MB Notification: Performance of Templates: time 0.03621/0.3996, allocations: 29.32 MB / 0.5842 GB, free: 13.74 MB / 426.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM.pipe 2>&1)