Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.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_ctrlAv,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_ctrlAv",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_ctrlAv",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.0008805/0.0008805, allocations: 97.3 kB / 16.3 MB, free: 5.656 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.0009129/0.000913, allocations: 185.3 kB / 17.19 MB, free: 5.59 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.287/1.287, allocations: 205.4 MB / 223.3 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1836/0.1836, allocations: 38.05 MB / 309.7 MB, free: 6.133 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.0005798/0.0005799, allocations: 19.12 kB / 376.6 MB, free: 3.113 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2502, allocations: 56.34 MB / 432.9 MB, free: 18.83 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.007187/0.2574, allocations: 7.229 MB / 440.1 MB, free: 11.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007434/0.2649, allocations: 4.804 MB / 444.9 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00133/0.2663, allocations: 51.69 kB / 445 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004856/0.2711, allocations: 1.758 MB / 446.8 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001564/0.2727, allocations: 436.5 kB / 447.2 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001181/0.2739, allocations: 411.2 kB / 447.6 MB, free: 4.113 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001148/0.2751, allocations: 0.9045 MB / 448.5 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001119/0.2762, allocations: 1.023 MB / 449.5 MB, free: 2.145 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00053/0.2767, allocations: 494.2 kB / 450 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005154/0.2773, allocations: 0.5331 MB / 450.5 MB, free: 1.125 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.407e-05/0.2774, allocations: 48 kB / 450.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001743/0.2775, allocations: 59.98 kB / 450.6 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002513/0.2778, allocations: 343 kB / 451 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001462/0.278, allocations: 237.1 kB / 451.2 MB, free: 456 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009897/0.279, allocations: 1.243 MB / 452.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.279, allocations: 0 / 452.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.279, allocations: 4 kB / 452.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.396e-05/0.279, allocations: 0 / 452.4 MB, free: 15.2 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002834/0.2818, allocations: 1.249 MB / 453.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.2819, allocations: 8.031 kB / 453.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001927/0.2821, allocations: 143.5 kB / 453.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004134/0.2825, allocations: 138.4 kB / 454 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001873/0.2844, allocations: 0.8519 MB / 454.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.812e-05/0.2845, allocations: 69.97 kB / 454.9 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001669/0.2846, allocations: 99.84 kB / 455 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00195/0.2866, allocations: 1.218 MB / 456.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.598e-05/0.2866, allocations: 0 / 456.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001059/0.2868, allocations: 35.98 kB / 456.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002026/0.287, allocations: 77.95 kB / 456.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001648/0.2886, allocations: 1.011 MB / 457.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006504/0.2951, allocations: 4.449 MB / 461.8 MB, free: 5.539 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001412/0.2966, allocations: 0.8961 MB / 462.7 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.196e-05/0.2967, allocations: 12.62 kB / 462.7 MB, free: 4.586 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.71e-05/0.2967, allocations: 39.12 kB / 462.7 MB, free: 4.539 MB / 334.1 MB Notification: Performance of pre-optimization done (n=70): time 3.376e-06/0.2967, allocations: 4 kB / 462.7 MB, free: 4.535 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.006677/0.3034, allocations: 3.511 MB / 466.2 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.895e-05/0.3036, allocations: 141 kB / 466.4 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009535/0.3045, allocations: 0.6882 MB / 467.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.308e-05/0.3046, allocations: 33.7 kB / 467.1 MB, free: 15.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003704/0.305, allocations: 487.2 kB / 467.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002226/0.3052, allocations: 256.3 kB / 467.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.534e-05/0.3053, allocations: 16 kB / 467.8 MB, free: 15.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.3054, allocations: 342 kB / 468.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006133/0.306, allocations: 373.8 kB / 468.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007841/0.3068, allocations: 0.586 MB / 469.1 MB, free: 13.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006388/0.3132, allocations: 1.523 MB / 470.7 MB, free: 12.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.998e-06/0.3133, allocations: 4 kB / 470.7 MB, free: 12.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.006223/0.3195, allocations: 2.151 MB / 472.8 MB, free: 10.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001065/0.3206, allocations: 2.531 MB / 475.3 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/0.3206, allocations: 7.953 kB / 475.3 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004738/0.3254, allocations: 1.063 MB / 476.4 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005801/0.326, allocations: 127.8 kB / 476.5 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01719/0.3432, allocations: 10.99 MB / 487.5 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008388/0.3441, allocations: 44.22 kB / 487.6 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.062e-05/0.3442, allocations: 39.98 kB / 487.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/0.3442, allocations: 4 kB / 487.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005357/0.3495, allocations: 1.948 MB / 489.6 MB, free: 8.609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.144e-05/0.3496, allocations: 4 kB / 489.6 MB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004467/0.3541, allocations: 1.017 MB / 490.6 MB, free: 7.578 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005557/0.3547, allocations: 123.8 kB / 490.7 MB, free: 7.457 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01628/0.3709, allocations: 10.72 MB / 0.4897 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008051/0.3718, allocations: 35.97 kB / 0.4897 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.76e-05/0.3719, allocations: 36 kB / 0.4897 GB, free: 12.27 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.asm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {6 35} Notification: Performance of prepare postOptimizeDAE: time 0.0008194/0.3727, allocations: 416.9 kB / 0.4901 GB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001657/0.3729, allocations: 90.86 kB / 0.4902 GB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002232/0.3751, allocations: 1.36 MB / 0.4915 GB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.171e-05/0.3752, allocations: 8 kB / 0.4916 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.3752, allocations: 4 kB / 0.4916 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.3752, allocations: 3.984 kB / 0.4916 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004141/0.3793, allocations: 2.502 MB / 0.494 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.3794, allocations: 0 / 0.494 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008231/0.3802, allocations: 151.8 kB / 0.4941 GB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005318/0.3807, allocations: 180.2 kB / 0.4943 GB, free: 7.305 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-05/0.3808, allocations: 23.98 kB / 0.4943 GB, free: 7.281 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005598/0.3864, allocations: 6.821 MB / 0.501 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.3865, allocations: 32 / 0.501 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003248/0.3897, allocations: 2.017 MB / 0.503 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004915/0.3902, allocations: 239.8 kB / 0.5032 GB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/0.3903, allocations: 16 kB / 0.5032 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004939/0.3908, allocations: 39.92 kB / 0.5033 GB, free: 13.35 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/0.391, allocations: 64.61 kB / 0.5033 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.007e-05/0.3911, allocations: 31.98 kB / 0.5033 GB, free: 13.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006997/0.3918, allocations: 475.2 kB / 0.5038 GB, free: 12.79 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3918, allocations: 0 / 0.5038 GB, free: 12.79 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00204/0.3938, allocations: 463.9 kB / 0.5042 GB, free: 12.34 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 (asm_ctrl.motor.i[3],asm_ctrl.motor.psi_s[1],asm_ctrl.motor.psi_s[2],asm_ctrl.motor.psi_rd[1],asm_ctrl.motor.psi_rq[1],asm_ctrl.motor.phiRotorflux,loadInertia.w,frictTorq.phi,PI_i_q.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003351/0.3972, allocations: 2.864 MB / 0.507 GB, free: 9.355 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005787/0.403, allocations: 2.831 MB / 0.5098 GB, free: 6.453 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.796e-06/0.4031, allocations: 4.188 kB / 0.5098 GB, free: 6.449 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001596/0.4047, allocations: 1.044 MB / 0.5108 GB, free: 5.34 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001252/0.4059, allocations: 206.9 kB / 0.511 GB, free: 5.145 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2339/0.6398, allocations: 11.91 MB / 0.5227 GB, free: 80.74 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00107/0.6409, allocations: 1.199 MB / 0.5238 GB, free: 80.03 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009119/0.6419, allocations: 213 kB / 0.524 GB, free: 80.02 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005257/0.6424, allocations: 385.5 kB / 0.5244 GB, free: 80.02 MB / 398.1 MB Notification: Performance of SimCode: time 1.383e-06/0.6424, allocations: 0 / 0.5244 GB, free: 80.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05173/0.6941, allocations: 31.75 MB / 0.5554 GB, free: 55.94 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002467/0.6945, allocations: 211.2 kB / 0.5556 GB, free: 55.69 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.484/3.178, allocations: 4 kB / 0.5556 GB, free: 55.69 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_ctrlAv_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_ctrlAv.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe 2>&1) Environment - environmentSimulation: