Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008013/0.0008012, allocations: 89.66 kB / 16.32 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008563/0.0008565, allocations: 179.1 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 223.3 MB / 241.2 MB, free: 332 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1696/0.1696, allocations: 38.09 MB / 330.4 MB, free: 8.891 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003609/0.0003613, allocations: 8 kB / 400.2 MB, free: 34.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1173, allocations: 59.17 MB / 459.3 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.008493/0.1258, allocations: 7.725 MB / 467.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008024/0.1339, allocations: 5.259 MB / 472.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008774/0.1348, allocations: 51.69 kB / 472.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009125/0.1439, allocations: 5.35 MB / 477.7 MB, free: 4.902 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002007/0.1459, allocations: 0.7 MB / 478.4 MB, free: 4.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001251/0.1472, allocations: 463.2 kB / 478.9 MB, free: 3.746 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003251/0.1505, allocations: 2.935 MB / 481.8 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001666/0.1522, allocations: 1.242 MB / 483.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009594/0.1531, allocations: 0.6421 MB / 483.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001107/0.1542, allocations: 0.8763 MB / 484.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001514/0.1544, allocations: 67.94 kB / 484.6 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001049/0.1555, allocations: 0.585 MB / 485.2 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000538/0.156, allocations: 0.565 MB / 485.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003037/0.1563, allocations: 285 kB / 486.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001593/0.1579, allocations: 1.691 MB / 487.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1579, allocations: 0 / 487.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.158, allocations: 0 / 487.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.917e-05/0.158, allocations: 0 / 487.8 MB, free: 10.79 MB / 366.1 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.003408/0.1614, allocations: 1.691 MB / 489.5 MB, free: 9.012 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.1615, allocations: 8.031 kB / 489.5 MB, free: 9.004 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002687/0.1617, allocations: 181.2 kB / 489.6 MB, free: 8.816 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005931/0.1623, allocations: 174.3 kB / 489.8 MB, free: 8.645 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00176/0.1641, allocations: 0.9797 MB / 490.8 MB, free: 7.625 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002524/0.1644, allocations: 187.1 kB / 491 MB, free: 7.422 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002044/0.1646, allocations: 115.8 kB / 491.1 MB, free: 7.309 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00325/0.1678, allocations: 1.879 MB / 493 MB, free: 5.355 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.424e-05/0.1679, allocations: 0 / 493 MB, free: 5.355 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001296/0.168, allocations: 43.98 kB / 493 MB, free: 5.312 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002758/0.1683, allocations: 125.9 kB / 493.1 MB, free: 5.191 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002978/0.1713, allocations: 1.616 MB / 494.7 MB, free: 3.574 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008214/0.1795, allocations: 5.771 MB / 0.4888 GB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002255/0.1818, allocations: 1.246 MB / 0.49 GB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001365/0.1832, allocations: 0.762 MB / 0.4907 GB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.491e-05/0.1833, allocations: 13.14 kB / 0.4908 GB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001651/0.1849, allocations: 1.003 MB / 0.4917 GB, free: 10.55 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.186e-06/0.1849, allocations: 0 / 0.4917 GB, free: 10.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=119): time 0.009421/0.1944, allocations: 4.806 MB / 0.4964 GB, free: 5.609 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.39e-05/0.1945, allocations: 135.7 kB / 0.4966 GB, free: 5.453 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009704/0.1955, allocations: 0.778 MB / 0.4973 GB, free: 4.664 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.002e-05/0.1956, allocations: 61.69 kB / 0.4974 GB, free: 4.598 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003802/0.196, allocations: 0.5037 MB / 0.4979 GB, free: 4.086 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003071/0.1963, allocations: 402.3 kB / 0.4983 GB, free: 3.688 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.983e-05/0.1964, allocations: 24 kB / 0.4983 GB, free: 3.664 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.1965, allocations: 426.6 kB / 0.4987 GB, free: 3.238 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009436/0.1975, allocations: 0.6669 MB / 0.4993 GB, free: 2.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001124/0.1986, allocations: 0.9568 MB / 0.5003 GB, free: 1.516 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/0.1997, allocations: 0.8315 MB / 0.5011 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/0.1998, allocations: 4 kB / 0.5011 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.2512/0.451, allocations: 2.277 MB / 0.5033 GB, free: 55.64 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001107/0.4512, allocations: 65.41 kB / 0.5034 GB, free: 55.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.866e-05/0.4512, allocations: 10.06 kB / 0.5034 GB, free: 55.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001377/0.4526, allocations: 425.2 kB / 0.5038 GB, free: 55.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009427/0.4535, allocations: 214.1 kB / 0.504 GB, free: 55.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009255/0.4628, allocations: 5.666 MB / 0.5095 GB, free: 52.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/0.4641, allocations: 104.2 kB / 0.5096 GB, free: 52.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001857/0.4643, allocations: 86.55 kB / 0.5097 GB, free: 52.19 MB / 382.1 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.0008603/0.4652, allocations: 460.2 kB / 0.5101 GB, free: 51.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000214/0.4654, allocations: 107.8 kB / 0.5103 GB, free: 51.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00406/0.4695, allocations: 2.004 MB / 0.5122 GB, free: 51.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-05/0.4695, allocations: 25.27 kB / 0.5122 GB, free: 51.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.4695, allocations: 3.922 kB / 0.5122 GB, free: 51.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-05/0.4696, allocations: 5.062 kB / 0.5122 GB, free: 51.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007011/0.4766, allocations: 3.467 MB / 0.5156 GB, free: 49.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.4766, allocations: 1.094 kB / 0.5156 GB, free: 49.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009077/0.4775, allocations: 175.3 kB / 0.5158 GB, free: 49.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005309/0.4781, allocations: 164.9 kB / 0.516 GB, free: 49.56 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.4782, allocations: 42.31 kB / 0.516 GB, free: 49.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003294/0.4815, allocations: 4.455 MB / 0.5203 GB, free: 45.42 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.4815, allocations: 1.344 kB / 0.5203 GB, free: 45.42 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005188/0.4867, allocations: 2.95 MB / 0.5232 GB, free: 44.17 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005598/0.4873, allocations: 315.5 kB / 0.5235 GB, free: 43.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002299/0.4875, allocations: 85.64 kB / 0.5236 GB, free: 43.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007969/0.4883, allocations: 134 kB / 0.5237 GB, free: 43.92 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001924/0.4885, allocations: 70.97 kB / 0.5238 GB, free: 43.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.397e-05/0.4886, allocations: 44.03 kB / 0.5238 GB, free: 43.9 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006475/0.4893, allocations: 0.5299 MB / 0.5244 GB, free: 43.67 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4893, allocations: 0 / 0.5244 GB, free: 43.67 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001241/0.4905, allocations: 364.7 kB / 0.5247 GB, free: 43.62 MB / 382.1 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.005548/0.4961, allocations: 3.9 MB / 0.5285 GB, free: 41.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004007/0.5001, allocations: 3.004 MB / 0.5315 GB, free: 39.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.76e-06/0.5001, allocations: 4 kB / 0.5315 GB, free: 39.67 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00178/0.5019, allocations: 1.235 MB / 0.5327 GB, free: 38.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.503, allocations: 238 kB / 0.5329 GB, free: 38.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01243/0.5154, allocations: 9.926 MB / 0.5426 GB, free: 27.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006693/0.5161, allocations: 1.285 MB / 0.5438 GB, free: 26.63 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008522/0.517, allocations: 296.5 kB / 0.5441 GB, free: 26.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005407/0.5175, allocations: 447.2 kB / 0.5445 GB, free: 25.9 MB / 382.1 MB Notification: Performance of SimCode: time 2.294e-06/0.5175, allocations: 0 / 0.5445 GB, free: 25.9 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04792/0.5655, allocations: 30.99 MB / 0.5748 GB, free: 11.21 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002601/0.5658, allocations: 254.2 kB / 0.575 GB, free: 10.88 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.608/3.174, allocations: 4 kB / 0.5751 GB, free: 10.88 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_res.mat does not exist to compare? outputFormat=mat