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.0009188/0.0009188, allocations: 176.7 kB / 15.77 MB, free: 6.352 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.455/1.455, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0007137/0.0007137, allocations: 90.34 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1695/0.1695, allocations: 38.07 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003491/0.0003492, allocations: 15.98 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09504/0.0954, allocations: 56.34 MB / 479.1 MB, free: 2.023 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.00884/0.1043, allocations: 7.728 MB / 486.8 MB, free: 10.26 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.008011/0.1123, allocations: 5.22 MB / 492 MB, free: 5.027 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001045/0.1134, allocations: 47.69 kB / 492.1 MB, free: 4.98 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009221/0.1227, allocations: 5.339 MB / 497.4 MB, free: 15.63 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002054/0.1247, allocations: 0.7078 MB / 498.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001388/0.1262, allocations: 443.3 kB / 498.5 MB, free: 14.49 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.003589/0.1298, allocations: 2.943 MB / 0.4897 GB, free: 11.54 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002106/0.1319, allocations: 1.242 MB / 0.491 GB, free: 10.25 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001302/0.1332, allocations: 0.6382 MB / 0.4916 GB, free: 9.609 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001428/0.1346, allocations: 0.884 MB / 0.4924 GB, free: 8.723 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003117/0.135, allocations: 60 kB / 0.4925 GB, free: 8.664 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001461/0.1364, allocations: 0.5812 MB / 0.4931 GB, free: 8.082 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008057/0.1373, allocations: 0.5766 MB / 0.4936 GB, free: 7.504 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005454/0.1378, allocations: 277 kB / 0.4939 GB, free: 7.227 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001972/0.1398, allocations: 1.687 MB / 0.4955 GB, free: 5.535 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1398, allocations: 3.938 kB / 0.4955 GB, free: 5.531 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1398, allocations: 0 / 0.4955 GB, free: 5.531 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.596e-05/0.1399, allocations: 0 / 0.4955 GB, free: 5.531 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.004047/0.144, allocations: 1.691 MB / 0.4972 GB, free: 3.758 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.144, allocations: 8.031 kB / 0.4972 GB, free: 3.75 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000854/0.1449, allocations: 186.1 kB / 0.4974 GB, free: 3.566 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002084/0.147, allocations: 0.9875 MB / 0.4983 GB, free: 2.539 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002041/0.1472, allocations: 191.1 kB / 0.4985 GB, free: 2.332 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003388/0.1475, allocations: 104 kB / 0.4986 GB, free: 2.23 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003697/0.1512, allocations: 1.882 MB / 0.5005 GB, free: 280 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.875e-05/0.1513, allocations: 4 kB / 0.5005 GB, free: 276 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001396/0.1515, allocations: 39.98 kB / 0.5005 GB, free: 236 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002973/0.1518, allocations: 129.8 kB / 0.5006 GB, free: 108 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003146/0.1549, allocations: 1.624 MB / 0.5022 GB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008648/0.1636, allocations: 5.755 MB / 0.5078 GB, free: 8.551 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002533/0.1661, allocations: 1.25 MB / 0.5091 GB, free: 7.266 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001468/0.1676, allocations: 0.762 MB / 0.5098 GB, free: 6.496 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.734e-05/0.1677, allocations: 9 kB / 0.5098 GB, free: 6.488 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00181/0.1695, allocations: 1.004 MB / 0.5108 GB, free: 5.465 MB / 362.7 MB Notification: Performance of pre-optimization done (n=116): time 4.138e-06/0.1696, allocations: 8 kB / 0.5108 GB, free: 5.457 MB / 362.7 MB Notification: Performance of matching and sorting (n=119): time 0.0102/0.1798, allocations: 4.802 MB / 0.5155 GB, free: 0.5234 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.1799, allocations: 127.8 kB / 0.5156 GB, free: 384 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2017/0.3816, allocations: 0.7719 MB / 0.5164 GB, free: 53.36 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002962/0.3819, allocations: 57.17 kB / 0.5164 GB, free: 53.33 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004631/0.3824, allocations: 0.5059 MB / 0.5169 GB, free: 53.23 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004071/0.3828, allocations: 405.3 kB / 0.5173 GB, free: 53 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.657e-05/0.3829, allocations: 22.84 kB / 0.5173 GB, free: 53 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.3831, allocations: 421.7 kB / 0.5177 GB, free: 52.69 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001021/0.3841, allocations: 0.6692 MB / 0.5184 GB, free: 52.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00115/0.3853, allocations: 0.9494 MB / 0.5193 GB, free: 52.05 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001204/0.3865, allocations: 0.8321 MB / 0.5201 GB, free: 51.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/0.3865, allocations: 7.594 kB / 0.5201 GB, free: 51.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.003869/0.3904, allocations: 2.283 MB / 0.5223 GB, free: 50.78 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.62e-05/0.3905, allocations: 66.25 kB / 0.5224 GB, free: 50.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.314e-05/0.3905, allocations: 8.234 kB / 0.5224 GB, free: 50.74 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001319/0.3918, allocations: 423.7 kB / 0.5228 GB, free: 50.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008402/0.3927, allocations: 213.5 kB / 0.523 GB, free: 50.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007178/0.3999, allocations: 5.68 MB / 0.5286 GB, free: 46.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00108/0.401, allocations: 102.9 kB / 0.5287 GB, free: 46.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001713/0.4012, allocations: 86.34 kB / 0.5288 GB, free: 46.64 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 (127): * Single equations (assignments): 115 * Array equations: 3 * Algorithm blocks: 7 * 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.0008009/0.402, allocations: 461.9 kB / 0.5292 GB, free: 46.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002031/0.4022, allocations: 110.7 kB / 0.5293 GB, free: 46.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004041/0.4062, allocations: 1.998 MB / 0.5313 GB, free: 45.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-05/0.4063, allocations: 25.34 kB / 0.5313 GB, free: 45.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.4063, allocations: 5.719 kB / 0.5313 GB, free: 45.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.648e-05/0.4063, allocations: 6.875 kB / 0.5313 GB, free: 45.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005576/0.4119, allocations: 3.469 MB / 0.5347 GB, free: 44.01 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/0.4119, allocations: 1.375 kB / 0.5347 GB, free: 44.01 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009311/0.4129, allocations: 169 kB / 0.5348 GB, free: 44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004903/0.4134, allocations: 160 kB / 0.535 GB, free: 43.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.62e-05/0.4135, allocations: 38.33 kB / 0.535 GB, free: 43.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002876/0.4163, allocations: 4.455 MB / 0.5394 GB, free: 39.65 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.4164, allocations: 0 / 0.5394 GB, free: 39.65 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00451/0.4209, allocations: 2.953 MB / 0.5423 GB, free: 38 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004261/0.4213, allocations: 316.4 kB / 0.5426 GB, free: 37.76 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001955/0.4215, allocations: 86.41 kB / 0.5426 GB, free: 37.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008667/0.4224, allocations: 128.6 kB / 0.5428 GB, free: 37.65 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001567/0.4226, allocations: 83.75 kB / 0.5428 GB, free: 37.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.302e-05/0.4227, allocations: 42.25 kB / 0.5429 GB, free: 37.59 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005597/0.4232, allocations: 0.5263 MB / 0.5434 GB, free: 37.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.32e-07/0.4232, allocations: 0 / 0.5434 GB, free: 37.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001207/0.4244, allocations: 363.5 kB / 0.5437 GB, free: 36.88 MB / 362.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.0009942/0.4254, allocations: 0.4958 MB / 0.5442 GB, free: 36.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003876/0.4293, allocations: 3 MB / 0.5472 GB, free: 33.36 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.4294, allocations: 4 kB / 0.5472 GB, free: 33.35 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001897/0.4313, allocations: 1.242 MB / 0.5484 GB, free: 32.08 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00115/0.4324, allocations: 228.5 kB / 0.5486 GB, free: 31.86 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005029/0.4375, allocations: 4.198 MB / 0.5527 GB, free: 27.62 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006102/0.4381, allocations: 1.269 MB / 0.5539 GB, free: 26.32 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003481/0.4384, allocations: 95.34 kB / 0.554 GB, free: 26.22 MB / 362.7 MB Notification: Performance of SimCode: time 5.81e-07/0.4385, allocations: 4 kB / 0.554 GB, free: 26.22 MB / 362.7 MB Notification: Performance of Templates: time 0.03445/0.4729, allocations: 31.16 MB / 0.5845 GB, free: 10.98 MB / 378.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)