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.001057/0.001057, allocations: 87.61 kB / 16.65 MB, free: 6.535 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.001315/0.001315, allocations: 173.2 kB / 17.56 MB, free: 6.184 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.36/1.36, allocations: 205.4 MB / 223.7 MB, free: 13.06 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1702/0.1702, allocations: 38.06 MB / 310.1 MB, free: 5.906 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.0005221/0.0005222, allocations: 16.52 kB / 377.3 MB, free: 2.605 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2454, allocations: 56.33 MB / 433.6 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.007239/0.2527, allocations: 7.995 MB / 441.6 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007598/0.2603, allocations: 5.186 MB / 446.8 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001652/0.262, allocations: 55.62 kB / 446.8 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008/0.27, allocations: 4.691 MB / 451.5 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001682/0.2717, allocations: 481.8 kB / 452 MB, free: 192 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001617/0.2734, allocations: 455.4 kB / 452.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004034/0.2774, allocations: 3.006 MB / 455.4 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002184/0.2796, allocations: 1.16 MB / 456.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001169/0.2808, allocations: 0.5288 MB / 457.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001344/0.2822, allocations: 0.7393 MB / 457.9 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003162/0.2825, allocations: 52 kB / 457.9 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004845/0.283, allocations: 63.98 kB / 458 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006203/0.2836, allocations: 374.8 kB / 458.4 MB, free: 9.758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001009/0.2846, allocations: 0.5457 MB / 458.9 MB, free: 9.203 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001754/0.2864, allocations: 1.502 MB / 460.4 MB, free: 7.695 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2864, allocations: 0 / 460.4 MB, free: 7.695 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.2864, allocations: 0 / 460.4 MB, free: 7.695 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.241e-05/0.2865, allocations: 3.938 kB / 460.4 MB, free: 7.691 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.003271/0.2898, allocations: 1.238 MB / 461.6 MB, free: 6.402 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.2898, allocations: 8.031 kB / 461.6 MB, free: 6.395 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002296/0.2901, allocations: 143.7 kB / 461.8 MB, free: 6.246 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004111/0.2905, allocations: 135.4 kB / 461.9 MB, free: 6.113 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001688/0.2922, allocations: 0.891 MB / 462.8 MB, free: 5.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.143e-05/0.2923, allocations: 66 kB / 462.9 MB, free: 5.113 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001555/0.2924, allocations: 95.98 kB / 463 MB, free: 5.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001874/0.2943, allocations: 1.215 MB / 464.2 MB, free: 3.754 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.429e-05/0.2944, allocations: 15.83 kB / 464.2 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.161e-05/0.2945, allocations: 35.98 kB / 464.2 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002082/0.2947, allocations: 73.95 kB / 464.3 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001617/0.2963, allocations: 1.015 MB / 465.3 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006071/0.3024, allocations: 4.448 MB / 469.8 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00133/0.3037, allocations: 0.8988 MB / 470.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006785/0.3044, allocations: 440.1 kB / 471.1 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.151e-05/0.3045, allocations: 21.31 kB / 471.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.41e-05/0.3045, allocations: 51 kB / 471.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=70): time 2.655e-06/0.3045, allocations: 0 / 471.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.006325/0.3109, allocations: 3.326 MB / 474.5 MB, free: 9.062 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.419e-05/0.311, allocations: 141.1 kB / 474.6 MB, free: 8.895 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008239/0.3118, allocations: 0.6882 MB / 475.3 MB, free: 8.195 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.033e-05/0.3119, allocations: 37.7 kB / 475.4 MB, free: 8.152 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000344/0.3122, allocations: 487.2 kB / 475.8 MB, free: 7.668 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002046/0.3124, allocations: 244.4 kB / 476.1 MB, free: 7.426 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/0.3126, allocations: 81.67 kB / 476.2 MB, free: 7.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.3127, allocations: 342 kB / 476.5 MB, free: 7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006754/0.3134, allocations: 377.8 kB / 476.9 MB, free: 6.629 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008402/0.3143, allocations: 0.5978 MB / 477.5 MB, free: 5.938 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007772/0.322, allocations: 2.414 MB / 479.9 MB, free: 3.414 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.3221, allocations: 4 kB / 479.9 MB, free: 3.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.005941/0.328, allocations: 2.063 MB / 481.9 MB, free: 1.312 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002465/0.3283, allocations: 291.6 kB / 482.2 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.572e-05/0.3284, allocations: 8 kB / 482.2 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004772/0.3331, allocations: 1.031 MB / 483.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005853/0.3337, allocations: 139.8 kB / 483.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01544/0.3492, allocations: 9.253 MB / 492.6 MB, free: 6.227 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007749/0.35, allocations: 44.03 kB / 492.7 MB, free: 6.184 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.865e-05/0.3501, allocations: 40 kB / 492.7 MB, free: 6.145 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.889e-06/0.3501, allocations: 0 / 492.7 MB, free: 6.145 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005268/0.3554, allocations: 1.856 MB / 494.6 MB, free: 4.262 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.023e-05/0.3554, allocations: 8 kB / 494.6 MB, free: 4.254 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004462/0.3599, allocations: 0.9969 MB / 495.6 MB, free: 3.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005764/0.3605, allocations: 139.7 kB / 495.7 MB, free: 3.113 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01374/0.3742, allocations: 8.969 MB / 0.4929 GB, free: 9.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007289/0.375, allocations: 36.05 kB / 0.4929 GB, free: 9.836 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.802e-05/0.3751, allocations: 39.98 kB / 0.4929 GB, free: 9.797 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 (65): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * 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 {(6,35)} Notification: Performance of prepare postOptimizeDAE: time 0.0007028/0.3758, allocations: 416.8 kB / 0.4933 GB, free: 9.379 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001732/0.376, allocations: 94.75 kB / 0.4934 GB, free: 9.285 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00218/0.3782, allocations: 1.265 MB / 0.4947 GB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.409e-05/0.3782, allocations: 8 kB / 0.4947 GB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.3782, allocations: 3.938 kB / 0.4947 GB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.3782, allocations: 3.984 kB / 0.4947 GB, free: 7.941 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003775/0.382, allocations: 2.41 MB / 0.497 GB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.382, allocations: 0 / 0.497 GB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008384/0.3829, allocations: 163.8 kB / 0.4972 GB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004702/0.3834, allocations: 155.2 kB / 0.4973 GB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.419e-05/0.3835, allocations: 23.98 kB / 0.4974 GB, free: 5.059 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004195/0.3877, allocations: 5.393 MB / 0.5026 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.3877, allocations: 4.031 kB / 0.5026 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002882/0.3906, allocations: 1.883 MB / 0.5045 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004288/0.391, allocations: 232 kB / 0.5047 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001063/0.3911, allocations: 23.94 kB / 0.5047 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004976/0.3916, allocations: 35.97 kB / 0.5047 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.3918, allocations: 48.77 kB / 0.5048 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.788e-05/0.3919, allocations: 31.98 kB / 0.5048 GB, free: 12.79 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006347/0.3925, allocations: 490.9 kB / 0.5053 GB, free: 12.32 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3925, allocations: 3.938 kB / 0.5053 GB, free: 12.31 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001652/0.3942, allocations: 460 kB / 0.5057 GB, free: 11.86 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 (79): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,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.002947/0.3971, allocations: 2.455 MB / 0.5081 GB, free: 9.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004985/0.4021, allocations: 2.6 MB / 0.5107 GB, free: 6.668 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/0.4022, allocations: 0 / 0.5107 GB, free: 6.668 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001293/0.4035, allocations: 0.9241 MB / 0.5116 GB, free: 5.691 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001426/0.4049, allocations: 231 kB / 0.5118 GB, free: 5.469 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2202/0.6252, allocations: 11.21 MB / 0.5227 GB, free: 82.9 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007691/0.626, allocations: 1.183 MB / 0.5239 GB, free: 82.19 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007686/0.6267, allocations: 206.4 kB / 0.5241 GB, free: 82.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004571/0.6272, allocations: 378.7 kB / 0.5245 GB, free: 82.17 MB / 398.1 MB Notification: Performance of SimCode: time 8.12e-07/0.6272, allocations: 0 / 0.5245 GB, free: 82.17 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04212/0.6693, allocations: 31.57 MB / 0.5553 GB, free: 57.9 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002091/0.6696, allocations: 227.9 kB / 0.5555 GB, free: 57.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.468/3.138, allocations: 0 / 0.5555 GB, free: 57.64 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/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)