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.0007841/0.0007842, allocations: 89.75 kB / 16.65 MB, free: 6.59 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.0007927/0.0007927, allocations: 182.1 kB / 17.56 MB, free: 6.203 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.256/1.256, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1697/0.1697, allocations: 38.06 MB / 310.1 MB, free: 5.898 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.0005157/0.000516, allocations: 16 kB / 377.3 MB, free: 2.598 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2251/0.2256, allocations: 56.33 MB / 433.6 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.006261/0.2319, allocations: 8.176 MB / 441.8 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006895/0.2388, allocations: 5.638 MB / 447.4 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001056/0.2399, allocations: 51.62 kB / 447.5 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007743/0.2477, allocations: 5.432 MB / 452.9 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002563/0.2503, allocations: 0.646 MB / 453.5 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001522/0.2518, allocations: 470.9 kB / 454 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00382/0.2556, allocations: 3.411 MB / 457.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0018/0.2575, allocations: 1.361 MB / 458.8 MB, free: 9.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009108/0.2584, allocations: 0.6146 MB / 459.4 MB, free: 8.723 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001038/0.2594, allocations: 0.8994 MB / 460.3 MB, free: 7.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001225/0.2596, allocations: 60 kB / 460.3 MB, free: 7.762 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001029/0.2606, allocations: 0.6357 MB / 461 MB, free: 7.125 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005088/0.2611, allocations: 0.5688 MB / 461.6 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006094/0.2617, allocations: 0.6819 MB / 462.2 MB, free: 5.863 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001762/0.2635, allocations: 2.083 MB / 464.3 MB, free: 3.773 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.2635, allocations: 0 / 464.3 MB, free: 3.773 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.2635, allocations: 0 / 464.3 MB, free: 3.773 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.637e-05/0.2636, allocations: 0 / 464.3 MB, free: 3.773 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.003367/0.2669, allocations: 1.676 MB / 466 MB, free: 2.016 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.267, allocations: 8.031 kB / 466 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002228/0.2672, allocations: 181.5 kB / 466.2 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005737/0.2678, allocations: 179.1 kB / 466.4 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001748/0.2695, allocations: 1.018 MB / 467.4 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001611/0.2697, allocations: 179.1 kB / 467.5 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002057/0.2699, allocations: 115.9 kB / 467.7 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002931/0.2729, allocations: 1.883 MB / 469.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.054e-05/0.2729, allocations: 0 / 469.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001209/0.273, allocations: 43.98 kB / 469.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002741/0.2733, allocations: 125.9 kB / 469.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002636/0.276, allocations: 1.628 MB / 471.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007614/0.2836, allocations: 5.775 MB / 477.1 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002513/0.2861, allocations: 1.238 MB / 478.3 MB, free: 5.305 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001466/0.2876, allocations: 0.766 MB / 479.1 MB, free: 4.531 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.947e-05/0.2877, allocations: 17.14 kB / 479.1 MB, free: 4.516 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001733/0.2894, allocations: 1.004 MB / 480.1 MB, free: 3.492 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 2.705e-06/0.2895, allocations: 0 / 480.1 MB, free: 3.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=119): time 0.009474/0.2989, allocations: 4.794 MB / 484.9 MB, free: 14.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.2991, allocations: 131.8 kB / 485.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001129/0.3002, allocations: 0.7858 MB / 485.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001185/0.3003, allocations: 57.7 kB / 485.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004858/0.3008, allocations: 0.5036 MB / 486.4 MB, free: 13.04 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003845/0.3012, allocations: 410.3 kB / 486.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001732/0.3014, allocations: 129.6 kB / 486.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002384/0.3017, allocations: 414.7 kB / 487.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001059/0.3027, allocations: 0.6904 MB / 488 MB, free: 11.4 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001182/0.3039, allocations: 0.9763 MB / 489 MB, free: 10.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002152/0.3061, allocations: 1.67 MB / 490.7 MB, free: 8.543 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.3061, allocations: 0 / 490.7 MB, free: 8.543 MB / 366.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.003795/0.3099, allocations: 2.325 MB / 493 MB, free: 6.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.528e-05/0.31, allocations: 65.67 kB / 493.1 MB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.63e-05/0.31, allocations: 4 kB / 493.1 MB, free: 6.105 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001254/0.3113, allocations: 421.5 kB / 493.5 MB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007904/0.3121, allocations: 215.6 kB / 493.7 MB, free: 5.477 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007455/0.3195, allocations: 5.714 MB / 499.4 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/0.3206, allocations: 95.91 kB / 499.5 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001562/0.3208, allocations: 95.95 kB / 499.6 MB, free: 15.31 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,inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0008485/0.3216, allocations: 457.3 kB / 0.4883 GB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001934/0.3218, allocations: 102.7 kB / 0.4884 GB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004046/0.3259, allocations: 2.005 MB / 0.4904 GB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-05/0.3259, allocations: 31.98 kB / 0.4904 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.326, allocations: 0 / 0.4904 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.326, allocations: 3.984 kB / 0.4904 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006075/0.3321, allocations: 3.482 MB / 0.4938 GB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.3321, allocations: 64 / 0.4938 GB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009164/0.333, allocations: 171.8 kB / 0.494 GB, free: 8.895 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005258/0.3335, allocations: 170.4 kB / 0.4941 GB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.381e-05/0.3336, allocations: 43.89 kB / 0.4942 GB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004123/0.3378, allocations: 4.454 MB / 0.4985 GB, free: 3.824 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3378, allocations: 7.875 kB / 0.4985 GB, free: 3.816 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005488/0.3433, allocations: 2.968 MB / 0.5014 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005293/0.3438, allocations: 307.6 kB / 0.5017 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002739/0.3441, allocations: 91.89 kB / 0.5018 GB, free: 372 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001058/0.3452, allocations: 127.8 kB / 0.5019 GB, free: 244 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002293/0.3454, allocations: 80.88 kB / 0.502 GB, free: 164 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.583e-05/0.3455, allocations: 43.97 kB / 0.5021 GB, free: 120 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009393/0.3465, allocations: 0.5342 MB / 0.5026 GB, free: 15.58 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3465, allocations: 0 / 0.5026 GB, free: 15.58 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001363/0.3479, allocations: 352.1 kB / 0.5029 GB, free: 15.24 MB / 398.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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006963/0.3548, allocations: 3.916 MB / 0.5067 GB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00422/0.3591, allocations: 2.324 MB / 0.509 GB, free: 8.926 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.3591, allocations: 0 / 0.509 GB, free: 8.926 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002274/0.3614, allocations: 1.237 MB / 0.5102 GB, free: 7.652 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001493/0.3629, allocations: 235.3 kB / 0.5104 GB, free: 7.422 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2/0.5629, allocations: 14.11 MB / 0.5242 GB, free: 84.08 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009186/0.5639, allocations: 1.28 MB / 0.5255 GB, free: 83.29 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008995/0.5648, allocations: 302.3 kB / 0.5258 GB, free: 83.28 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005615/0.5653, allocations: 441.2 kB / 0.5262 GB, free: 82.95 MB / 398.1 MB Notification: Performance of SimCode: time 9.31e-07/0.5653, allocations: 0 / 0.5262 GB, free: 82.95 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03968/0.605, allocations: 27.99 MB / 0.5535 GB, free: 60.96 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001604/0.6052, allocations: 265.7 kB / 0.5538 GB, free: 60.65 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.523/3.128, allocations: 0 / 0.5538 GB, free: 60.65 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/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)