Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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_PowerSystems_Examples_AC3ph_Drives_ASM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM,fileNamePrefix="PowerSystems_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.0007952/0.0008006, allocations: 90.12 kB / 16.31 MB, free: 6.461 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.001015/0.001015, allocations: 183.9 kB / 17.21 MB, free: 6.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.499/1.499, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1821/0.1821, allocations: 38.04 MB / 309.7 MB, free: 6.039 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006002/0.0006002, allocations: 16 kB / 376.6 MB, free: 2.988 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3085, allocations: 56.33 MB / 433 MB, free: 18.8 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.007094/0.3157, allocations: 7.733 MB / 440.7 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007638/0.3233, allocations: 5.22 MB / 445.9 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001083/0.3245, allocations: 47.69 kB / 446 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008744/0.3332, allocations: 5.349 MB / 451.3 MB, free: 412 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001956/0.3352, allocations: 0.7078 MB / 452 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001338/0.3365, allocations: 447.3 kB / 452.4 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003445/0.34, allocations: 2.928 MB / 455.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001905/0.3419, allocations: 1.238 MB / 456.6 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001054/0.343, allocations: 0.6343 MB / 457.2 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001137/0.3441, allocations: 0.8918 MB / 458.1 MB, free: 9.504 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001419/0.3443, allocations: 64 kB / 458.2 MB, free: 9.441 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001182/0.3455, allocations: 0.5772 MB / 458.8 MB, free: 8.863 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006184/0.3461, allocations: 0.5727 MB / 459.3 MB, free: 8.289 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003423/0.3465, allocations: 277 kB / 459.6 MB, free: 8.012 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001754/0.3482, allocations: 1.683 MB / 461.3 MB, free: 6.324 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3482, allocations: 0 / 461.3 MB, free: 6.324 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3482, allocations: 0 / 461.3 MB, free: 6.324 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.054e-05/0.3483, allocations: 4 kB / 461.3 MB, free: 6.32 MB / 334.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.003493/0.3518, allocations: 1.699 MB / 463 MB, free: 4.539 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.3518, allocations: 8.031 kB / 463 MB, free: 4.531 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002497/0.3521, allocations: 181.2 kB / 463.2 MB, free: 4.344 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006367/0.3527, allocations: 186.2 kB / 463.4 MB, free: 4.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001792/0.3545, allocations: 0.9797 MB / 464.4 MB, free: 3.141 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001921/0.3548, allocations: 179.1 kB / 464.5 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002047/0.355, allocations: 108 kB / 464.6 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003163/0.3581, allocations: 1.882 MB / 466.5 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.149e-05/0.3582, allocations: 3.938 kB / 466.5 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001157/0.3583, allocations: 47.94 kB / 466.6 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002648/0.3586, allocations: 125.9 kB / 466.7 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002812/0.3614, allocations: 1.616 MB / 468.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00821/0.3696, allocations: 5.783 MB / 474.1 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002368/0.372, allocations: 1.235 MB / 475.3 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001591/0.3736, allocations: 0.7621 MB / 476.1 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.54e-05/0.3737, allocations: 17.14 kB / 476.1 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001969/0.3757, allocations: 1.006 MB / 477.1 MB, free: 6.059 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 3.617e-06/0.3757, allocations: 3.938 kB / 477.1 MB, free: 6.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=119): time 0.01019/0.3859, allocations: 4.806 MB / 481.9 MB, free: 1.117 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.3861, allocations: 127.8 kB / 482 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001143/0.3872, allocations: 0.782 MB / 482.8 MB, free: 180 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.476e-05/0.3873, allocations: 53.7 kB / 482.9 MB, free: 120 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005479/0.3879, allocations: 0.5076 MB / 483.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004217/0.3883, allocations: 398.3 kB / 483.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.315e-05/0.3884, allocations: 28 kB / 483.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002515/0.3886, allocations: 422.7 kB / 484.2 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001107/0.3898, allocations: 0.6708 MB / 484.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/0.391, allocations: 0.949 MB / 485.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001328/0.3924, allocations: 0.8353 MB / 486.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.3925, allocations: 4 kB / 486.7 MB, free: 12.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.003941/0.3964, allocations: 2.278 MB / 488.9 MB, free: 9.875 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.594e-05/0.3965, allocations: 65.67 kB / 489 MB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.821e-05/0.3965, allocations: 8 kB / 489 MB, free: 9.797 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001235/0.3978, allocations: 421.5 kB / 489.4 MB, free: 9.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007974/0.3986, allocations: 215.6 kB / 489.6 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007913/0.4065, allocations: 5.69 MB / 495.3 MB, free: 3.219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/0.4076, allocations: 107.7 kB / 495.4 MB, free: 3.113 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001634/0.4078, allocations: 87.94 kB / 495.5 MB, free: 3.027 MB / 366.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.0009254/0.4087, allocations: 457.3 kB / 496 MB, free: 2.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003364/0.409, allocations: 106.8 kB / 496.1 MB, free: 2.465 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003888/0.4129, allocations: 1.997 MB / 498.1 MB, free: 416 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.883e-05/0.413, allocations: 27.98 kB / 498.1 MB, free: 388 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.413, allocations: 4 kB / 498.1 MB, free: 384 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.835e-05/0.413, allocations: 15.91 kB / 498.1 MB, free: 368 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006071/0.4191, allocations: 3.47 MB / 0.4898 GB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.4191, allocations: 0 / 0.4898 GB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008733/0.42, allocations: 171.7 kB / 0.49 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004741/0.4205, allocations: 158.4 kB / 0.4901 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.297e-05/0.4206, allocations: 35.97 kB / 0.4902 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003816/0.4244, allocations: 4.454 MB / 0.4945 GB, free: 7.559 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.676e-06/0.4245, allocations: 4.234 kB / 0.4945 GB, free: 7.555 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00526/0.4297, allocations: 2.953 MB / 0.4974 GB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005692/0.4303, allocations: 323.6 kB / 0.4977 GB, free: 4.191 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002299/0.4305, allocations: 79.94 kB / 0.4978 GB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008008/0.4314, allocations: 131.8 kB / 0.4979 GB, free: 3.984 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001898/0.4316, allocations: 80.89 kB / 0.498 GB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.261e-05/0.4317, allocations: 39.97 kB / 0.498 GB, free: 3.867 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007936/0.4325, allocations: 0.5302 MB / 0.4986 GB, free: 3.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4325, allocations: 0 / 0.4986 GB, free: 3.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001494/0.434, allocations: 352.1 kB / 0.4989 GB, free: 2.996 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.006651/0.4406, allocations: 3.9 MB / 0.5027 GB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005031/0.4457, allocations: 3 MB / 0.5056 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.4457, allocations: 0 / 0.5056 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002234/0.4479, allocations: 1.241 MB / 0.5068 GB, free: 10.67 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001369/0.4493, allocations: 223.6 kB / 0.5071 GB, free: 10.45 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01631/0.4656, allocations: 9.943 MB / 0.5168 GB, free: 188 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2251/0.6908, allocations: 1.279 MB / 0.518 GB, free: 86.2 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001327/0.6921, allocations: 297.1 kB / 0.5183 GB, free: 86.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008933/0.6931, allocations: 443.2 kB / 0.5187 GB, free: 86.18 MB / 398.1 MB Notification: Performance of SimCode: time 1.193e-06/0.6931, allocations: 0 / 0.5187 GB, free: 86.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05447/0.7475, allocations: 30.97 MB / 0.549 GB, free: 64.76 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003635/0.748, allocations: 243.7 kB / 0.5492 GB, free: 64.51 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.717/3.465, allocations: 4 kB / 0.5492 GB, free: 64.51 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe 2>&1) Environment - environmentSimulation: